Skip to content

Commit 392740a

Browse files
committed
footer
1 parent 10ff466 commit 392740a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/components/Footer.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ const Footer = () => {
2626
</div>
2727
<div className="mt-8 border-t border-gray-700/50 pt-8 flex flex-wrap items-center justify-between gap-4">
2828
<div className="flex flex-wrap items-center gap-6 text-sm font-medium text-gray-400">
29-
<Link to="/" className="hover:text-white transition-colors">Home</Link>
30-
<Link to="/about" className="hover:text-white transition-colors">About</Link>
31-
<Link to="/blog" className="hover:text-white transition-colors">Blog</Link>
32-
<Link to="/projects" className="hover:text-white transition-colors">Projects</Link>
29+
<Link to="/" className="hover:text-white transition-colors" onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })}>Home</Link>
30+
<Link to="/about" className="hover:text-white transition-colors" onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })}>About</Link>
31+
<Link to="/blog" className="hover:text-white transition-colors" onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })}>Blog</Link>
32+
<Link to="/projects" className="hover:text-white transition-colors" onClick={() => window.scrollTo({ top: 0, behavior: 'smooth' })}>Projects</Link>
3333
</div>
3434
<p className="text-sm text-gray-500">
3535
&copy; {new Date().getFullYear()} fezcode. All rights reserved.

0 commit comments

Comments
 (0)