Skip to content

Commit

Permalink
Added Dynamic copyright_year to auto fetch the current year
Browse files Browse the repository at this point in the history
  • Loading branch information
Meetjain1 committed Jul 16, 2024
1 parent 61d4da1 commit 50a7df9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import { useRouter } from "next/navigation";
import "./footer.css";

const Footer = () => {
const today = new Date();
const year = today.getFullYear();
const router = useRouter();
const handleAbout = () => {
router.push(`/aboutus`);
Expand Down Expand Up @@ -32,7 +34,8 @@ const Footer = () => {
</div>
<div className="text-center">
<p className=" text-[14px] text-slate-300/80">
Copyright &copy; By Clippy
Copyright &copy; {year} By Clippy
<p className="text-lg"></p>
</p>
<p className="text-[10px] text-slate-300/80">All rights reserved</p>
</div>
Expand Down

0 comments on commit 50a7df9

Please sign in to comment.