Skip to content

Commit 268305b

Browse files
fix: align website footer links (#5173)
Add Blog to the site footer and reuse the shared footer on the homepage.
1 parent d26029b commit 268305b

2 files changed

Lines changed: 8 additions & 18 deletions

File tree

apps/web/src/components/site-footer.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1+
import { Link } from "@tanstack/react-router";
2+
13
export function SiteFooter() {
24
return (
35
<footer className="mx-auto flex w-full max-w-[700px] flex-wrap items-center justify-between gap-5 px-5 py-8 text-sm text-[#4f4940] md:px-8">
4-
<p className="text-[#756b5d]">Fastrepl © 2026</p>
6+
<p className="text-sm text-[#756b5d]">Fastrepl © 2026</p>
57
<nav className="flex flex-wrap gap-x-5 gap-y-2">
68
<a
79
href="https://github.com/fastrepl/anarlog"
810
className="hover:text-[#181613]"
911
>
1012
GitHub
1113
</a>
14+
<Link to="/blog/" className="hover:text-[#181613]">
15+
Blog
16+
</Link>
1217
<a href="mailto:founders@fastrepl.com" className="hover:text-[#181613]">
1318
Contact
1419
</a>

apps/web/src/routes/index.tsx

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { createFileRoute, Link } from "@tanstack/react-router";
33
import { ArrowRight, ChevronDown } from "lucide-react";
44
import { useEffect, useRef, useState } from "react";
55

6+
import { SiteFooter } from "@/components/site-footer";
67
import { getGitHubStars } from "@/functions/github";
78
import {
89
ANARLOG_SITE_URL,
@@ -173,23 +174,7 @@ function Component() {
173174
</div>
174175
</div>
175176

176-
<footer className="mx-auto flex w-full max-w-[700px] flex-wrap items-center justify-between gap-5 px-5 py-8 text-sm text-[#4f4940] md:px-8">
177-
<p className="text-[#756b5d]">Fastrepl © 2026</p>
178-
<nav className="flex flex-wrap gap-x-5 gap-y-2">
179-
<a
180-
href="https://github.com/fastrepl/anarlog"
181-
className="hover:text-[#181613]"
182-
>
183-
GitHub
184-
</a>
185-
<a
186-
href="mailto:founders@fastrepl.com"
187-
className="hover:text-[#181613]"
188-
>
189-
Contact
190-
</a>
191-
</nav>
192-
</footer>
177+
<SiteFooter />
193178
</main>
194179
);
195180
}

0 commit comments

Comments
 (0)