|
1 | 1 | import { basePath } from "@/config/siteConfig"; |
2 | 2 | import Link from "next/link"; |
3 | 3 | import { FileJson, Server, ExternalLink } from "lucide-react"; |
| 4 | +import { buttonVariants } from "./ui/button"; |
| 5 | +import { cn } from "@/lib/utils"; |
4 | 6 |
|
5 | 7 | export default function Footer() { |
6 | 8 | 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> |
21 | 25 | </div> |
22 | | - <div className="flex gap-4"> |
| 26 | + <div className="sm:flex hidden"> |
23 | 27 | <Link |
24 | 28 | 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")} |
26 | 30 | > |
27 | 31 | <FileJson className="h-4 w-4" /> JSON Editor |
28 | 32 | </Link> |
29 | 33 | <Link |
30 | 34 | 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")} |
32 | 36 | > |
33 | 37 | <Server className="h-4 w-4" /> API Data |
34 | 38 | </Link> |
|
0 commit comments