Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 36 additions & 10 deletions docs/app/(home)/sections/HeroSection/HeroSection.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,18 +105,18 @@
flex-shrink: 0;
padding-inline: 1.25rem;
border-radius: 100px;
background: var(--openui-inverted-background);
color: var(--openui-text-accent-primary);
background: var(--openui-highlight-strong);
color: var(--openui-text-neutral-primary);
transition: background-color 0.2s ease;
}

.mobilePlaygroundButton:hover {
background: rgb(0 0 0 / 85%);
background: var(--openui-highlight);
}

.mobilePlaygroundLabel {
white-space: nowrap;
color: var(--openui-text-accent-primary);
color: inherit;
}

.desktopHero {
Expand Down Expand Up @@ -147,6 +147,7 @@
flex-direction: column;
align-items: center;
gap: 1rem;
margin-top: 1rem;
}

.desktopTitle {
Expand All @@ -165,8 +166,8 @@
font-size: 1.75rem;
font-weight: 500;
line-height: 1.25;
margin-left: 32px;
margin-top: -12px;
margin-top: 1rem;
text-align: center;
color: var(--openui-text-neutral-secondary);
}

Expand Down Expand Up @@ -204,7 +205,7 @@
align-items: center;
justify-content: center;
gap: 0.75rem;
min-height: 2.5rem;
min-height: 2.75rem;
padding: 0.875rem 1rem 0.875rem 1rem;
border-radius: var(--openui-radius-full);
background: var(--openui-highlight-strong);
Expand Down Expand Up @@ -235,10 +236,28 @@
display: inline-flex;
align-items: center;
justify-content: center;
gap: 0.5rem;
color: inherit;
text-decoration: none;
}

.heroBannerBadge {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 1.5rem;
padding-inline: 0.4rem;
border-radius: var(--openui-radius-s);
background: var(--openui-text-info-primary);
border: 1px solid var(--openui-border-default);
font-size: 0.75rem;
font-weight: 600;
line-height: 1;
letter-spacing: 0.02em;
text-transform: uppercase;
color: var(--openui-text-info-inverted);
}

.heroBannerActions {
display: flex;
flex-direction: column;
Expand Down Expand Up @@ -294,8 +313,15 @@
min-height: 3rem;
padding-inline: 1.25rem;
border-radius: 100px;
background: var(--openui-inverted-background);
color: var(--openui-text-accent-primary);
font-size: 18px;
line-height: 1.5rem;
transition: background-color 0.2s ease;
}

.mobileGithubButton:hover {
background: rgb(0 0 0 / 85%);
}

.mobileCtaArrow {
Expand Down Expand Up @@ -329,7 +355,7 @@
display: flex;
flex-direction: column;
align-items: center;
margin-top: 32px;
margin-top: 40px;
gap: 1rem;
padding: 0.5rem 2.5rem 4rem;
}
Expand Down Expand Up @@ -438,8 +464,8 @@

.heroBanner {
align-items: center;
gap: 1rem;
padding: 0.5rem 0.75rem 0.5rem 1rem;
gap: 1.5rem;
padding: 0.6rem 0.75rem 0.6rem 1rem;
}

.heroBannerDesktop {
Expand Down
16 changes: 11 additions & 5 deletions docs/app/(home)/sections/HeroSection/HeroSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ function DesktopPlaygroundButton({ className = "" }: { className?: string }) {
function MobilePlaygroundButton({ className = "" }: { className?: string }) {
return (
<PillLink
href="/playground"
href="/demo/github"
className={`${styles.mobilePlaygroundButton} ${className}`.trim()}
arrow={<TrailingArrow />}
>
<span className={styles.mobilePlaygroundLabel}>{secondaryCTA}</span>
<span className={styles.mobilePlaygroundLabel}>Try Demo</span>
</PillLink>
);
}
Expand All @@ -83,18 +83,24 @@ function AnnouncementBanner({ className = "" }: { className?: string }) {
return (
<>
<div className={`${styles.heroBanner} ${styles.heroBannerDesktop} ${className}`.trim()}>
<span className={styles.heroBannerLabel}>We&apos;re introducing OpenUI Lang v0.5</span>
<span className={styles.heroBannerLabel}>
<span className={styles.heroBannerBadge}>New</span>
<span>We&apos;re introducing OpenUI Lang v0.5</span>
</span>
<div className={styles.heroBannerActions}>
<Link href="/demo/github" target="_blank" className={`${styles.heroBannerButton} ${styles.heroBannerButtonPrimary}`}>
<span>Try now</span>
<span>Try</span>
</Link>
<Link href={architectureHref} className={styles.heroBannerButton}>
<span>Read more</span>
</Link>
</div>
</div>
<Link href={architectureHref} className={`${styles.heroBanner} ${styles.heroBannerMobile} ${className}`.trim()}>
<span className={styles.heroBannerLabel}>We&apos;re introducing OpenUI Lang v0.5</span>
<span className={styles.heroBannerLabel}>
<span className={styles.heroBannerBadge}>New</span>
<span>Introducing OpenUI Lang v0.5</span>
</span>
</Link>
</>
);
Expand Down
Loading
Loading