Skip to content

Commit

Permalink
fix(www): update heading font size
Browse files Browse the repository at this point in the history
  • Loading branch information
shadcn committed Apr 21, 2024
1 parent 9aaaf42 commit 816b654
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 41 deletions.
71 changes: 33 additions & 38 deletions apps/www/app/(app)/examples/layout.tsx
Expand Up @@ -23,43 +23,38 @@ interface ExamplesLayoutProps {

export default function ExamplesLayout({ children }: ExamplesLayoutProps) {
return (
<>
<div className="container relative">
<PageHeader>
<Announcement />
<PageHeaderHeading className="hidden md:block">
Check out some examples
</PageHeaderHeading>
<PageHeaderHeading className="md:hidden">Examples</PageHeaderHeading>
<PageHeaderDescription>
Dashboard, cards, authentication. Some examples built using the
components. Use this as a guide to build your own.
</PageHeaderDescription>
<PageActions>
<Link
href="/docs"
className={cn(buttonVariants(), "rounded-[6px]")}
>
Get Started
</Link>
<Link
href="/components"
className={cn(
buttonVariants({ variant: "outline" }),
"rounded-[6px]"
)}
>
Components
</Link>
</PageActions>
</PageHeader>
<section>
<ExamplesNav />
<div className="overflow-hidden rounded-[0.5rem] border bg-background shadow-md md:shadow-xl">
{children}
</div>
</section>
</div>
</>
<div className="container relative">
<PageHeader>
<Announcement />
<PageHeaderHeading className="hidden md:block">
Check out some examples
</PageHeaderHeading>
<PageHeaderHeading className="md:hidden">Examples</PageHeaderHeading>
<PageHeaderDescription>
Dashboard, cards, authentication. Some examples built using the
components. Use this as a guide to build your own.
</PageHeaderDescription>
<PageActions>
<Link href="/docs" className={cn(buttonVariants(), "rounded-[6px]")}>
Get Started
</Link>
<Link
href="/components"
className={cn(
buttonVariants({ variant: "outline" }),
"rounded-[6px]"
)}
>
Components
</Link>
</PageActions>
</PageHeader>
<section>
<ExamplesNav />
<div className="overflow-hidden rounded-[0.5rem] border bg-background shadow">
{children}
</div>
</section>
</div>
)
}
2 changes: 1 addition & 1 deletion apps/www/app/(app)/page.tsx
Expand Up @@ -58,7 +58,7 @@ export default function IndexPage() {
/>
</section>
<section className="hidden md:block">
<div className="overflow-hidden rounded-lg border bg-background shadow-lg">
<div className="overflow-hidden rounded-lg border bg-background shadow">
<MailPage />
</div>
</section>
Expand Down
4 changes: 2 additions & 2 deletions apps/www/components/page-header.tsx
Expand Up @@ -27,7 +27,7 @@ function PageHeaderHeading({
return (
<h1
className={cn(
"text-center text-3xl font-bold leading-tight tracking-tighter md:text-6xl lg:leading-[1.1]",
"text-center text-3xl font-bold leading-tight tracking-tighter md:text-5xl lg:leading-[1.1]",
className
)}
{...props}
Expand All @@ -42,7 +42,7 @@ function PageHeaderDescription({
return (
<Balance
className={cn(
"max-w-[750px] text-center text-lg text-muted-foreground sm:text-xl",
"max-w-[750px] text-center text-lg font-light text-foreground",
className
)}
{...props}
Expand Down

0 comments on commit 816b654

Please sign in to comment.