Skip to content

Commit 024bb22

Browse files
Remove Tabler, fix Footer, add github.
Fixes #67. Closes #65. Closes #43
1 parent a9cdead commit 024bb22

File tree

3 files changed

+12
-19
lines changed

3 files changed

+12
-19
lines changed

src/components/cards/Twitter.astro

-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ const { data } = Astro.props
1414
<i class="ti ti-heart mr-1 w-4"></i>
1515
{formatNumber(data.metadata?.likes_count)}
1616
</a>
17-
{
18-
/*<span class="inline-flex items-center">
19-
<Icon name="tabler:eye" class="w-4 mr-1" />
20-
{formatNumber(data.statistics.viewCount)}
21-
</span>*/
22-
}
2317
<a class="inline-flex items-center truncate">
2418
<img src="/content/websites/twitter.com.png" class="mr-2 h-3" />
2519
{data.author}

src/components/cards/Youtube.astro

-6
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,6 @@ const { data } = Astro.props
1414
<i class="ti ti-thumb-up mr-1 w-4"></i>
1515
{formatNumber(data.metadata?.likes_count)}
1616
</a>
17-
{
18-
/*<span class="inline-flex items-center">
19-
<Icon name="tabler:eye" class="w-4 mr-1" />
20-
{formatNumber(data.statistics.viewCount)}
21-
</span>*/
22-
}
2317
<a class="inline-flex items-center truncate">
2418
<img src="/content/websites/youtube.com.png" class="mr-2 h-3" />
2519
{data.author}

src/components/layout/Footer.astro

+12-7
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,38 @@
11
---
22
import Svg from "@jasikpark/astro-svg-loader"
3-
import { classes } from "../../lib/theme"
43
54
const navLinks = [
65
{ href: "/faq", text: "FAQ" },
76
{ href: "/api", text: "API" },
87
{ href: "/privacy", text: "Privacy" },
98
{ 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+
},
1015
{
1116
href: "https://twitter.com/StormgateWorld",
1217
text: "Twitter",
1318
target: "_blank",
14-
icon: "ti-brand-twitter-filled",
19+
icon: import("lucide-static/icons/twitter.svg?raw"),
1520
},
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") },
1722
]
1823
---
1924

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">
2328
{
2429
navLinks.map((link) => (
2530
<a
2631
href={link.href}
2732
target={link.target ? link.target : "_self"}
2833
class="text-sm leading-6 text-gray-100 hover:text-white"
2934
>
30-
{link.icon && <i class={classes("ti", link.icon)} />}
35+
{link.icon && <Svg src={link.icon} class="inline-block w-3.5" />}
3136
{link.text}
3237
</a>
3338
))

0 commit comments

Comments
 (0)