Files
supabase/apps/design-system/components/top-navigation.tsx
Ivan Vasilov 56de26fe22 chore: Migrate the monorepo to use Tailwind v4 (#45318)
This PR migrates the whole monorepo to use Tailwind v4:
- Removed `@tailwindcss/container-queries` plugin since it's included by
default in v4,
- Bump all instances of Tailwind to v4. Made minimal changes to the
shared config to remove non-supported features (`alpha` mentions),
- Migrate all apps to be compatible with v4 configs,
- Fix the `typography.css` import in 3 apps,
- Add missing rules which were included by default in v3,
- Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot
of classes
- Rename all misnamed classes according to
https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all
apps.

---------

Co-authored-by: Jordi Enric <jordi.err@gmail.com>
2026-04-30 10:53:24 +00: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
type="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">
<h1 className="hidden md:flex line-clamp-1 lg:text-2xl text-xl">
Supabase Design System
</h1>
<HomepageSvgHandler name="logo" className="h-4 w-auto" />
</Link>
</div>
<div className="flex items-center gap-2">
<CommandMenu />
<ThemeSwitcherDropdown />
</div>
</div>
</nav>
</header>
)
}