Skip to content
Open
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
19 changes: 14 additions & 5 deletions client/src/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,39 @@
import { Link } from "react-router-dom";

export default function Footer() {
// Function to scroll to top when navigating
const scrollToTop = () => {
window.scrollTo({ top: 0, behavior: 'smooth' });
};

return (
<footer className="bg-gray-50 border-t border-gray-200 mt-20">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-12">
<div className="flex flex-col md:flex-row justify-center items-center space-y-4 md:space-y-0 md:space-x-8">
<Link
to="/about"
onClick={scrollToTop}
className="text-blue-600 hover:text-blue-700 transition-colors"
>
About
</Link>
<Link
to="/contact#contact-form"
to="/contact"
onClick={scrollToTop}
className="text-blue-600 hover:text-blue-700 transition-colors"
>
Contact Us
</Link>
<Link
to="https://github.com/CoderUzumaki/prepedge-ai"
<a
href="https://github.com/CoderUzumaki/prepedge-ai"
target="_blank"
rel="noopener noreferrer"
className="text-blue-600 hover:text-blue-700 transition-colors flex items-center"
>
GitHub
</Link>
</a>
</div>
<div className="text-center mt-8 ">
<div className="text-center mt-8">
<p className="text-gray-600">
{`© ${new Date().getFullYear()} PrepEdge AI. All rights reserved.`}
</p>
Expand Down