|
1 | 1 | ---
|
2 | 2 | import Svg from "@jasikpark/astro-svg-loader"
|
3 |
| -import { classes } from "../../lib/theme" |
4 | 3 |
|
5 | 4 | const navLinks = [
|
6 | 5 | { href: "/faq", text: "FAQ" },
|
7 | 6 | { href: "/api", text: "API" },
|
8 | 7 | { href: "/privacy", text: "Privacy" },
|
9 | 8 | { href: "/about", text: "About" },
|
| 9 | + { |
| 10 | + href: "https://github.com/stormgateworld/web", |
| 11 | + text: "GitHub", |
| 12 | + target: "_blank", |
| 13 | + icon: import("lucide-static/icons/github.svg?raw"), |
| 14 | + }, |
10 | 15 | {
|
11 | 16 | href: "https://twitter.com/StormgateWorld",
|
12 | 17 | text: "Twitter",
|
13 | 18 | target: "_blank",
|
14 |
| - icon: "ti-brand-twitter-filled", |
| 19 | + icon: import("lucide-static/icons/twitter.svg?raw"), |
15 | 20 | },
|
16 |
| - { href: "/rss.xml", text: "RSS Feed", target: "_blank", icon: "ti-rss" }, |
| 21 | + { href: "/rss.xml", text: "RSS Feed", target: "_blank", icon: import("lucide-static/icons/rss.svg?raw") }, |
17 | 22 | ]
|
18 | 23 | ---
|
19 | 24 |
|
20 |
| -<footer class="mt-4 border-t border-gray-900 py-32 text-center md:mt-8"> |
21 |
| - <div class="mx-auto"> |
22 |
| - <nav class="flex columns-2 flex-wrap justify-center gap-x-8 gap-y-2 pb-6 sm:space-x-12" aria-label="Footer"> |
| 25 | +<footer class="relative mt-4 border-t border-gray-900 py-16 text-center md:mt-8 md:py-24"> |
| 26 | + <div class="mx-auto max-w-screen-xl"> |
| 27 | + <nav class="flex columns-2 flex-wrap justify-evenly gap-x-2 gap-y-2 px-4 pb-6 sm:space-x-12" aria-label="Footer"> |
23 | 28 | {
|
24 | 29 | navLinks.map((link) => (
|
25 | 30 | <a
|
26 | 31 | href={link.href}
|
27 | 32 | target={link.target ? link.target : "_self"}
|
28 | 33 | class="text-sm leading-6 text-gray-100 hover:text-white"
|
29 | 34 | >
|
30 |
| - {link.icon && <i class={classes("ti", link.icon)} />} |
| 35 | + {link.icon && <Svg src={link.icon} class="inline-block w-3.5" />} |
31 | 36 | {link.text}
|
32 | 37 | </a>
|
33 | 38 | ))
|
|
0 commit comments