Skip to content

Commit

Permalink
Merge pull request #62 from 6-footer
Browse files Browse the repository at this point in the history
6 footer
  • Loading branch information
ismail-benlaredj authored Oct 22, 2023
2 parents 03a1852 + a6aa597 commit b9b3445
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 7 deletions.
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>
</>
);
}

0 comments on commit b9b3445

Please sign in to comment.