Skip to content

Commit 8d351ff

Browse files
committed
stars
1 parent c9130ba commit 8d351ff

File tree

1 file changed

+35
-20
lines changed

1 file changed

+35
-20
lines changed

src/components/Navigation.astro

Lines changed: 35 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,43 @@ import logoMedium from "../assets/logo/logo-medium.png"
3131

3232
<!-- Desktop Actions -->
3333
<div class="hidden md:flex items-center space-x-4">
34-
<a
35-
href="https://github.com/notifuse/notifuse"
36-
class="text-gray-600 hover:text-gray-900 transition-colors"
37-
>
38-
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
39-
<path
40-
d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"
41-
></path>
42-
</svg>
43-
</a>
34+
<div class="pt-[7px]">
35+
<a
36+
class="github-button"
37+
href="https://github.com/notifuse/notifuse"
38+
data-color-scheme="no-preference: light; light: light; dark: light;"
39+
data-size="large"
40+
data-show-count="true"
41+
aria-label="Star notifuse/notifuse on GitHub"
42+
>
43+
Star
44+
</a>
45+
</div>
4446
<a
4547
href="https://docs.notifuse.com/installation"
4648
class="bg-primary text-white px-4 py-1 rounded-md hover:bg-primary/80 transition-colors"
4749
>Get Started</a
4850
>
4951
</div>
5052

51-
<!-- Mobile Menu Button -->
52-
<div class="md:hidden">
53+
<!-- Mobile Actions -->
54+
<div class="md:hidden flex items-center gap-6">
55+
<div class="pt-[7px]">
56+
<a
57+
class="github-button"
58+
href="https://github.com/notifuse/notifuse"
59+
data-color-scheme="no-preference: light; light: light; dark: light;"
60+
data-size="large"
61+
data-show-count="true"
62+
aria-label="Star notifuse/notifuse on GitHub"
63+
>
64+
Star
65+
</a>
66+
</div>
5367
<button
5468
type="button"
5569
id="mobile-menu-button"
56-
class="text-gray-600 hover:text-gray-900 transition-colors"
70+
class="text-gray-600 hover:text-gray-900 transition-colors flex items-center"
5771
aria-label="Open menu"
5872
>
5973
<svg
@@ -109,15 +123,14 @@ import logoMedium from "../assets/logo/logo-medium.png"
109123
>
110124
<div class="pt-4 border-t border-gray-200 space-y-4">
111125
<a
126+
class="github-button"
112127
href="https://github.com/notifuse/notifuse"
113-
class="flex items-center text-gray-600 hover:text-gray-900 transition-colors"
128+
data-color-scheme="no-preference: light; light: light; dark: light;"
129+
data-size="large"
130+
data-show-count="true"
131+
aria-label="Star notifuse/notifuse on GitHub"
114132
>
115-
<svg class="w-5 h-5 mr-2" fill="currentColor" viewBox="0 0 24 24">
116-
<path
117-
d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.30.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"
118-
></path>
119-
</svg>
120-
GitHub
133+
Star
121134
</a>
122135
<a
123136
href="#"
@@ -130,6 +143,8 @@ import logoMedium from "../assets/logo/logo-medium.png"
130143
</div>
131144
</nav>
132145

146+
<script async defer src="https://buttons.github.io/buttons.js"></script>
147+
133148
<script>
134149
document.addEventListener("DOMContentLoaded", function () {
135150
const mobileMenuButton = document.getElementById("mobile-menu-button")

0 commit comments

Comments
 (0)