Skip to content

Commit d71ef77

Browse files
authored
Website: Refactor Footer for improved layout and styling consistency (#2107)
1 parent 9736d5c commit d71ef77

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

frontend/src/components/Footer.tsx

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,38 @@
11
import { basePath } from "@/config/siteConfig";
22
import Link from "next/link";
33
import { FileJson, Server, ExternalLink } from "lucide-react";
4+
import { buttonVariants } from "./ui/button";
5+
import { cn } from "@/lib/utils";
46

57
export default function Footer() {
68
return (
7-
<div className="supports-backdrop-blur:bg-background/90 mt-auto flex border-t border-border bg-background/40 py-6 backdrop-blur-lg">
8-
<div className="mx-6 w-full max-w-7xl flex justify-between text-xs sm:text-sm text-muted-foreground">
9-
<div>
10-
Website built by the community. The source code is available on{" "}
11-
<Link
12-
href={`https://github.com/community-scripts/${basePath}`}
13-
target="_blank"
14-
rel="noreferrer"
15-
className="font-semibold underline-offset-2 duration-300 hover:underline"
16-
data-umami-event="View Website Source Code on Github"
17-
>
18-
GitHub
19-
</Link>
20-
.
9+
<div className="supports-backdrop-blur:bg-background/90 mt-auto border-t w-full flex justify-between border-border bg-background/40 py-6 backdrop-blur-lg">
10+
<div className="mx-6 w-full flex justify-between text-xs sm:text-sm text-muted-foreground">
11+
<div className="flex items-center">
12+
<p>
13+
Website built by the community. The source code is available on{" "}
14+
<Link
15+
href={`https://github.com/community-scripts/${basePath}`}
16+
target="_blank"
17+
rel="noreferrer"
18+
className="font-semibold underline-offset-2 duration-300 hover:underline"
19+
data-umami-event="View Website Source Code on Github"
20+
>
21+
GitHub
22+
</Link>
23+
.
24+
</p>
2125
</div>
22-
<div className="flex gap-4">
26+
<div className="sm:flex hidden">
2327
<Link
2428
href="/json-editor"
25-
className="flex items-center gap-2 text-primary hover:underline"
29+
className={cn(buttonVariants({ variant: "link" }), "text-muted-foreground flex items-center gap-2")}
2630
>
2731
<FileJson className="h-4 w-4" /> JSON Editor
2832
</Link>
2933
<Link
3034
href="/data"
31-
className="flex items-center gap-2 text-primary hover:underline"
35+
className={cn(buttonVariants({ variant: "link" }), "text-muted-foreground flex items-center gap-2")}
3236
>
3337
<Server className="h-4 w-4" /> API Data
3438
</Link>

0 commit comments

Comments
 (0)