Skip to content

Commit 929f4b2

Browse files
feat: make footer copyright year dynamic
Replace static copyright year (2025) with dynamic JavaScript expression that automatically updates to the current year using new Date().getFullYear(). This ensures the copyright year stays current without requiring manual updates each year. Changes: - Updated FooterMeta component in src/components/footer.tsx - Changed hardcoded '2025' to {new Date().getFullYear()} - Maintains same visual output while automating year updates
1 parent e018f28 commit 929f4b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function FooterMeta({ className }: { className?: string }) {
5757
>
5858
<ThemeToggle />
5959
<div className="flex flex-col gap-4 text-sm/6 text-gray-700 sm:flex-row sm:gap-2 sm:pr-4 dark:text-gray-400">
60-
<span>Copyright ©&nbsp;2025&nbsp;Tailwind Labs Inc.</span>
60+
<span>Copyright ©&nbsp;{new Date().getFullYear()}&nbsp;Tailwind Labs Inc.</span>
6161
<span className="max-sm:hidden">&middot;</span>
6262
<Link href="/brand" className="hover:underline">
6363
Trademark Policy

0 commit comments

Comments
 (0)