mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
55 lines
2.0 KiB
TypeScript
55 lines
2.0 KiB
TypeScript
'use client'
|
|
|
|
import Link from 'next/link'
|
|
import { LanguageDropdown } from '@/components/ui/language-dropdown'
|
|
import { SearchTrigger } from '@/components/ui/search-trigger'
|
|
import { SimLogoFull } from '@/components/ui/sim-logo'
|
|
import { ThemeToggle } from '@/components/ui/theme-toggle'
|
|
|
|
export function Navbar() {
|
|
return (
|
|
<nav className='sticky top-0 z-50 border-border/50 border-b bg-background/80 backdrop-blur-md backdrop-saturate-150'>
|
|
{/* Desktop: Single row layout */}
|
|
<div className='hidden h-16 w-full items-center lg:flex'>
|
|
<div
|
|
className='relative flex w-full items-center justify-between'
|
|
style={{
|
|
paddingLeft: 'calc(var(--sidebar-offset) + 32px)',
|
|
paddingRight: 'calc(var(--toc-offset) + 60px)',
|
|
}}
|
|
>
|
|
{/* Left cluster: logo */}
|
|
<div className='flex items-center'>
|
|
<Link href='/' className='flex min-w-[100px] items-center'>
|
|
<SimLogoFull className='h-7 w-auto' />
|
|
</Link>
|
|
</div>
|
|
|
|
{/* Center cluster: search - absolutely positioned to center */}
|
|
<div className='-translate-x-1/2 absolute left-1/2 flex items-center justify-center'>
|
|
<SearchTrigger />
|
|
</div>
|
|
|
|
{/* Right cluster aligns with TOC edge */}
|
|
<div className='flex items-center gap-4'>
|
|
<Link
|
|
href='https://sim.ai'
|
|
target='_blank'
|
|
rel='noopener noreferrer'
|
|
className='rounded-xl px-3 py-2 font-normal text-[0.9375rem] text-foreground/60 leading-[1.4] transition-colors hover:bg-foreground/8 hover:text-foreground'
|
|
style={{
|
|
fontFamily:
|
|
'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
|
|
}}
|
|
>
|
|
Platform
|
|
</Link>
|
|
<LanguageDropdown />
|
|
<ThemeToggle />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
)
|
|
}
|