Fix footer copyright year
This commit is contained in:
@ -16,11 +16,16 @@ const versionLabel = gitSha
|
|||||||
? `v${appVersion}+${gitSha.slice(0, 7)}`
|
? `v${appVersion}+${gitSha.slice(0, 7)}`
|
||||||
: `v${appVersion}`;
|
: `v${appVersion}`;
|
||||||
const envLabel = deployEnv === "production" ? "prod" : deployEnv;
|
const envLabel = deployEnv === "production" ? "prod" : deployEnv;
|
||||||
|
const currentYear = new Date().getFullYear();
|
||||||
|
const copyrightYear =
|
||||||
|
currentYear > 2025
|
||||||
|
? `2025–${currentYear}`
|
||||||
|
: "2025";
|
||||||
|
|
||||||
export default function Footer() {
|
export default function Footer() {
|
||||||
return (
|
return (
|
||||||
<div className="flex items-center justify-between text-xs text-muted-foreground">
|
<div className="flex items-center justify-between text-xs text-muted-foreground">
|
||||||
<span>© 2026 by gaertan.art | All rights reserved</span>
|
<span>© {copyrightYear} by gaertan.art | All rights reserved</span>
|
||||||
<span>{versionLabel} · {envLabel}</span>
|
<span>{versionLabel} · {envLabel}</span>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user