Open source CapCut alternative.
TypeScript
site: migrate landing components to Tailwind
David Lea3b2ff5c19ce
diff --git a/docs/guides/frontend-nextjs-guidelines.md b/docs/guides/frontend-nextjs-guidelines.mdindex 2ffe2fc7..8f80ad0a 100644--- a/docs/guides/frontend-nextjs-guidelines.md+++ b/docs/guides/frontend-nextjs-guidelines.md@@ -28,14 +28,12 @@ This guide explains how to work in the `site` app. Keep changes aligned with the## Styling-- Use Tailwind utilities and existing shared UI components as the default UI language.-- Tailwind is already configured for the site; the absence of a `tailwind.config.*` file is not a reason to use inline styles.-- Use Tailwind responsive variants such as `md:*` for breakpoints.-- Use Tailwind arbitrary values when a design needs a precise value that is not in the theme.-- Avoid React inline style objects for normal layout, spacing, typography, colors, borders, and responsive behavior.-- Reserve inline styles for genuinely runtime values, such as measured dimensions, CSS custom properties derived from data, or third-party style APIs.-- Do not add client-only media query hooks just to choose styling; use Tailwind responsive utilities instead.-- Use the existing class-name helper when composing conditional classes.+- Tailwind utility classes are the default for all UI, with no exceptions by area. This includes the landing components under `src/app/_components/landing`, which were historically inline-styled and are now Tailwind-first. Do not reintroduce React inline `style` objects for layout, spacing, typography, colors, borders, or responsive behavior.+- Tailwind is configured via CSS (`@theme` in `src/app/globals.css`), not a `tailwind.config.*` file; its absence is not a reason to use inline styles.+- Use the brand tokens defined in `globals.css` rather than repeating raw hex: `text-ink`/`bg-ink`/`border-ink` (near-black), `bg-coral`/`text-coral`, `bg-cream`, `bg-background` (page sand), and `font-system`/`font-code`. Reach for a Tailwind arbitrary value (`text-[#454545]`, `text-[clamp(45px,9.6vw,134px)]`) only for genuinely one-off values not worth a token.+- Use Tailwind responsive variants for breakpoints (`md:*`, and arbitrary variants like `min-[900px]:*` when a design uses a non-standard breakpoint). Do not add client-only media-query hooks to choose styling; express responsive styling in classes and, when an element only differs by visibility, toggle it with `hidden`/`md:block` rather than conditional rendering.+- Reserve inline `style` strictly for genuinely runtime values, such as a dimension computed from props or state, CSS custom properties derived from data, or a third-party style API.+- Compose conditional classes with the `cn` helper from `@/lib/utils`.- Prefer existing icon components for buttons and compact actions when an icon fits the control.- Keep controls at stable dimensions so hover states, icons, labels, and loading states do not shift layout.- Keep cards for repeated items, modals, and genuinely framed content. Avoid nesting cards inside cards.diff --git a/site/src/app/_components/landing/FinalCTA.tsx b/site/src/app/_components/landing/FinalCTA.tsxindex b85d7901..4fcb1d88 100644--- a/site/src/app/_components/landing/FinalCTA.tsx+++ b/site/src/app/_components/landing/FinalCTA.tsx@@ -4,101 +4,26 @@ import { ArrowRight } from "lucide-react";import { PillButton } from "@/app/_components/landing/LandingPrimitives";import { DONKEY_INSTALL_URL } from "@/app/_components/landing/data";-import { useMediaQuery } from "@/app/_components/landing/useMediaQuery";-import { BLACK, CORAL } from "@/app/_components/landing/theme";export function FinalCTA() {- const isDesktop = useMediaQuery("(min-width: 768px)");-return (<sectionid="download"- style={{- boxSizing: "border-box",- padding: isDesktop ? "64px 48px 120px" : "48px 24px 80px",- maxWidth: 1400,- margin: "0 auto",- width: "100%",- }}+ className="mx-auto w-full max-w-[1400px] px-6 pt-12 pb-20 md:px-12 md:pt-16 md:pb-[120px]">- <div style={{ position: "relative" }}>- <div- style={{- position: "absolute",- inset: 0,- transform: "translate(8px, 8px)",- borderRadius: 24,- background: CORAL,- }}- />- <div- style={{- position: "relative",- borderRadius: 24,- border: `2px solid ${BLACK}`,- background: BLACK,- color: "#fff",- padding: isDesktop ? "80px 48px" : "40px 24px",- textAlign: "center",- }}- >- <div- style={{- position: "absolute",- top: -10,- left: "50%",- transform: "translateX(-50%) rotate(-2deg)",- width: 80,- height: 18,- borderRadius: 3,- border: `2px solid ${BLACK}`,- background: CORAL,- }}- />- <div- style={{- fontSize: 12,- fontWeight: 600,- letterSpacing: "0.12em",- textTransform: "uppercase",- color: "rgba(255,255,255,0.6)",- marginBottom: 20,- }}- >- Start with Donkey- </div>- <h2- style={{- fontWeight: 600,- fontSize: "clamp(40px, 7vw, 80px)",- lineHeight: 0.95,- margin: "0 0 16px",- }}- >+ <div className="relative">+ <div className="absolute inset-0 translate-x-2 translate-y-2 rounded-3xl bg-coral" />+ <div className="relative rounded-3xl border-2 border-ink bg-ink px-6 py-10 text-center text-white md:px-12 md:py-20">+ <div className="absolute -top-[10px] left-1/2 h-[18px] w-20 -translate-x-1/2 -rotate-2 rounded-[3px] border-2 border-ink bg-coral" />+ <h2 className="mb-4 text-[clamp(40px,7vw,80px)] leading-[0.95] font-semibold">Let Donkey<br />carry the load.</h2>- <p- style={{- color: "rgba(255,255,255,0.7)",- fontSize: isDesktop ? 18 : 16,- marginBottom: 32,- maxWidth: 480,- marginLeft: "auto",- marginRight: "auto",- }}- >- Free during beta. Installs in 90 seconds.+ <p className="mx-auto mb-8 max-w-[480px] text-base text-[rgba(255,255,255,0.7)] md:text-lg">+ Installs in 90 seconds.</p>- <div- style={{- display: "flex",- flexWrap: "wrap",- gap: 12,- justifyContent: "center",- }}- >+ <div className="flex flex-wrap justify-center gap-3"><PillButton href={DONKEY_INSTALL_URL} variant="primary" size="lg">Download for Mac <ArrowRight size={18} /></PillButton>diff --git a/site/src/app/_components/landing/Footer.tsx b/site/src/app/_components/landing/Footer.tsxindex 54af52f3..b75b1dc2 100644--- a/site/src/app/_components/landing/Footer.tsx+++ b/site/src/app/_components/landing/Footer.tsx@@ -3,9 +3,6 @@import { Link as LinkIcon, Play, Send, type LucideIcon } from "lucide-react";import Link from "next/link";-import { useMediaQuery } from "@/app/_components/landing/useMediaQuery";-import { BLACK } from "@/app/_components/landing/theme";-type SocialLink = {href: string;icon: LucideIcon;@@ -13,7 +10,6 @@ type SocialLink = {};export function Footer() {- const isDesktop = useMediaQuery("(min-width: 768px)");const socialLinks: SocialLink[] = [{ href: "https://www.linkedin.com", icon: LinkIcon, label: "LinkedIn" },{ href: "https://www.youtube.com", icon: Play, label: "YouTube" },@@ -21,25 +17,10 @@ export function Footer() {];return (- <footer- style={{- borderTop: `2px solid ${BLACK}`,- boxSizing: "border-box",- padding: isDesktop ? "80px 48px" : "64px 24px",- width: "100%",- }}- >- <div style={{ maxWidth: 1400, margin: "0 auto" }}>- <div- style={{- display: "flex",- alignItems: "center",- gap: 16,- marginBottom: 32,- flexWrap: "wrap",- }}- >- <span style={{ fontWeight: 600, fontSize: isDesktop ? 48 : 40 }}>+ <footer className="w-full border-t-2 border-ink px-6 py-16 md:px-12 md:py-[80px]">+ <div className="mx-auto max-w-[1400px]">+ <div className="mb-8 flex flex-wrap items-center gap-4">+ <span className="text-[40px] font-semibold md:text-[48px]">donkey</span>{socialLinks.map((link) => {@@ -50,86 +31,34 @@ export function Footer() {aria-label={link.label}href={link.href}key={link.label}- style={{- width: 40,- height: 40,- borderRadius: 8,- border: `2px solid ${BLACK}`,- display: "flex",- alignItems: "center",- justifyContent: "center",- color: BLACK,- textDecoration: "none",- background: "#fff",- }}+ className="flex h-10 w-10 items-center justify-center rounded-lg border-2 border-ink bg-white text-ink no-underline"><Icon size={18} /></a>);})}</div>- <div- style={{- display: "flex",- alignItems: "flex-end",- justifyContent: "space-between",- gap: 16,- flexWrap: "wrap",- fontSize: 13,- color: "#666",- }}- >+ <div className="flex flex-wrap items-end justify-between gap-4 text-[13px] text-[#666]"><div>- <div style={{ fontWeight: 600, color: BLACK, marginBottom: 4 }}>+ <div className="mb-1 font-semibold text-ink"></div><div>2026 Donkey, Inc. Made for Macs.</div></div>- <div- style={{- display: "flex",- flexWrap: "wrap",- gap: 16,- }}- >- <Link- href="/sign-in"- style={{- color: BLACK,- fontWeight: 600,- textDecoration: "none",- }}- >- Sign in+ <div className="flex flex-wrap gap-4">+ <Link href="/pricing" className="font-semibold text-ink no-underline">+ Pricing+ </Link>+ <Link href="/sign-in" className="font-semibold text-ink no-underline">+ Log in</Link>- <Link- href="/sign-up"- style={{- color: BLACK,- fontWeight: 600,- textDecoration: "none",- }}- >+ <Link href="/sign-up" className="font-semibold text-ink no-underline">Sign up</Link>- <Link- href="/privacy"- style={{- color: BLACK,- fontWeight: 600,- textDecoration: "none",- }}- >+ <Link href="/privacy" className="font-semibold text-ink no-underline">Privacy Policy</Link>- <Link- href="/terms"- style={{- color: BLACK,- fontWeight: 600,- textDecoration: "none",- }}- >+ <Link href="/terms" className="font-semibold text-ink no-underline">Terms of Use</Link></div>diff --git a/site/src/app/_components/landing/Hero.tsx b/site/src/app/_components/landing/Hero.tsxindex 256bb439..6bfc31d2 100644--- a/site/src/app/_components/landing/Hero.tsx+++ b/site/src/app/_components/landing/Hero.tsx@@ -4,64 +4,28 @@ import { ArrowRight } from "lucide-react";import { PillButton } from "@/app/_components/landing/LandingPrimitives";import { DONKEY_INSTALL_URL } from "@/app/_components/landing/data";-import { useMediaQuery } from "@/app/_components/landing/useMediaQuery";export function Hero() {- const isDesktop = useMediaQuery("(min-width: 768px)");-return (<sectionid="top"- style={{- padding: isDesktop ? "64px 48px 120px" : "32px 24px 80px",- maxWidth: 1400,- margin: "0 auto",- }}+ className="mx-auto max-w-[1400px] px-6 pt-8 pb-20 md:px-12 md:pt-16 md:pb-[120px]">- <h1- style={{- fontWeight: 600,- letterSpacing: "-0.03em",- lineHeight: 0.88,- fontSize: "clamp(56px, 12vw, 168px)",- margin: 0,- }}- >+ <h1 className="text-[clamp(45px,9.6vw,134px)] leading-[0.88] font-semibold tracking-[-0.03em]">Get work done<br />- while <span style={{ fontStyle: "italic" }}>you sleep.</span>+ while <span className="italic">you sleep.</span></h1>- <p- style={{- marginTop: 32,- fontSize: isDesktop ? 20 : 18,- lineHeight: 1.55,- maxWidth: 560,- color: "#454545",- }}- >+ <p className="mt-8 max-w-[560px] text-[18px] leading-[1.55] text-[#454545] md:text-[20px]">Donkey gets work done on your Mac. Tell it what to do: research,drafting, scheduling, scraping, and it runs the rest of your machine foryou.</p>- <div style={{ marginTop: 36, display: "flex", flexWrap: "wrap", gap: 12 }}>+ <div className="mt-9 flex flex-wrap gap-3"><PillButton href={DONKEY_INSTALL_URL} variant="primary" size="lg">Download for Mac <ArrowRight size={18} /></PillButton></div>- <div- style={{- marginTop: 28,- display: "flex",- alignItems: "center",- gap: 14,- fontSize: 13,- color: "#666",- flexWrap: "wrap",- }}- >- <span>Free during beta</span>- </div></section>);}diff --git a/site/src/app/_components/landing/OpenSource.tsx b/site/src/app/_components/landing/OpenSource.tsxindex 1ad20ae0..ab65290f 100644--- a/site/src/app/_components/landing/OpenSource.tsx+++ b/site/src/app/_components/landing/OpenSource.tsx@@ -8,174 +8,74 @@ import {TapedCard,} from "@/app/_components/landing/LandingPrimitives";import { GITHUB_REPO_URL, openSourceReasons } from "@/app/_components/landing/data";-import { useMediaQuery } from "@/app/_components/landing/useMediaQuery";-import { BLACK } from "@/app/_components/landing/theme";export function OpenSource() {- const isDesktop = useMediaQuery("(min-width: 768px)");-return (- <section- style={{- padding: isDesktop ? "96px 48px" : "80px 24px",- maxWidth: 1400,- margin: "0 auto",- }}- >+ <section className="mx-auto max-w-[1400px] px-6 py-20 md:px-12 md:py-24"><Headline>- Donkey is yours. <span style={{ fontStyle: "italic" }}>All of it.</span>+ Donkey is yours. <span className="italic">All of it.</span></Headline>- <p- style={{- marginTop: 24,- fontSize: 17,- lineHeight: 1.55,- maxWidth: 600,- color: "#454545",- }}- >- Donkey is built in the open. Read the source, run your own build,- contribute an agent: it is all on GitHub.+ <p className="mt-6 max-w-[600px] text-[17px] leading-[1.55] text-[#454545]">+ Donkey is built in the open. Read the source, host it yourself,+ contribute and make it better.</p>- <div style={{ marginTop: 32 }}>+ <div className="mt-8"><TapedCard color="cream" shadowColor="coral" tapeColor="coral">- <div style={{ padding: isDesktop ? 40 : 24 }}>- <div- style={{- background: BLACK,- borderRadius: 12,- padding: isDesktop ? "24px" : "20px 18px",- fontFamily: 'ui-monospace, "SF Mono", Menlo, monospace',- fontSize: isDesktop ? 15 : 13,- color: "#fff",- overflowX: "auto",- }}- >- <div- style={{- display: "flex",- alignItems: "center",- gap: 8,- marginBottom: 16,- color: "#888",- }}- >- <span- style={{- width: 10,- height: 10,- borderRadius: 999,- background: "#FF5F57",- }}- />- <span- style={{- width: 10,- height: 10,- borderRadius: 999,- background: "#FEBC2E",- }}- />- <span- style={{- width: 10,- height: 10,- borderRadius: 999,- background: "#28C840",- }}- />- <span style={{ marginLeft: 8, fontSize: 12 }}>+ <div className="p-6 md:p-10">+ <div className="overflow-x-auto rounded-xl bg-ink px-[18px] py-5 font-code text-[13px] text-white md:p-6 md:text-[15px]">+ <div className="mb-4 flex items-center gap-2 text-[#888]">+ <span className="h-[10px] w-[10px] rounded-full bg-[#FF5F57]" />+ <span className="h-[10px] w-[10px] rounded-full bg-[#FEBC2E]" />+ <span className="h-[10px] w-[10px] rounded-full bg-[#28C840]" />+ <span className="ml-2 text-xs">~/ - DonkeyUseCorp/Donkey</span></div>- <div style={{ color: "#b7b7b7", whiteSpace: "nowrap" }}>- <span style={{ color: "#5FFFB9" }}>$</span> git clone{" "}+ <div className="whitespace-nowrap text-[#b7b7b7]">+ <span className="text-[#5FFFB9]">$</span> git clone{" "}{GITHUB_REPO_URL}</div>- <div style={{ color: "#b7b7b7", marginTop: 4, whiteSpace: "nowrap" }}>- <span style={{ color: "#5FFFB9" }}>$</span> cd donkey && make- run+ <div className="mt-3 text-[#6f6f6f]">+ # Compile and run the macOS app+ </div>+ <div className="mt-1 whitespace-nowrap text-[#b7b7b7]">+ <span className="text-[#5FFFB9]">$</span> cd+ Donkey/apps/Donkey && swift run Donkey+ </div>+ <div className="mt-3 text-[#6f6f6f]">+ # Or run the server yourself</div>- <div style={{ color: "#5FFFB9", marginTop: 12 }}>- Donkey running locally - http://localhost:5005+ <div className="mt-1 whitespace-nowrap text-[#b7b7b7]">+ <span className="text-[#5FFFB9]">$</span> cd Donkey/site &&+ npm install && npm run dev+ </div>+ <div className="mt-3 text-[#5FFFB9]">+ Server running - http://localhost:3000</div></div>- <div- style={{- marginTop: 24,- display: "flex",- flexWrap: "wrap",- gap: 12,- alignItems: "center",- }}- >- <PillButton href={GITHUB_REPO_URL} variant="dark" size="md">+ <div className="mt-6 flex flex-wrap items-center gap-3">+ <PillButton href={GITHUB_REPO_URL} variant="secondary" size="md">Star on GitHub <ArrowRight size={14} /></PillButton>- <PillButton href="/prototype" variant="secondary" size="md">- View prototype- </PillButton></div></div></TapedCard></div>- <div- style={{- marginTop: 24,- display: "grid",- gridTemplateColumns: isDesktop ? "1fr 1fr" : "1fr",- gap: 16,- }}- >+ <div className="mt-6 grid grid-cols-1 gap-4 md:grid-cols-2">{openSourceReasons.map((reason) => (<TapedCard key={reason.title} color={reason.color} tapeColor="cream">- <div- style={{- padding: 24,- display: "flex",- alignItems: "flex-start",- gap: 16,- }}- >- <div- style={{- width: 56,- minWidth: 56,- height: 48,- borderRadius: 12,- border: `2px solid ${BLACK}`,- background: "#fff",- display: "flex",- alignItems: "center",- justifyContent: "center",- fontSize: 12,- fontWeight: 600,- }}- >+ <div className="flex items-start gap-4 p-6">+ <div className="flex h-12 w-14 min-w-14 items-center justify-center rounded-xl border-2 border-ink bg-white text-xs font-semibold">{reason.icon}</div>- <div style={{ flex: 1 }}>- <h3- style={{- fontWeight: 600,- fontSize: 22,- lineHeight: 1.15,- margin: "0 0 8px",- }}- >+ <div className="flex-1">+ <h3 className="mb-2 text-[22px] font-semibold leading-[1.15]">{reason.title}</h3>- <p- style={{- fontSize: 14,- lineHeight: 1.55,- color: "#222",- margin: 0,- }}- >+ <p className="text-sm leading-[1.55] text-[#222]">{reason.body}</p></div>diff --git a/site/src/app/_components/landing/PricingPage.tsx b/site/src/app/_components/landing/PricingPage.tsxindex aa472f40..5d9f3685 100644--- a/site/src/app/_components/landing/PricingPage.tsx+++ b/site/src/app/_components/landing/PricingPage.tsx@@ -11,160 +11,51 @@ import { Footer } from "@/app/_components/landing/Footer";import { PricingPlanCard } from "@/app/_components/landing/PricingPlanCard";import { TopNav } from "@/app/_components/landing/TopNav";import { pricingPlans } from "@/app/_components/landing/pricingPlans";-import { BG, BLACK } from "@/app/_components/landing/theme";-import { useMediaQuery } from "@/app/_components/landing/useMediaQuery";export function PricingPage() {- const isDesktop = useMediaQuery("(min-width: 768px)");- const isWideDesktop = useMediaQuery("(min-width: 1400px)");-return (- <main- style={{- WebkitFontSmoothing: "antialiased",- background: BG,- color: BLACK,- boxSizing: "border-box",- fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif',- maxWidth: "100%",- minHeight: "100vh",- overflowX: "hidden",- width: "100%",- }}- >- <TopNav ctaHref="/sign-in" ctaLabel="Sign in" />- <section- style={{- boxSizing: "border-box",- margin: "0 auto",- maxWidth: 1400,- padding: isDesktop ? "72px 48px 64px" : "44px 24px 48px",- width: "100%",- }}- >- <h1- style={{- fontSize: isDesktop ? 112 : 52,- fontWeight: 600,- letterSpacing: 0,- lineHeight: 0.9,- margin: 0,- maxWidth: isDesktop ? 1304 : 700,- overflowWrap: "break-word",- }}- >+ <main className="min-h-screen w-full max-w-full overflow-x-hidden bg-background font-system text-ink antialiased">+ <TopNav ctaHref="/sign-in" ctaLabel="Log in" />+ <section className="mx-auto w-full max-w-[1400px] px-6 pt-[44px] pb-12 md:px-12 md:pt-[72px] md:pb-16">+ <h1 className="max-w-[700px] text-[52px] leading-[0.9] font-semibold tracking-normal break-words md:max-w-[1304px] md:text-[112px]">Pick the plan.<br />- <span style={{ whiteSpace: isWideDesktop ? "nowrap" : "normal" }}>- Let Donkey <span style={{ fontStyle: "italic" }}>carry it.</span>+ <span className="whitespace-normal min-[1400px]:whitespace-nowrap">+ Let Donkey <span className="italic">carry it.</span></span></h1>- <p- style={{- color: "#454545",- fontSize: isDesktop ? 20 : 18,- lineHeight: 1.55,- marginTop: 32,- maxWidth: 640,- }}- >+ <p className="mt-8 max-w-[640px] text-[18px] leading-[1.55] text-[#454545] md:text-[20px]">Pro is the self-serve path. Enterprise stays personal: tell us whatyour team needs, and we will shape the rollout around it.</p></section>- <section- style={{- boxSizing: "border-box",- margin: "0 auto",- maxWidth: 1400,- padding: isDesktop ? "0 48px 96px" : "0 24px 80px",- width: "100%",- }}- >- <div- style={{- display: "grid",- gap: 24,- gridTemplateColumns: isDesktop ? "1fr 1fr" : "1fr",- }}- >+ <section className="mx-auto w-full max-w-[1400px] px-6 pb-20 md:px-12 md:pb-24">+ <div className="grid grid-cols-1 gap-6 md:grid-cols-2">{pricingPlans.map((plan) => (<PricingPlanCard key={plan.name} plan={plan} />))}</div></section>- <section- style={{- boxSizing: "border-box",- margin: "0 auto",- maxWidth: 1400,- padding: isDesktop ? "0 48px 120px" : "0 24px 80px",- width: "100%",- }}- >- <div style={{ position: "relative" }}>- <div- style={{- background: "#EC7868",- borderRadius: 24,- inset: 0,- position: "absolute",- transform: "translate(8px, 8px)",- }}- />- <div- style={{- background: BLACK,- border: `2px solid ${BLACK}`,- borderRadius: 24,- color: "#fff",- display: "grid",- gap: isDesktop ? 36 : 24,- gridTemplateColumns: isDesktop ? "1fr auto" : "1fr",- padding: isDesktop ? "56px 48px" : "36px 28px",- position: "relative",- }}- >+ <section className="mx-auto w-full max-w-[1400px] px-6 pb-20 md:px-12 md:pb-[120px]">+ <div className="relative">+ <div className="absolute inset-0 translate-x-2 translate-y-2 rounded-3xl bg-coral" />+ <div className="relative grid grid-cols-1 gap-6 rounded-3xl border-2 border-ink bg-ink px-7 py-9 text-white md:grid-cols-[1fr_auto] md:gap-9 md:px-12 md:py-14"><div>- <div- style={{- color: "rgba(255,255,255,0.55)",- fontSize: 12,- fontWeight: 600,- letterSpacing: "0.12em",- marginBottom: 18,- textTransform: "uppercase",- }}- >+ <div className="mb-[18px] text-xs font-semibold tracking-[0.12em] text-white/55 uppercase">Already subscribed</div><Headline size="lg">Keep billing boring.</Headline>- <p- style={{- color: "rgba(255,255,255,0.72)",- fontSize: isDesktop ? 17 : 15,- lineHeight: 1.55,- margin: "18px 0 0",- maxWidth: 560,- }}- >+ <p className="mt-[18px] max-w-[560px] text-[15px] leading-[1.55] text-white/72 md:text-[17px]">Manage payment methods, receipts, and subscription details fromone secure place.</p></div>- <div- style={{- alignSelf: "center",- display: "flex",- flexWrap: "wrap",- gap: 12,- }}- >+ <div className="flex flex-wrap items-center gap-3 self-center"><BillingPortalButton /><PillButton href="/sign-in" variant="primary">- Sign in <ArrowRight size={14} />+ Log in <ArrowRight size={14} /></PillButton></div></div>diff --git a/site/src/app/_components/landing/TopNav.tsx b/site/src/app/_components/landing/TopNav.tsxindex b55af4d3..bcd77f73 100644--- a/site/src/app/_components/landing/TopNav.tsx+++ b/site/src/app/_components/landing/TopNav.tsx@@ -6,8 +6,6 @@ import { ArrowRight } from "lucide-react";import { PillButton } from "@/app/_components/landing/LandingPrimitives";import { DONKEY_INSTALL_URL } from "@/app/_components/landing/data";-import { useMediaQuery } from "@/app/_components/landing/useMediaQuery";-import { BLACK } from "@/app/_components/landing/theme";const NAV_ICON_SIZE = 59;@@ -24,78 +22,38 @@ export function TopNav({homeHref = "/",showAuthLinks = true,}: Props) {- const isDesktop = useMediaQuery("(min-width: 768px)");-return (- <nav- style={{- display: "flex",- alignItems: "center",- boxSizing: "border-box",- justifyContent: "space-between",- padding: isDesktop ? "28px 48px" : "24px 24px",- maxWidth: 1400,- margin: "0 auto",- width: "100%",- }}- >+ <nav className="mx-auto flex w-full max-w-[1400px] items-center justify-between px-6 py-6 md:px-12 md:py-7"><Linkhref={homeHref}- style={{- display: "flex",- alignItems: "center",- gap: 0,- color: BLACK,- textDecoration: "none",- }}+ className="flex items-center gap-0 text-ink no-underline">- <div- style={{- width: NAV_ICON_SIZE,- height: NAV_ICON_SIZE,- borderRadius: 10,- display: "flex",- alignItems: "center",- justifyContent: "center",- overflow: "hidden",- }}- >+ <div className="flex h-[59px] w-[59px] items-center justify-center overflow-hidden rounded-[10px]"><Imagesrc="/donkey-site-mark.webp"alt=""width={NAV_ICON_SIZE}height={NAV_ICON_SIZE}sizes={`${NAV_ICON_SIZE}px`}- style={{- display: "block",- width: "100%",- height: "100%",- objectFit: "cover",- }}+ className="block h-full w-full object-cover"/></div>- <span style={{ fontWeight: 600, fontSize: 24 }}>donkey</span>+ <span className="text-2xl font-semibold">donkey</span></Link>- <div style={{ display: "flex", alignItems: "center", gap: isDesktop ? 16 : 10 }}>+ <div className="flex items-center gap-[10px] md:gap-4">{showAuthLinks ? (<><Linkhref="/sign-in"- style={{- color: BLACK,- fontSize: 14,- fontWeight: 600,- textDecoration: "none",- whiteSpace: "nowrap",- }}+ className="whitespace-nowrap text-sm font-semibold text-ink no-underline">- Sign in+ Log in</Link>- {isDesktop ? (+ <span className="hidden md:inline-flex"><PillButton href="/sign-up" variant="secondary" size="sm">Sign up</PillButton>- ) : null}+ </span></>) : null}<PillButton href={ctaHref} variant="dark" size="sm">diff --git a/site/src/app/globals.css b/site/src/app/globals.cssindex 76ba211c..f2dfeb1a 100644--- a/site/src/app/globals.css+++ b/site/src/app/globals.css@@ -9,6 +9,11 @@@theme inline {--color-background: var(--background);--color-foreground: var(--foreground);+ --color-ink: #0f0e0d;+ --color-coral: #ec7868;+ --color-cream: #faf6ec;+ --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;+ --font-code: ui-monospace, "SF Mono", Menlo, monospace;--font-sans: var(--font-sans);--font-mono: var(--font-geist-mono);--font-heading: var(--font-sans);