Skip to content

Commit

Permalink
footer implemented
Browse files Browse the repository at this point in the history
  • Loading branch information
sanidhyy authored Jan 13, 2024
1 parent 592020b commit 9815509
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
StarsCanvas,
} from "./components";
import Banner from "./components/Banner";
import Footer from "./components/Footer";

// App
const App = () => {
Expand All @@ -34,6 +35,7 @@ const App = () => {
<Contact />
<StarsCanvas />
</div>
<Footer />
</div>
</BrowserRouter>
);
Expand Down
36 changes: 36 additions & 0 deletions src/components/Footer.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import React from "react";
import { Link } from "react-router-dom";

import { styles } from "../styles";
import { socials } from "../constants";

// Footer
const Footer = () => {
return (
<nav
className={`${styles.paddingX} w-full flex items-center py-8 bg-primary border-t border-t-white/5`}
>
<div className="w-full flex justify-between items-center max-w-7xl mx-auto">
<p className="text-white text-md font-bold flex">
&copy; Shubham {new Date().getFullYear()}. All rights reserved.
</p>

{/* Nav Links (Desktop) */}
<ul className="list-none hidden sm:flex flex-row gap-10">
{socials.map((social) => (
<li
key={social.name}
className="text-secondary font-poppins font-medium cursor-pointer text-[16px]"
>
<Link to={social.link} target="_blank" rel="noreferrer noopener">
<img src={social.icon} alt={social.name} className="h-6 w-6" />
</Link>
</li>
))}
</ul>
</div>
</nav>
);
};

export default Footer;

0 comments on commit 9815509

Please sign in to comment.