Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

6 footer #62

Merged
merged 4 commits into from
Oct 22, 2023
Merged
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
Binary file added public/Logo/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
79 changes: 76 additions & 3 deletions src/components/footer/Footer.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,78 @@
function Footer() {
return <div className='h-48 w-full'>Footer</div>;
}
import Image from "next/image";
import {
BiLogoFacebookSquare,
BiLogoInstagram,
BiLogoLinkedinSquare,
BiSolidShareAlt,
} from "react-icons/bi";

const Footer = () => {
return (
<footer className='bg-green text-white p-8'>
<div className='mx-auto flex flex-col items-center sm:flex-col lg:flex-row'>
{/* Logo */}
<div className='mx-2 mb-4 '>
<Image
src='/Logo/logo.png'
alt='Logo'
width={80}
height={80}
/>
</div>
{/* Columns */}
<div className='flex flex-col sm:flex-row lg:flex-row justify-between px-10 mx-auto w-full'>
{/* First Column */}
<div className='flex flex-col items-center sm:mx-2 sm:mb-4'>
<a
href='#'
className='text-white hover:text-black mb-1'
>
About us
</a>
<a
href='#'
className='text-white hover:text-black mb-1'
>
Blogs
</a>
<a
href='#'
className='text-white hover:text-black mb-1'
>
Listed items
</a>
</div>

{/* Second Column */}
<div className='flex flex-col items-center sm:mx-4 sm:mb-4'>
<h2>Contact us</h2>
<div className='flex items-center space-x-2 p-2'>
<a href='#' className='text-white hover:text-black'>
<BiLogoFacebookSquare className='w-6 h-6' />
</a>
<a href='#' className='text-white hover:text-black'>
<BiLogoInstagram className='w-6 h-6' />
</a>
<a href='#' className='text-white hover:text-black'>
<BiLogoLinkedinSquare className='w-6 h-6' />
</a>
<a href='#' className='text-white hover:text-black'>
<BiSolidShareAlt className='w-6 h-6' />
</a>
</div>
</div>

{/* Third Column */}
<div className='mx-4 items-center flex-col flex mb-4'>
<h2>Address</h2>
<p className='text-gray-300'>
123 Street, City, Country
</p>
</div>
</div>
</div>
</footer>
);
};

export default Footer;
10 changes: 6 additions & 4 deletions src/layout/Layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ import Navbar from "@/components/navbar/Navbar";

export default function Layout({ children }) {
return (
<div className='container mx-auto '>
<Navbar />
{children}
<>
<div className='container mx-auto '>
<Navbar />
{children}
</div>
<Footer />
</div>
</>
);
}
Loading