Files
supabase/apps/design-system/components/top-navigation.tsx
Kody Jackson 08504ae26a fix(www) - remove duplicate h1 entries (#52341)
## Problem

Dupe H1 entries across several pages

## Solution

For blogs, remove the `#` or move to `##`.

For others, adjust the templating logic to avoid rendering multiple.

## Preview links

### Design system

[previous](https://supabase.com/design-system/docs)

<img width="1328" height="832" alt="image"
src="https://github.com/user-attachments/assets/95abab7f-acba-4935-83f7-4f980a7379ce"
/>


[new](https://design-system-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/design-system)
<img width="1328" height="795" alt="image"
src="https://github.com/user-attachments/assets/98c3f377-ee47-48bc-b3de-f7677824f1df"
/>

### www


| Area | Page | Before (production) | After (preview) | h1 count before
→ expected after |
|---|---|---|---|---|
| CTA form (Solutions) | AI Builders |
https://supabase.com/solutions/ai-builders |
https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/solutions/ai-builders
| 2 → 1 |
| CTA form (Solutions) | Agencies |
https://supabase.com/solutions/agencies |
https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/solutions/agencies
| 2 → 1 |
| CTA form (Enterprise) | Enterprise |
https://supabase.com/solutions/enterprise |
https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/solutions/enterprise
| 2 → 1 |
| Changelog | Declarative Schema Management (pg-delta) |
https://supabase.com/changelog/44938-public-alpha-declarative-schema-management-with-pg-delta
|
https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/changelog/44938-public-alpha-declarative-schema-management-with-pg-delta
| 2 → 1 |
| Changelog | Queue table operations |
https://supabase.com/changelog/42460-queue-table-inserts-edits-and-deletes-on-the-table-editor
|
https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/changelog/42460-queue-table-inserts-edits-and-deletes-on-the-table-editor
| 2 → 1 |
| Changelog | Auth asymmetric keys |
https://supabase.com/changelog/29289-supabase-auth-asymmetric-keys-support-in-2025
|
https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/changelog/29289-supabase-auth-asymmetric-keys-support-in-2025
| 5 → 1 |
| Company | Company | https://supabase.com/company |
https://zone-www-dot-com-git-kody-devrel-770-dupe-h1s-supabase.vercel.app/company
| 40 → 1 |
2026-10-27 08:32:33 -05:00

44 lines
1.5 KiB
TypeScript

'use client'
import { Menu } from 'lucide-react'
import Link from 'next/link'
import { Button } from 'ui'
import { CommandMenu } from './command-menu'
import { HomepageSvgHandler } from './homepage-svg-handler'
import { ThemeSwitcherDropdown } from './theme-switcher-dropdown'
import { useMobileSidebar } from '@/hooks/use-mobile-sidebar'
export const TopNavigation = () => {
const { toggle } = useMobileSidebar()
return (
<header className="sticky top-0 z-50 w-full bg-studio/95 backdrop-blur-sm supports-backdrop-filter:bg-studio/60 border-b border-l border-r">
<nav className="py-3 w-full flex">
<div className="max-w-site w-full flex flex-row items-center gap-6 mx-auto md:px-6 px-4 justify-between">
<div className="flex items-center gap-2">
<Button
variant="text"
size="tiny"
className="px-1 md:hidden"
onClick={toggle}
icon={<Menu size={16} />}
aria-label="Toggle navigation menu"
/>
<Link href="/" className="flex items-center lg:gap-6 gap-4">
<span className="hidden md:flex line-clamp-1 lg:text-2xl text-xl">
Supabase Design System
</span>
<HomepageSvgHandler name="logo" className="h-4 w-auto" />
</Link>
</div>
<div className="flex items-center gap-2">
<CommandMenu />
<ThemeSwitcherDropdown />
</div>
</div>
</nav>
</header>
)
}