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

Update Footer to display dynamic year #609

Closed
wants to merge 1 commit into from
Closed
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
3 changes: 2 additions & 1 deletion components/shared/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import GitHubIcon from '@mui/icons-material/GitHub';
import Link from 'next/link';

const Footer: React.FC = () => {
const currentYear = new Date().getFullYear();
const ClueLogo = (color: string) => {
return (
<div style={{ margin: '2px' }}>
Expand Down Expand Up @@ -127,7 +128,7 @@ const Footer: React.FC = () => {
</div>
</div>
<div className="sm:px-40 flex justify-between text-sm py-10 bg-[#1B1B1B] text-white flex-col items-center sm:flex-row shadow-xl dark:bg-zinc-900">
<p>Copyright &copy; by ClueLess 2023</p>
<p>Copyright &copy; by ClueLess {currentYear}</p>
<p className="mt-5 sm:mt-0">Powered by Clueless</p>
</div>
</>
Expand Down