1
1
"use client" ;
2
2
import { ModeToggle } from "@/components/theme-toggle" ;
3
-
4
3
import Link from "next/link" ;
5
4
import { Button , buttonVariants } from "./ui/button" ;
6
5
import { Icons } from "./icon" ;
7
6
import Anchor from "./anchor" ;
8
7
import { SheetLeftbar } from "./leftbar" ;
9
-
10
8
import { SheetClose } from "@/components/ui/sheet" ;
11
-
12
9
import Search from "./search" ;
13
10
14
11
export const NAVLINKS = [
@@ -17,11 +14,6 @@ export const NAVLINKS = [
17
14
href : "/docs" ,
18
15
} ,
19
16
20
- {
21
- title : "Components" ,
22
- href : "/docs" ,
23
- } ,
24
-
25
17
{
26
18
title : "Examples" ,
27
19
href : "/examples" ,
@@ -34,10 +26,6 @@ export const NAVLINKS = [
34
26
title : "Gift a Component" ,
35
27
href : "/giftacomponent" ,
36
28
} ,
37
- {
38
- title : "Admin" ,
39
- href : "/view-pending" ,
40
- } ,
41
29
] ;
42
30
43
31
export function Navbar ( ) {
@@ -60,32 +48,30 @@ export function Navbar() {
60
48
< div className = "flex items-center gap-2" >
61
49
< div className = "flex items-center gap-2" >
62
50
< div className = "md:block hidden" >
63
- < Link href = "mailto:hey@arihantcodes.in" >
64
- < Button className = "rounded-xl" >
65
- Work With Me ✨
66
- </ Button >
51
+ < Link href = "mailto:hey@arihantcodes.in" >
52
+ < Button className = "rounded-xl" > Work With Me ✨</ Button >
67
53
</ Link >
68
54
</ div >
69
- < div className = ' hidden md:flex' >
55
+ < div className = " hidden md:flex" >
70
56
< Search />
71
57
</ div >
72
58
< div >
73
- < Link
74
- href = "https://github.com/arihantcodes/spectrum-ui"
75
- className = { buttonVariants ( { variant : "ghost" , size : "icon" } ) }
76
- >
77
- < Icons . gitHub className = "icon-class w-4" />
78
- </ Link >
79
- < Link
80
- href = "https://x.com/arihantcodes"
81
- className = { buttonVariants ( {
82
- variant : "ghost" ,
83
- size : "icon" ,
84
- } ) }
85
- >
86
- < Icons . twitter className = "icon-class w-3" />
87
- </ Link >
88
- < ModeToggle />
59
+ < Link
60
+ href = "https://github.com/arihantcodes/spectrum-ui"
61
+ className = { buttonVariants ( { variant : "ghost" , size : "icon" } ) }
62
+ >
63
+ < Icons . gitHub className = "icon-class w-4" />
64
+ </ Link >
65
+ < Link
66
+ href = "https://x.com/arihantcodes"
67
+ className = { buttonVariants ( {
68
+ variant : "ghost" ,
69
+ size : "icon" ,
70
+ } ) }
71
+ >
72
+ < Icons . twitter className = "icon-class w-3" />
73
+ </ Link >
74
+ < ModeToggle />
89
75
</ div >
90
76
</ div >
91
77
</ div >
@@ -100,10 +86,7 @@ export function Logo() {
100
86
< Link href = "/" className = "flex items-center gap-2" >
101
87
< Icons . logo className = "icon-class w-2" />
102
88
103
- < h2 className = "text-base md:text-lg font-bold" >
104
- Spectrum UI
105
- </ h2 >
106
-
89
+ < h2 className = "text-base md:text-lg font-bold" > Spectrum UI</ h2 >
107
90
</ Link >
108
91
) ;
109
92
}
0 commit comments