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
2 changes: 2 additions & 0 deletions client/src/components/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import CarouselSlider from "./layout/CarouselSlider";
import StoresPage from "@/app/store";
import { useEffect } from "react";
import { Cookies } from "react-cookie"
import Footer from "./layout/Footer";
function HomePage() {
useEffect(() => {
const cookies = new Cookies();
Expand All @@ -20,6 +21,7 @@ function HomePage() {
<HNavbar />
<CarouselSlider />
<StoresPage />
<Footer />
</div>
);
}
Expand Down
41 changes: 41 additions & 0 deletions client/src/components/layout/Footer.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.footer{
background: rgb(153,147,235);
min-height: 290px;
}
/* .footer-inside{
width: 50%;
height:100%;
margin: 0 auto;
display: flex;
justify-content:space-between;
align-items:center;
}*/
.footer-inside {
display: flex; /* Aligns the divs horizontally */
justify-content: space-between; /* Adds spacing between the columns */
padding: 20px;
width: 50%;
height:100%;
margin: 0 auto;
align-items:center;
}
.footer-section{
color: white;
height:120px;
}
.footer-section h4{
margin-bottom: 10px;
}
.footer-section ul li a{
cursor: pointer;
}
@media only screen and (max-width: 1024px) {
.footer-inside {
width:70%;
}
}
@media only screen and (max-width: 768px) {
.footer-inside {
width:100%;
}
}
44 changes: 44 additions & 0 deletions client/src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import "./Footer.css";
import Link from "next/link";
const Footer = () => {
return (
<div className="footer">
<div className="footer-inside">
<div className="footer-section">
<h4>Buying</h4>
<ul>
<li><Link href={"/"}>Link</Link></li>
<li><Link href={"/"}>Link</Link></li>
<li><Link href={"/"}>Link</Link></li>
<li><Link href={"/"}>Link</Link></li>
</ul>
</div>
<div className="footer-section">
<h4>Selling</h4>
<ul>
<li><Link href={"/"}>Link</Link></li>
<li><Link href={"/"}>Link</Link></li>
<li><Link href={"/"}>Link</Link></li>
<li><Link href={"/"}>Link</Link></li>
</ul>
</div>
<div className="footer-section">
<h4>Company</h4>
<ul>
<li><Link href={"/about"}>About</Link></li>
<li><Link href={"/"}>Careers</Link></li>
</ul>
</div>
<div className="footer-section">
<h4>Help</h4>
<ul>
<li><Link href={"/"}>FAQs</Link></li>
<li><Link href={"/"}>Live Chat</Link></li>
<li><Link href={"/"}>Contact Us</Link></li>
</ul>
</div>
</div>
</div>
)
}
export default Footer;