fix: header

This commit is contained in:
ner committed 2024-03-22 13:41:31 +02:00
1 parent 095f7361fa
commit 1a762d00c5
13 files changed
+432 -105

No files matched your search

+7 -8
View File
@@ -3,23 +3,22 @@ import Link from 'next/link';
import { Badge } from '@/components/ui/badge';
import Navigation from './components/Navigation';
import Navigation, { NavigationSmall } from './components/Navigation';
import ToggleSearch from './components/Search';
import ToggleTheme from './components/ThemeToggle';
const Header: FC = () => (
<header className='flex justify-center bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 sticky pt-2 pb-2 top-0 z-10'>
<div className='max-w-[1260px] w-full px-[12px]'>
<div className='flex items-center justify-between gap-2 flex-wrap md:flex-nowrap'>
<Link href='/' shallow>
<header className='flex justify-center bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60 sticky py-2 top-0 z-10'>
<div className='max-w-[1260px] w-full px-2'>
<div className='flex items-center justify-between gap-2 md:flex-nowrap'>
<Link href='/' shallow legacyBehavior>
<Badge className='whitespace-nowrap'>Movie advisor</Badge>
</Link>
<div className='w-full order-3 md:order-none'>
<Navigation />
</div>
<Navigation className='hidden sm:flex' />
<div className='flex items-center gap-2'>
<ToggleTheme />
<ToggleSearch />
<NavigationSmall className='flex sm:hidden' />
</div>
</div>
</div>