Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dynamic copyright to footer #124

Merged
merged 1 commit into from
Nov 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/components/Sections/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {FC, memo} from 'react';
import {SectionId} from '../../data/data';
import Socials from '../Socials';

const currentYear = new Date().getFullYear();

const Footer: FC = memo(() => (
<div className="relative bg-neutral-900 px-4 pb-6 pt-12 sm:px-8 sm:pb-8 sm:pt-14">
<div className="absolute inset-x-0 -top-4 flex justify-center sm:-top-6">
Expand All @@ -26,7 +28,7 @@ const Footer: FC = memo(() => (
<span className="italic text-yellow">Resume</span>
</span>
</a>
<span className="text-sm text-neutral-700">© Copyright 2022 Tim Baker</span>
<span className="text-sm text-neutral-700">© Copyright {currentYear} Tim Baker</span>
</div>
</div>
));
Expand Down