Open source alternative to Semrush and Ahrefs
TypeScript backlink-analysisgoogle-search-console-mcpkeyword-researchmcpseoseo-agentseo-auditseo-automationseo-skillsseo-toolssite-audit
Refresh landing page hero and navigation (#935)
Ben Senescu6e99fa29b5bc
diff --git a/web/src/components/landing-page.css b/web/src/components/landing-page.cssindex d1e85520..05c324dd 100644--- a/web/src/components/landing-page.css+++ b/web/src/components/landing-page.css@@ -89,7 +89,7 @@}@media (max-width: 767px) {.itc-section {- padding: 64px 0;+ padding: 48px 0 32px;}}@@ -300,8 +300,8 @@transform: translate(-50%, -50%);display: grid;place-items: center;- width: clamp(64px, 8vw, 96px);- height: clamp(64px, 8vw, 96px);+ width: 64px;+ height: 64px;border-radius: 50%;background: #ffffff;color: var(--ink);@@ -312,9 +312,8 @@.itc-hero {align-items: center;display: flex;- min-height: calc(100svh - 150px);- padding-top: clamp(104px, 12vh, 176px);- padding-bottom: clamp(96px, 12vh, 144px);+ min-height: calc(100svh - 76px - 160px);+ padding: 40px 0;position: relative;text-align: center;}@@ -326,18 +325,15 @@transition: background-color 0.18s ease;}.itc-hero .itc-container {+ width: 100%;position: relative;z-index: 1;}-/* Out of flow so the hero's vertical centering ignores the laurel and the- headline block sits exactly where it did without it. */+/* Launch proof leads into the headline. */.itc-hero-ph-laurel {color: var(--ink);display: inline-flex;- position: absolute;- bottom: calc(100% + 28px);- left: 50%;- transform: translateX(-50%);+ margin: 0 auto 24px;opacity: 0.85;transition: opacity 0.18s ease;}@@ -349,14 +345,14 @@width: auto;}@media (max-width: 767px) {- .itc-hero-ph-laurel {- bottom: calc(100% + 20px);- }.itc-hero-ph-laurel svg {height: 38px;}}.itc-hero-title {+ font-size: clamp(36px, 4.5vw, 58px);+ line-height: 1.1;+ text-wrap: balance;color: var(--ink);transition: color 0.18s ease;}@@ -368,9 +364,8 @@}@media (max-width: 767px) {.itc-hero {- min-height: calc(100svh - 120px);- padding-top: 72px;- padding-bottom: 88px;+ min-height: calc(100svh - 64px - 140px);+ padding: 32px 0;}}.itc-hero-ctas {@@ -579,9 +574,6 @@border-top: 1px solid var(--hairline);padding: 84px 0 92px;}-.itc-hero + .itc-mcp-section {- margin-top: 24px;-}.itc-mcp-grid {display: grid;gap: 48px;@@ -595,10 +587,7 @@}@media (max-width: 767px) {.itc-mcp-section {- padding: 64px 0;- }- .itc-hero + .itc-mcp-section {- margin-top: 28px;+ padding: 48px 0 32px;}}.itc-terminal {@@ -843,3 +832,17 @@padding: 12px;}}++/* The demo peeks below the centered hero. */+.itc-hero-followup {+ padding: 0 0 56px;+ text-align: center;+}+.itc-hero-demo {+ max-width: 1000px;+ margin: 0 auto;+}+.itc-demo-video video {+ height: auto;+ aspect-ratio: 1440 / 900;+}diff --git a/web/src/components/landing-page.tsx b/web/src/components/landing-page.tsxindex e4f79625..a296feb4 100644--- a/web/src/components/landing-page.tsx+++ b/web/src/components/landing-page.tsx@@ -212,38 +212,52 @@ function ArrowCta({function Hero() {return (- <section className="itc-hero">- <Container>- <a- href={PRODUCT_HUNT_URL}- target="_blank"- rel="noopener noreferrer"- className="itc-hero-ph-laurel"- aria-label="Number 1 Product of the Day on Product Hunt"- >- <ProductHuntLaurel />- </a>- <h1- className="itc-display-xl itc-hero-title"- style={{ maxWidth: 1180, margin: "0 auto" }}- >- SEO made simple.- </h1>- <p- className="itc-subhead itc-muted itc-hero-subtitle"- style={{ maxWidth: 640, margin: "24px auto 0" }}- >- Connect your favorite AI agent in 2 minutes. OpenSEO gives the data- and tools you need to grow your business's organic traffic.- </p>- <div className="itc-hero-ctas">- <div className="itc-hero-cta-group">- <ArrowCta size="lg" />- <p className="itc-hero-cta-note">No credit card required</p>+ <>+ <section className="itc-hero">+ <Container>+ <a+ href={PRODUCT_HUNT_URL}+ target="_blank"+ rel="noopener noreferrer"+ className="itc-hero-ph-laurel"+ aria-label="Number 1 Product of the Day on Product Hunt"+ >+ <ProductHuntLaurel />+ </a>+ <h1+ className="itc-display-xl itc-hero-title"+ style={{ maxWidth: 1180, margin: "0 auto" }}+ >+ Grow your business with SEO+ </h1>+ <p+ className="itc-subhead itc-muted itc-hero-subtitle"+ style={{ maxWidth: 640, margin: "24px auto 0" }}+ >+ Connect your favorite AI agent in 2 minutes. OpenSEO gives the data,+ tools and integrations you need to grow your business's organic+ traffic.+ </p>+ <div className="itc-hero-ctas">+ <div className="itc-hero-cta-group">+ <ArrowCta size="lg" />+ <p className="itc-hero-cta-note">No credit card required</p>+ </div></div>- </div>- </Container>- </section>+ </Container>+ </section>+ <div className="itc-hero-followup">+ <Container>+ <figure className="itc-hero-demo">+ <div className="itc-mockup">+ <div className="itc-mockup-media">+ <DemoVideo />+ </div>+ </div>+ </figure>+ </Container>+ </div>+ </>);}@@ -369,7 +383,18 @@ function DemoVideo() {<buttontype="button"className="itc-demo-play"- onClick={() => void videoRef.current?.play()}+ onClick={() => {+ const video = videoRef.current;+ if (!video) return;+ video.scrollIntoView({+ block: "center",+ behavior: window.matchMedia("(prefers-reduced-motion: reduce)")+ .matches+ ? "instant"+ : "smooth",+ });+ void video.play();+ }}aria-label="Play the OpenSEO demo video"><span className="itc-demo-play-button" aria-hidden="true">@@ -388,7 +413,7 @@ function ProductSection() {<section className="itc-section itc-section-demo"><Container><div className="itc-narrow">- <h2 className="itc-display-lg">See OpenSEO in action</h2>+ <h2 className="itc-display-lg">SEO data for the work ahead</h2><p className="itc-subhead itc-muted" style={{ margin: "20px 0 0" }}>Keyword research, competitor analysis, backlinks, rank tracking,technical audits, and AI-search visibility, all on real DataForSEO@@ -396,12 +421,6 @@ function ProductSection() {</p></div>- <div className="itc-mockup" style={{ marginTop: 48 }}>- <div className="itc-mockup-media" style={{ aspectRatio: "1440/900" }}>- <DemoVideo />- </div>- </div>-<div className="itc-feature-list-grid">{FEATURE_CARDS.map(({ page, blurb }) => (<adiff --git a/web/src/routes/_marketing.tsx b/web/src/routes/_marketing.tsxindex 83a1b073..a203c3a7 100644--- a/web/src/routes/_marketing.tsx+++ b/web/src/routes/_marketing.tsx@@ -123,8 +123,7 @@ function CloseIcon({ size = 28 }: { size?: number }) {}export const Route = createFileRoute("/_marketing")({- // Runs at prerender/SSR time, so the count is baked into the static HTML that- // Cloudflare serves from the edge — no per-viewer request for it.+ // Fetch once at SSR/prerender time, not once per visitor.loader: async () => ({ githubStarCount: await loadGithubStarCount() }),// The value is fixed per build; never refetch it on client navigation.staleTime: Infinity,@@ -137,12 +136,12 @@ function MarketingLayout() {const { pathname } = useLocation();const mobileNavItems = getMobileNavItems(githubStarCount);- // The home route owns the full viewport width (and its own footer/CTA band);+ // The home route owns the full viewport width and footer;// every other marketing page gets the shared marketing canvas and footer.const isHome = pathname === "/";// On the landing route, paint html/body cream so the area behind the- // floating nav and any overscroll matches the landing canvas.+ // header and any overscroll matches the landing canvas.useEffect(() => {if (!isHome) return;const root = document.documentElement;@@ -158,28 +157,31 @@ function MarketingLayout() {return (<main className="fd-light min-h-screen bg-[var(--color-surface)] text-[var(--color-brand)]">- <div className="relative z-50 mx-auto w-full max-w-6xl px-4 pt-6 sm:px-6 md:pt-8">- <div className="relative mx-auto max-w-5xl">- <nav className="grid min-h-14 grid-cols-[1fr_auto] items-center gap-3 rounded-full border border-[var(--color-border-subtle)] bg-white/90 px-4 py-2.5 shadow-sm shadow-neutral-900/5 backdrop-blur md:grid-cols-[1fr_auto_1fr] md:px-5">+ <header className="sticky top-0 z-50 w-full border-b border-[#ded9d2] bg-[#f5f1ec]/95 backdrop-blur-xl">+ <div className="relative mx-auto w-full max-w-[1232px] px-6">+ <nav+ aria-label="Main navigation"+ className="flex h-16 items-center gap-10 md:h-[76px] lg:gap-14"+ ><Linkto="/"- className="text-sm font-semibold hover:opacity-80 transition-opacity"+ className="text-xl font-medium tracking-[-0.06em] hover:opacity-80 transition-opacity">OpenSEO</Link>- <div className="hidden items-center justify-center gap-5 md:flex">+ <div className="hidden items-center gap-7 md:flex"><FeatureDropdown /><ResourcesDropdown /><Linkto="/pricing"- className="text-sm font-semibold text-neutral-600 transition-colors hover:text-neutral-900"+ className="text-sm font-medium text-neutral-600 transition-colors hover:text-neutral-900">Pricing</Link></div>- <div className="flex items-center justify-end gap-2 sm:gap-3">+ <div className="ml-auto flex items-center justify-end gap-2 sm:gap-3"><buttontype="button"aria-label={mobileMenuOpen ? "Close menu" : "Open menu"}@@ -194,23 +196,22 @@ function MarketingLayout() {target="_blank"rel="noopener noreferrer"aria-label={`GitHub, ${githubStarCount} stars`}- className="hidden h-9 items-center gap-1.5 px-2 text-sm font-semibold text-neutral-600 transition-colors hover:text-neutral-900 md:inline-flex"+ className="hidden h-9 items-center gap-1.5 px-2 text-sm font-medium text-neutral-600 transition-colors hover:text-neutral-900 md:inline-flex"><GitHubIcon size={16} />- <span>GitHub</span><span className="text-neutral-500">{githubStarCount}</span></a><ahref="https://app.openseo.so/sign-in"- className="hidden h-9 items-center rounded-full border border-[var(--color-border-subtle)] px-4 text-sm font-medium text-neutral-900 transition-colors hover:border-neutral-900 md:inline-flex"+ className="hidden h-9 items-center gap-2 border-l border-[#ded9d2] pl-5 text-sm font-medium text-neutral-900 transition-colors hover:text-neutral-600 md:inline-flex">- Sign in+ Sign in <span aria-hidden="true">↗</span></a></div></nav>{mobileMenuOpen ? (- <div className="absolute left-0 right-0 top-full z-30 mt-3 rounded-2xl border border-[var(--color-border-subtle)] bg-white p-3 shadow-xl shadow-neutral-900/10 md:hidden">+ <div className="absolute left-0 right-0 top-full z-30 max-h-[calc(100dvh-4rem)] overflow-y-auto border-b border-[var(--color-border-subtle)] bg-white p-4 shadow-xl shadow-neutral-900/10 md:hidden"><div className="grid grid-cols-2 gap-2"><ahref="https://app.openseo.so/sign-in"@@ -252,7 +253,7 @@ function MarketingLayout() {</div>) : null}</div>- </div>+ </header>{isHome ? (<Outlet />@@ -299,13 +300,13 @@ function ResourcesDropdown() {<div className="group relative"><ahref="/blogs"- className="text-sm font-semibold text-neutral-600 transition-colors hover:text-neutral-900 md:hidden"+ className="text-sm font-medium text-neutral-600 transition-colors hover:text-neutral-900 md:hidden">Resources</a><buttontype="button"- className="hidden h-10 items-center text-sm font-semibold text-neutral-600 transition-colors hover:text-neutral-900 md:inline-flex"+ className="hidden h-10 items-center text-sm font-medium text-neutral-600 transition-colors hover:text-neutral-900 md:inline-flex">Resources</button>@@ -336,17 +337,17 @@ function FeatureDropdown() {<div className="group relative"><Linkto="/features"- className="text-sm font-semibold text-neutral-600 transition-colors hover:text-neutral-900 md:hidden"+ className="text-sm font-medium text-neutral-600 transition-colors hover:text-neutral-900 md:hidden">Features</Link><buttontype="button"- className="hidden h-10 items-center text-sm font-semibold text-neutral-600 transition-colors hover:text-neutral-900 md:inline-flex"+ className="hidden h-10 items-center text-sm font-medium text-neutral-600 transition-colors hover:text-neutral-900 md:inline-flex">Features</button>- <div className="pointer-events-none absolute left-1/2 top-[calc(100%-2px)] z-20 hidden w-[560px] -translate-x-1/2 pt-2 opacity-0 transition md:block group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100">+ <div className="pointer-events-none absolute left-0 top-[calc(100%-2px)] z-20 hidden w-[560px] pt-2 opacity-0 transition md:block group-hover:pointer-events-auto group-hover:opacity-100 group-focus-within:pointer-events-auto group-focus-within:opacity-100"><div className="rounded-lg border border-[var(--color-border-subtle)] bg-white p-5 shadow-xl shadow-neutral-900/10"><div className="grid grid-cols-2 gap-x-8 gap-y-6">{featureGroups.map((group) => (