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
13 changes: 12 additions & 1 deletion www/src/components/layout/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { SearchIcon } from "lucide-react"

import { navItems, siteConfig } from "@/config/site"
import { cn } from "@/registry/lib/utils"
import { Button, buttonStyles } from "@/registry/ui/button"
import { Button, buttonStyles, LinkButton } from "@/registry/ui/button"
import { Separator } from "@/registry/ui/separator"
import { GitHubIcon } from "@/components/icons/github"
import { HeaderActionsSlot } from "@/components/layout/header-slot"
Expand Down Expand Up @@ -102,6 +102,17 @@ export function Header({ className, items = [] }: HeaderProps) {
</a>
<ThemeToggle variant="quiet" isIconOnly />
<HeaderActionsSlot />
{/* On /studio the slot above carries studio-specific actions instead. */}
{pathname !== "/studio" && (
<LinkButton
href="/studio"
variant="primary"
size="sm"
className="ml-1.5"
>
Open studio
</LinkButton>
)}
<Separator orientation="vertical" className="mx-1.5 h-4 lg:hidden" />
<MobileNav items={items} />
</div>
Expand Down
11 changes: 0 additions & 11 deletions www/src/modules/marketing/home-page.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { LinkButton } from "@/registry/ui/button"
import { Eyebrow } from "@/components/eyebrow"
import { Footer } from "@/components/layout/footer"
import { HeaderActions } from "@/components/layout/header-slot"
import Cards from "@/modules/marketing/cards"
import { CtaSection } from "@/modules/marketing/cta-section"
import { HeroWordSwap } from "@/modules/marketing/hero-word-swap"
Expand All @@ -24,16 +23,6 @@ export function HomePage() {
// content box. Decorations that bleed past it (cards rails, full-bleed
// washes) are clipped at the viewport by the root.
<div className="overflow-x-clip">
<HeaderActions>
<LinkButton
href="/studio"
variant="primary"
size="sm"
className="ml-1.5"
>
Open studio
</LinkButton>
</HeaderActions>
<div className="container">
{/* Hero section */}
<section className="flex flex-col pt-10 sm:pt-14 md:pt-20">
Expand Down
Loading