|
| 1 | +import React from "react"; |
| 2 | +import Link from "next/link"; |
| 3 | +import { GitBranchIcon, GithubIcon } from "lucide-react"; |
| 4 | +import HamburgerMenu from "./HamburgerMenu"; |
| 5 | +import { Button } from "@/packages/ui"; |
| 6 | + |
| 7 | +export default function TopNav() { |
| 8 | + return ( |
| 9 | + <nav className="fixed top-0 h-16 left-0 right-0 w-full border-b-2 border-black bg-white"> |
| 10 | + <div className="container max-w-6xl mx-auto"> |
| 11 | + <div className="flex justify-between items-center h-16"> |
| 12 | + {/* Logo Section */} |
| 13 | + <div className="flex-shrink-0"> |
| 14 | + <a |
| 15 | + href="/" |
| 16 | + className="text-black font-head text-2xl flex items-end" |
| 17 | + > |
| 18 | + <img |
| 19 | + src="/images/logo_full.png" |
| 20 | + alt="retro ui logo" |
| 21 | + className="w-16 mr-2" |
| 22 | + /> |
| 23 | + RetroUI |
| 24 | + </a> |
| 25 | + </div> |
| 26 | + |
| 27 | + {/* Navigation Links */} |
| 28 | + <div className="hidden md:flex space-x-8"> |
| 29 | + <a |
| 30 | + href="/components" |
| 31 | + className="hover:text-primary-500 transition-all" |
| 32 | + > |
| 33 | + Documentation |
| 34 | + </a> |
| 35 | + <a |
| 36 | + href="/components/buttons" |
| 37 | + className="hover:text-primary-500 transition-all" |
| 38 | + > |
| 39 | + Components |
| 40 | + </a> |
| 41 | + </div> |
| 42 | + |
| 43 | + <div className="flex items-center space-x-4 lg:hidden"> |
| 44 | + <Link |
| 45 | + href="https://github.com/ariflogs/retroui" |
| 46 | + target="_blank" |
| 47 | + rel="noopener noreferrer" |
| 48 | + > |
| 49 | + <GithubIcon /> |
| 50 | + </Link> |
| 51 | + <HamburgerMenu /> |
| 52 | + </div> |
| 53 | + <div className="hidden lg:flex items-center"> |
| 54 | + <Link |
| 55 | + href="https://github.com/ariflogs/retroui" |
| 56 | + target="_blank" |
| 57 | + rel="noopener noreferrer" |
| 58 | + > |
| 59 | + <Button className="flex items-center" variant="outline" size="sm"> |
| 60 | + <GithubIcon size="16" className="mr-2" /> |
| 61 | + Star on GitHub |
| 62 | + </Button> |
| 63 | + </Link> |
| 64 | + </div> |
| 65 | + </div> |
| 66 | + </div> |
| 67 | + </nav> |
| 68 | + ); |
| 69 | +} |
0 commit comments