Skip to content
Open
Show file tree
Hide file tree
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
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"react": "^19.0.0",
"react-bootstrap": "^2.10.9",
"react-dom": "^19.0.0",
"react-icons": "^5.5.0",
"react-router": "^7.3.0",
"react-router-dom": "^7.3.0",
"tailwindcss": "^4.0.12"
Expand Down
2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import NavBar from "./components/NavBar/NavBar";
import Home from "./components/Home/Home";
import AboutUs from "./components/AboutUs/AboutUs";
import Form from "./components/Form/Form";
import Footer from "./components/Footer/Footer";
import Contact from "./components/Contact/Contact";
import "./App.css";

Expand All @@ -11,6 +12,7 @@ function RootLayout() {
<>
<NavBar />
<Outlet />
<Footer />
</>
);
}
Expand Down
99 changes: 95 additions & 4 deletions src/components/Footer/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,98 @@
import React from "react";
import React from 'react';
import { FaLinkedin, FaTwitter, FaGithub, FaArrowUp } from 'react-icons/fa';

function Footer() {
return <div>Footer</div>;
}
const Footer = () => {
const scrollToTop = () => {
window.scrollTo({ top: 0, behavior: 'smooth' });
};

return (
<footer className="bg-white dark:bg-gray-900 border-t border-gray-200 dark:border-gray-700 fixed bottom-0 left-0 right-0 z-10">
<div className="max-w-7xl mx-auto px-4 py-6">
<div className="grid grid-cols-1 md:grid-cols-3 gap-4 items-center">

<div className="text-center md:text-left">
<h3 className="text-lg font-semibold text-gray-800 dark:text-gray-100">Training Committee</h3>
<p className="text-gray-600 dark:text-gray-400">Email: [email protected]</p>
<p className="text-gray-600 dark:text-gray-400">Phone: +123456789</p>
</div>

<div className="flex justify-center">
<ul className="flex space-x-4">
<li>
<a
href="https://www.linkedin.com"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 dark:text-gray-300 hover:text-blue-600 dark:hover:text-blue-400 transition-colors"
>
<FaLinkedin size={24} />
</a>
</li>
<li>
<a
href="https://www.twitter.com"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 dark:text-gray-300 hover:text-blue-400 dark:hover:text-blue-300 transition-colors"
>
<FaTwitter size={24} />
</a>
</li>
<li>
<a
href="https://github.com/Training-Committee-NIT-Rourkela"
target="_blank"
rel="noopener noreferrer"
className="text-gray-600 dark:text-gray-300 hover:text-gray-900 dark:hover:text-gray-100 transition-colors"
>
<FaGithub size={24} />
</a>
</li>
</ul>
</div>
<div className="text-center md:text-right">
<ul className="flex justify-center md:justify-end space-x-4">
<li>
<a
href="/about-us"
className="text-gray-600 dark:text-gray-300 hover:text-blue-500 dark:hover:text-blue-400 transition-colors"
>
About Us
</a>
</li>
<li>
<a
href="/form"
className="text-gray-600 dark:text-gray-300 hover:text-blue-500 dark:hover:text-blue-400 transition-colors"
>
Form
</a>
</li>
<li>
<a
href="/contact"
className="text-gray-600 dark:text-gray-300 hover:text-blue-500 dark:hover:text-blue-400 transition-colors"
>
Contact
</a>
</li>
</ul>
</div>
</div>

<div className="mt-4 flex justify-center">
<button
onClick={scrollToTop}
className="bg-blue-500 dark:bg-blue-600 hover:bg-blue-600 dark:hover:bg-blue-700 text-white p-3 rounded-full transition-colors"
aria-label="Back to Top"
>
<FaArrowUp size={20} />
</button>
</div>
</div>
</footer>
);
};

export default Footer;