[dyad] Added version number to footer - wrote 1 file(s)

This commit is contained in:
[dyad]
2026-01-18 13:42:28 +01:00
parent 063541fff3
commit 88de1f8a64

View File

@@ -1,25 +1,38 @@
import Link from "next/link"; import Link from "next/link";
import { Github, Twitter } from "lucide-react"; import { Github, Twitter } from "lucide-react";
import { Button } from "@/components/ui/button"; import { Button } from "@/components/ui/button";
import { changelogData } from "@/lib/changelog-data";
export function Footer() { export function Footer() {
const latestVersion = changelogData[0]?.version;
return ( return (
<footer className="w-full border-t bg-background"> <footer className="w-full border-t bg-background">
<div className="container mx-auto flex h-16 items-center justify-between px-4 md:px-6"> <div className="container mx-auto flex h-16 items-center justify-between px-4 md:px-6">
<p className="text-sm text-muted-foreground"> <p className="text-sm text-muted-foreground">
© {new Date().getFullYear()} Image Web Exporter © {new Date().getFullYear()} Image Web Exporter
</p> </p>
<div className="flex items-center gap-1"> <div className="flex items-center gap-4">
<Button variant="ghost" size="icon" asChild> {latestVersion && (
<Link href="https://github.com/" target="_blank" rel="noopener noreferrer" aria-label="GitHub"> <Link
<Github className="h-4 w-4" /> href="/changelog"
className="text-sm text-muted-foreground hover:text-primary transition-colors"
>
v{latestVersion}
</Link> </Link>
</Button> )}
<Button variant="ghost" size="icon" asChild> <div className="flex items-center gap-1">
<Link href="https://x.com/" target="_blank" rel="noopener noreferrer" aria-label="Twitter"> <Button variant="ghost" size="icon" asChild>
<Twitter className="h-4 w-4" /> <Link href="https://github.com/" target="_blank" rel="noopener noreferrer" aria-label="GitHub">
</Link> <Github className="h-4 w-4" />
</Button> </Link>
</Button>
<Button variant="ghost" size="icon" asChild>
<Link href="https://x.com/" target="_blank" rel="noopener noreferrer" aria-label="Twitter">
<Twitter className="h-4 w-4" />
</Link>
</Button>
</div>
</div> </div>
</div> </div>
</footer> </footer>