2023-10-13 19:02:59 -04:00
|
|
|
import { UserMenu } from "./components/UserMenu";
|
|
|
|
import { Search } from "./components/Search";
|
|
|
|
import { Notifications } from "./components/Notifications";
|
|
|
|
import { MobileMenu } from "./components/MobileMenu";
|
2023-10-14 12:09:44 -04:00
|
|
|
import Logo from "@/assets/Logo";
|
2023-10-13 19:02:59 -04:00
|
|
|
export default function Header() {
|
|
|
|
return (
|
|
|
|
<header className="flex h-[var(--header-height)] shrink-0 grow-0 ">
|
2023-10-13 23:02:58 -04:00
|
|
|
<div className="fixed z-header flex h-[var(--header-height)] w-full grow border-b bg-background p-5 sm:w-[calc(100vw_-_var(--sidebar-closed-width))] sm:border-b-0 sm:py-0 xl:w-[calc(100vw_-_var(--sidebar-open-width))]">
|
2023-10-13 19:02:59 -04:00
|
|
|
<div className="flex flex-1 items-stretch justify-between gap-x-4 sm:border-b">
|
|
|
|
<div className="center justify-between gap-x-3 text-foreground">
|
2023-10-14 12:09:44 -04:00
|
|
|
<Logo className="h-[30px] w-[30px] sm:hidden" />
|
|
|
|
<div className="text-xl font-semibold">Flockstr</div>
|
2023-10-13 19:02:59 -04:00
|
|
|
</div>
|
|
|
|
<div className="flex grow items-center justify-end">
|
|
|
|
<div className="sm:hidden">
|
|
|
|
<MobileMenu />
|
|
|
|
</div>
|
|
|
|
<div className="hidden items-center gap-x-4 sm:flex">
|
|
|
|
<Search />
|
|
|
|
<Notifications />
|
|
|
|
<UserMenu />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
);
|
|
|
|
}
|