Skip to content

Commit

Permalink
feat: Footer component
Browse files Browse the repository at this point in the history
  • Loading branch information
RusithTharindu committed May 10, 2024
1 parent 968f81d commit cfa6218
Showing 1 changed file with 146 additions and 0 deletions.
146 changes: 146 additions & 0 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
"use client";

import { Button } from "@/components/ui/button";
import { Link } from "lucide-react";
import Image from "next/image";
import Container from "./Container";
import socialMediaData from "@/data/footer/footerData";
import footerbg from "../../../public/assets/footerAssets/footer_bg.png";

const Footer = () => {
return (
<div className="w-full h-auto overflow-hidden">
<div className="w-[100%] bg-red-600">
<Image
alt="Footer Background Image"
src="/assets/footerAssets/brick_floor2.png"
width={1920}
height={1080}
// objectFit="cover"
// layout="fill"
// objectPosition="center"
// style={{backgroundRepeat: "repeat-x"}}
className="bg-repeat-space bg-contain"

/>
</div>
<div className="h-auto w-[100%] flex flex-row relative bg-black">
<Image
alt=""
src="/assets/footerAssets/2_bushes.png"
width={120}
height={100}
className="absolute top-0 left-5 md:left:10 w-[70px] md:w-[100px] xl:w-[120px]"
/>
<Image
alt=""
src="/assets/footerAssets/inverted_mario.png"
width={50}
height={100}
className="absolute top-0 left-0 ml-[45%] mr-[45%] w-[25px] md:w-[30px] lg:w-[40px]"
/>
<Image
alt=""
src="/assets/footerAssets/plant.png"
width={50}
height={50}
className="absolute top-0 right-8 md:right-12 xl:right-28 z-10 w-[25px] md:w-[30px] lg:w-[35px]"
/>
<Image
alt=""
src="/assets/footerAssets/triangle_bush.png"
width={150}
height={50}
className="absolute top-0 right-0 w-[40px] md:w-[70px] lg:w-[90px] xl:w-[150px] "
/>
</div>

<div className="w-full h-auto bg-[url('/assets/footerAssets/footer_bg.png')] bg-center bg-no-repeat bg-cover">
<Container>
<footer className="py-[50px]">
<div className="h-full w-full flex flex-col md:flex-row ">
<div className="h-full w-full md:w-[50%] flex flex-col items-center md:items-start justify-center my-[10px]">
{/*Left Container*/}
<Image
alt="Techie Sleuths Logo"
src="/assets/logos/techie_sleuths_logo_new.png"
height={85}
width={199}
className="my-[10px]"
/>
<Image
alt="cloud"
src="/assets/footerAssets/cloud_inverted.png"
height={7}
width={100}
className="absolute top-10 md:top-80 left-2 md:-left-5"
/>
<p className="my-[10px] text-[#0C4A6E] text-[20px] text-center md:text-left ">
Forem ipsum dolor sit amet, consectetur adipiscing <br />
elit. Nunc vulputate libero et velit interdum, ac <br />
aliquet odio mattis.
</p>
<Button
type="submit"
variant="default"
className="w-[200px] my-[10px]"
>
Register Now
</Button>
</div>
<div className="h-full w-full md:w-[50%] flex flex-col items-center md:items-end justify-center my-[10px]">
{/*Right Container*/}
<p className="text-[#0C4A6E] text-[30px]">Organized by</p>
<div className="w-[150px] h-auto flex flex-row justify-evenly items-center my-[20px]">
<Image
alt="FOSS Community of NSBM"
src="/assets/logos/FOSS_logo.png"
height={69}
width={48}
/>
<Image
alt="Women in FOSS logo"
src="/assets/logos/WIF_logo.png"
height={85}
width={70}
/>
</div>
<div className="w-[150px] h-auto flex flex-row justify-around items-center my-[10px]">
{socialMediaData.map(({ platform, url, alt, src }) => (
<a key={platform} href={url}>
<Image alt={alt} src={src} height={20} width={20} />
</a>
))}
</div>
<Image
alt="cloud"
src="/assets/footerAssets/cloud_inverted.png"
height={7}
width={100}
className="absolute top-10 -z-10 md:z-10 md:top-20 md:right-60 lg:right-80 lg:mr-60"
/>
</div>
</div>
<div className="w-full h-auto flex flex-col md:flex-row justify-center md:justify-between items-center relative">
<p className="my-[10px] text-[#0C4A6E] text-[20px]">
2024 foss community of NSBM
</p>
<p className="my-[10px] text-[#0C4A6E] text-[20px] text-center">
{"</>"} with 🖤 by the foss community of NSBM
</p>
<Image
alt="cloud"
src="/assets/footerAssets/cloud_inverted.png"
height={7}
width={100}
className="absolute -top-40 right-0 md:-top-20 lg:-top-20 lg:right-40"
/>
</div>
</footer>
</Container>
</div>
</div>
);
};

export default Footer;

0 comments on commit cfa6218

Please sign in to comment.