Skip to content

Commit 22c8edf

Browse files
committed
feat: pwa
1 parent 962d2cc commit 22c8edf

13 files changed

Lines changed: 1041 additions & 2733 deletions

File tree

components/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function Footer() {
2121
GitHub
2222
</a>
2323
<a
24-
href="/docs"
24+
href="/docs/index"
2525
class="text-subtext1 hover:text-text transition-colors"
2626
>
2727
Documentation

components/NavBar.tsx

Lines changed: 37 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,46 @@
11
import { GithubIcon } from "lucide-preact";
2+
import PWAStatus from "../islands/PWAStatus.tsx";
23

34
export default function NavBar() {
45
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>
3613
</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>
3740
</div>
3841
</div>
39-
</div>
40-
</nav>
42+
</nav>
43+
<PWAStatus />
44+
</>
4145
);
4246
}

0 commit comments

Comments
 (0)