11import {
2- Button ,
3- Kbd ,
42 Link ,
5- Input ,
63 Navbar as NextUINavbar ,
74 NavbarContent ,
85 NavbarMenu ,
@@ -23,41 +20,15 @@ import {
2320 TwitterIcon ,
2421 GithubIcon ,
2522 DiscordIcon ,
26- HeartFilledIcon ,
27- SearchIcon ,
2823} from "@/components/icons" ;
2924
30- import { Logo } from "@/components/icons" ;
31-
3225export const Navbar = ( ) => {
33- const searchInput = (
34- < Input
35- aria-label = "Search"
36- classNames = { {
37- inputWrapper : "bg-default-100" ,
38- input : "text-sm" ,
39- } }
40- endContent = {
41- < Kbd className = "hidden lg:inline-block" keys = { [ "command" ] } >
42- K
43- </ Kbd >
44- }
45- labelPlacement = "outside"
46- placeholder = "Search..."
47- startContent = {
48- < SearchIcon className = "text-base text-default-400 pointer-events-none flex-shrink-0" />
49- }
50- type = "search"
51- />
52- ) ;
53-
5426 return (
5527 < NextUINavbar maxWidth = "xl" position = "sticky" >
5628 < NavbarContent className = "basis-1/5 sm:basis-full" justify = "start" >
5729 < NavbarBrand className = "gap-3 max-w-fit" >
5830 < NextLink className = "flex justify-start items-center gap-1" href = "/" >
59- < Logo />
60- < p className = "font-bold text-inherit" > ACME</ p >
31+ < p className = "font-bold text-inherit" > Chatr</ p >
6132 </ NextLink >
6233 </ NavbarBrand >
6334 < div className = "hidden lg:flex gap-4 justify-start ml-2" >
@@ -78,7 +49,7 @@ export const Navbar = () => {
7849 </ div >
7950 </ NavbarContent >
8051
81- < NavbarContent className = "hidden sm:flex basis-1/5 sm:basis-full" justify = "end" >
52+ < NavbarContent className = "hidden sm:flex basis-1/5 sm:basis-full" justify = "end" >
8253 < NavbarItem className = "hidden sm:flex gap-2" >
8354 < Link isExternal href = { siteConfig . links . twitter } >
8455 < TwitterIcon className = "text-default-500" />
@@ -91,9 +62,8 @@ export const Navbar = () => {
9162 </ Link >
9263 < ThemeSwitch />
9364 </ NavbarItem >
94- < NavbarItem className = "hidden lg:flex" > { searchInput } </ NavbarItem >
9565 < NavbarItem className = "hidden md:flex" >
96- < Button
66+ { /* <Button
9767 isExternal
9868 as={Link}
9969 className="text-sm font-normal text-default-600 bg-default-100"
@@ -102,30 +72,29 @@ export const Navbar = () => {
10272 variant="flat"
10373 >
10474 Sponsor
105- </ Button >
75+ </Button> */ }
10676 </ NavbarItem >
10777 </ NavbarContent >
10878
10979 < NavbarContent className = "sm:hidden basis-1 pl-4" justify = "end" >
110- < Link isExternal href = { siteConfig . links . github } >
111- < GithubIcon className = "text-default-500" />
112- </ Link >
113- < ThemeSwitch />
80+ < Link isExternal href = { siteConfig . links . github } >
81+ < GithubIcon className = "text-default-500" />
82+ </ Link >
83+ < ThemeSwitch />
11484 < NavbarMenuToggle />
115- </ NavbarContent >
85+ </ NavbarContent >
11686
117- < NavbarMenu >
118- { searchInput }
87+ < NavbarMenu >
11988 < div className = "mx-4 mt-2 flex flex-col gap-2" >
120- { siteConfig . navMenuItems . map ( ( item , index ) => (
89+ { siteConfig . navItems . map ( ( item , index ) => (
12190 < NavbarMenuItem key = { `${ item } -${ index } ` } >
12291 < Link
12392 color = {
124- index === 2
93+ index === 1
12594 ? "primary"
126- : index === siteConfig . navMenuItems . length - 1
127- ? "danger"
128- : "foreground"
95+ : index === siteConfig . navItems . length - 1
96+ ? "danger"
97+ : "foreground"
12998 }
13099 href = "#"
131100 size = "lg"
0 commit comments