Skip to content

Commit eee7a50

Browse files
committed
fix: reorganize footer layout and add sponsor button
1 parent 7ae0620 commit eee7a50

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

src/components/Footer.astro

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,36 @@
11
---
22
import { Button } from "@/components/ui/button";
33
import Link from "@/components/Link.astro";
4-
5-
import { Github, Instagram, Twitter } from "lucide-react";
4+
import { Github, Instagram, Twitter, Heart } from "lucide-react";
65
---
76

87
<footer class="border-t px-4 py-6 md:px-8 md:py-8">
98
<div
10-
class="max-w-screen-xl flex flex-col mx-auto gap-4 md:flex-row md:items-center md:justify-between"
9+
class="max-w-screen-xl flex flex-col mx-auto gap-4 md:flex-row md:items-center"
1110
>
12-
<div class="flex items-center gap-2 text-sm">
13-
<span>© 2025 Papua Open Source.</span>
11+
<!-- Left side on desktop (Sponsor and Copyright) -->
12+
<div
13+
class="flex flex-col gap-4 md:flex-row md:items-center md:gap-6 md:mr-auto"
14+
>
15+
<!-- Sponsor Button - First on mobile, Left-most on desktop -->
16+
<a
17+
href="https://github.com/sponsors/papuaopensource"
18+
target="_blank"
19+
rel="noopener noreferrer"
20+
class="inline-flex items-center gap-2 px-3 py-1.5 bg-transparent hover:bg-gray-100 dark:hover:bg-gray-800 text-gray-800 dark:text-gray-200 border border-gray-300 dark:border-gray-700 rounded-md font-medium text-sm transition-colors duration-200 w-fit order-first md:order-none"
21+
>
22+
<Heart className="h-4 w-4 text-[#ea4aaa]" />
23+
<span>Sponsor</span>
24+
</a>
25+
26+
<!-- Copyright - Second on mobile, Second on desktop -->
27+
<div class="flex items-center gap-2 text-sm order-2 md:order-none">
28+
<span>© 2025 Papua Open Source.</span>
29+
</div>
1430
</div>
15-
<div class="flex gap-8">
31+
32+
<!-- Social Media Icons - Right side on desktop, Last on mobile -->
33+
<div class="flex gap-8 order-3 md:order-none">
1634
<Button variant="ghost" size="icon" asChild>
1735
<Link
1836
href="https://github.com/papuaopensource"

0 commit comments

Comments
 (0)