-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathheader.tsx
More file actions
30 lines (25 loc) · 1.02 KB
/
header.tsx
File metadata and controls
30 lines (25 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import { Suspense } from "react";
import Image from "next/image";
import Link from "next/link";
import Logo from "@/shared/assets/icons/windfall.svg";
import { Container } from "@/shared/ui";
import HeaderAuthSlot from "@/widgets/header/ui/header-auth-slot";
import HeaderSearch from "@/widgets/header/ui/header-search";
export function Header() {
return (
<header className="bg-background h-header sticky top-0 z-50 hidden select-none md:flex">
<Container className="lg:px flex items-center justify-around gap-4 px-2 min-[960px]:px-3 lg:px-5 xl:px-7">
<Link href="/" className="shrink-0">
<h1 className="flex items-center gap-1">
<Image src={Logo} alt="윈드폴 로고" sizes="40px" />
<span className="hidden text-xl font-semibold min-[960px]:block">Windfall</span>
</h1>
</Link>
<Suspense fallback={<div className="flex-1" aria-hidden />}>
<HeaderSearch />
</Suspense>
<HeaderAuthSlot />
</Container>
</header>
);
}