|
1 | 1 | import { GithubIcon } from "lucide-preact"; |
| 2 | +import PWAStatus from "../islands/PWAStatus.tsx"; |
2 | 3 |
|
3 | 4 | export default function NavBar() { |
4 | 5 | return ( |
5 | | - <nav class="fixed top-4 left-1/2 transform -translate-x-1/2 z-50 w-full max-w-4xl px-4"> |
6 | | - <div class="bg-base/60 backdrop-blur-xl border border-surface1 rounded-2xl shadow-lg px-8 py-3"> |
7 | | - <div class="flex items-center justify-between"> |
8 | | - <a href="/" class="flex items-center space-x-3"> |
9 | | - <img src="/logo.svg" alt="Andromeda" class="w-8 h-8" /> |
10 | | - <span class="text-xl font-bold text-text">Andromeda</span> |
11 | | - </a> |
12 | | - <div class="hidden sm:flex items-center space-x-8"> |
13 | | - <a |
14 | | - href="/#features" |
15 | | - class="text-subtext1 hover:text-text transition-colors font-medium" |
16 | | - > |
17 | | - Features |
18 | | - </a> |
19 | | - <a |
20 | | - href="/docs" |
21 | | - class="text-subtext1 hover:text-text transition-colors font-medium" |
22 | | - > |
23 | | - Documentation |
24 | | - </a> |
25 | | - <a |
26 | | - href="/blog" |
27 | | - class="text-subtext1 hover:text-text transition-colors font-medium" |
28 | | - > |
29 | | - Blog |
30 | | - </a> |
31 | | - <a |
32 | | - href="https://github.com/tryandromeda/andromeda" |
33 | | - class="bg-surface0 hover:bg-surface1 text-text rounded-lg p-2 transition-all duration-200 border border-surface2" |
34 | | - > |
35 | | - <GithubIcon class="w-5 h-5" /> |
| 6 | + <> |
| 7 | + <nav class="fixed top-4 left-1/2 transform -translate-x-1/2 z-50 w-full max-w-4xl px-4"> |
| 8 | + <div class="bg-base/60 backdrop-blur-xl border border-surface1 rounded-2xl shadow-lg px-8 py-3"> |
| 9 | + <div class="flex items-center justify-between"> |
| 10 | + <a href="/" class="flex items-center space-x-3"> |
| 11 | + <img src="/logo.svg" alt="Andromeda" class="w-8 h-8" /> |
| 12 | + <span class="text-xl font-bold text-text">Andromeda</span> |
36 | 13 | </a> |
| 14 | + <div class="hidden sm:flex items-center space-x-8"> |
| 15 | + <a |
| 16 | + href="/#features" |
| 17 | + class="text-subtext1 hover:text-text transition-colors font-medium" |
| 18 | + > |
| 19 | + Features |
| 20 | + </a> |
| 21 | + <a |
| 22 | + href="/docs/index" |
| 23 | + class="text-subtext1 hover:text-text transition-colors font-medium" |
| 24 | + > |
| 25 | + Documentation |
| 26 | + </a> |
| 27 | + <a |
| 28 | + href="/blog" |
| 29 | + class="text-subtext1 hover:text-text transition-colors font-medium" |
| 30 | + > |
| 31 | + Blog |
| 32 | + </a> |
| 33 | + <a |
| 34 | + href="https://github.com/tryandromeda/andromeda" |
| 35 | + class="bg-surface0 hover:bg-surface1 text-text rounded-lg p-2 transition-all duration-200 border border-surface2" |
| 36 | + > |
| 37 | + <GithubIcon class="w-5 h-5" /> |
| 38 | + </a> |
| 39 | + </div> |
37 | 40 | </div> |
38 | 41 | </div> |
39 | | - </div> |
40 | | - </nav> |
| 42 | + </nav> |
| 43 | + <PWAStatus /> |
| 44 | + </> |
41 | 45 | ); |
42 | 46 | } |
0 commit comments