diff --git a/app/page.tsx b/app/page.tsx index db302fb..c9a6b84 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -209,63 +209,80 @@ export default function HomePage() { return ( -
+
{/* Hero Section - Full Viewport Height */}
{/* Left side - Welcome to HackHub */}
-
- {/* Main heading with enhanced styling */} -
-

- - - - - - -

- - {/* Accent line */} -
- -
-

- -

-
-
-
-
+
+ {/* Main heading with enhanced styling */} +
+ +

+ + + + + + + + +

+ + {/* Accent line */} +
+ +
+

+ +

+
+ +
+
+
+ {/* Right side - HackHub image */}
diff --git a/components/navigation.tsx b/components/navigation.tsx index 16b6895..5edfd8a 100644 --- a/components/navigation.tsx +++ b/components/navigation.tsx @@ -2,81 +2,141 @@ import Link from "next/link" import { usePathname } from "next/navigation" +import { useState } from "react" import { Button } from "@/components/ui/button" -import { Avatar, AvatarFallback } from "@/components/ui/avatar" -import { ConnectButton } from '@rainbow-me/rainbowkit' +import { ConnectButton } from "@rainbow-me/rainbowkit" + // Helper function to get the correct image path for GitHub Pages const getImagePath = (path: string) => { - // For static export, we need to ensure the path works with GitHub Pages - return path.startsWith('/') ? path : `/${path}`; -}; + return path.startsWith("/") ? path : `/${path}` +} export default function Navigation() { const pathname = usePathname() + const [open, setOpen] = useState(false) return (
-
-
- -
- HackHub Logo +
+ + {/* Logo */} + +
+ HackHub Logo
- + HackHub - + + {/* Desktop Navigation */} -
- + {/* Right Section */} +
+
+ +
+ + {/* Hamburger */} +
+ + {/* Mobile Menu */} + {open && ( +
+ +
+ )}
) -} \ No newline at end of file +} + +/* ---------- helpers ---------- */ + +function NavButton({ + href, + active, + children, +}: { + href: string + active: boolean + children: React.ReactNode +}) { + return ( + + + + ) +} + +function MobileLink({ + href, + onClick, + children, +}: { + href: string + onClick: () => void + children: React.ReactNode +}) { + return ( + + {children} + + ) +}