33import { useState , useEffect , useRef } from "react"
44import { motion , AnimatePresence } from "framer-motion"
55import { User , Code , Briefcase , Mail , Folder , Sun , Moon } from "lucide-react"
6- import { useTheme } from "next-themes"
6+ // import { useTheme } from "next-themes"
77import Dock , { type DockItemData } from "@/components/ui/dock"
88
99export default function Navbar ( ) {
1010 const [ activeSection , setActiveSection ] = useState ( "about" )
1111 const [ scrolled , setScrolled ] = useState ( false )
1212 const [ isOpen , setIsOpen ] = useState ( false )
13- const [ isAnimating , setIsAnimating ] = useState ( false )
14- const [ animationOrigin , setAnimationOrigin ] = useState ( { x : 0 , y : 0 } )
15- const desktopThemeButtonRef = useRef < HTMLButtonElement > ( null )
16- const { theme, setTheme } = useTheme ( )
13+ // const [isAnimating, setIsAnimating] = useState(false)
14+ // const [animationOrigin, setAnimationOrigin] = useState({ x: 0, y: 0 })
15+ // const desktopThemeButtonRef = useRef<HTMLButtonElement>(null)
16+ // const { theme, setTheme } = useTheme()
1717
1818 const navItems = [
1919 { id : "about" , label : "About" , icon : User } ,
@@ -65,6 +65,8 @@ export default function Navbar() {
6565 } , 100 )
6666 }
6767
68+ // Theme switcher function commented out - default dark theme
69+ /*
6870 const toggleTheme = () => {
6971 // Determine which button is currently visible and get its position
7072 const isMobile = window.innerWidth < 768
@@ -103,10 +105,12 @@ export default function Navbar() {
103105 setTheme(theme === "dark" ? "light" : "dark")
104106 }
105107 }
108+ */
106109
107110 return (
108111 < >
109- { /* Theme Transition Overlay */ }
112+ { /* Theme Transition Overlay commented out - default dark theme */ }
113+ { /*
110114 <AnimatePresence>
111115 {isAnimating && (
112116 <motion.div
@@ -142,6 +146,7 @@ export default function Navbar() {
142146 />
143147 )}
144148 </AnimatePresence>
149+ */ }
145150 { /* Desktop Floating Navbar */ }
146151 < div className = "fixed top-3 left-0 right-0 z-50 hidden md:block" >
147152 < div className = "flex justify-center" >
@@ -152,7 +157,7 @@ export default function Navbar() {
152157 className = { `transition-all duration-500 ${ scrolled ? "scale-95" : "scale-100" } ` }
153158 >
154159 < div className = "relative" >
155- < div className = "bg-background/80 backdrop-blur-lg border border-border rounded-full px-6 py-3 shadow-2xl w-[600px] md:w-[700px]" >
160+ < div className = "bg-background/20 backdrop-blur-lg border border-border rounded-full px-6 py-3 shadow-2xl w-[600px] md:w-[700px]" >
156161 < div className = "flex items-center justify-center px-4 gap-2" >
157162 < div className = "flex items-center space-x-1" >
158163 { navItems . map ( ( item ) => (
@@ -163,14 +168,15 @@ export default function Navbar() {
163168 onClick = { ( ) => handleNavigation ( item . id ) }
164169 />
165170 ) ) }
166- < button
171+ { /* Theme switcher commented out - default dark theme */ }
172+ { /* <button
167173 ref={desktopThemeButtonRef}
168174 onClick={toggleTheme}
169175 aria-label="Toggle theme"
170176 className="ml-2 inline-flex items-center justify-center rounded-full border border-border bg-accent hover:bg-accent/80 text-foreground transition-colors h-8 w-8"
171177 >
172178 {theme === "dark" ? <Sun className="h-4 w-4" /> : <Moon className="h-4 w-4" />}
173- </ button >
179+ </button> */ }
174180 </ div >
175181 </ div >
176182 </ div >
@@ -188,13 +194,16 @@ export default function Navbar() {
188194 icon : < item . icon size = { 20 } /> ,
189195 label : item . label ,
190196 onClick : ( ) => handleNavigation ( item . id ) ,
191- className : activeSection === item . id ? "bg-accent border-accent-foreground/50" : ""
192- } ) ) . concat ( {
197+ className : activeSection !== item . id ? "bg-accent border-accent-foreground/50" : ""
198+ } ) )
199+ // Theme switcher commented out - default dark theme
200+ /* .concat({
193201 icon: theme === "dark" ? <Sun size={20} /> : <Moon size={20} />,
194202 label: "Theme",
195203 onClick: toggleTheme,
196204 className: ""
197- } ) }
205+ }) */
206+ }
198207 panelHeight = { 64 }
199208 baseItemSize = { 36 }
200209 magnification = { 48 }
0 commit comments