blob: e6efc7d7ab05ce418b03c5b3f7bae56f951f3b97 (
plain) (
blame)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
import Link from "next/link";
import { ThemeSwitcher } from "../themeSwitcher";
import {
Navbar,
NavbarBrand,
NavbarContent,
NavbarItem,
Button,
} from "@nextui-org/react";
export default async function Header() {
const sections = ["anime", "kdrama", "manga", "movies", "web-series"];
return (
<Navbar isBordered>
<NavbarBrand>
<p className="text-2xl font-bold">
<Link href="/">Dramalama</Link>
</p>
</NavbarBrand>
<NavbarContent className="hidden sm:flex gap-4" justify="center">
{sections &&
sections.map((item, index) => (
<NavbarItem key={index}>
<Link href={`/${item}`}>{item}</Link>
</NavbarItem>
))}
</NavbarContent>
<NavbarContent justify="end">
<NavbarItem>
<ThemeSwitcher />
</NavbarItem>
<NavbarItem>
<Button
as={Link}
color="success"
href="https://github.com/real-zephex/Dramalama"
variant="faded"
target="_blank"
>
Github
</Button>
</NavbarItem>
</NavbarContent>
</Navbar>
);
}
|