Skip to content

Commit

Permalink
refactor: Footer brick floor responsiveness
Browse files Browse the repository at this point in the history
  • Loading branch information
RusithTharindu committed May 10, 2024
1 parent cfa6218 commit ac0fdbd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
Binary file modified public/assets/footerAssets/footer_bg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 9 additions & 10 deletions src/components/layout/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,48 +10,47 @@ 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
<div className="bg-[#A66224] w-full h-[40px] md:h-[100px] lg:h-[130px] xl:h-[180px] bg-[url('/assets/footerAssets/brick_floor2.png')] bg-contain bg-repeat-x bg-center">
{/* <Image
alt="Footer Background Image"
src="/assets/footerAssets/brick_floor2.png"
width={1920}
height={1080}
// objectFit="cover"
// layout="fill"
// layout="cover"
// objectPosition="center"
// style={{backgroundRepeat: "repeat-x"}}
className="bg-repeat-space bg-contain"

/>
className="bg-repeat 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]"
className="absolute top-0 left-5 md:left:10 w-[60px] 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]"
className="absolute top-0 left-0 ml-[45%] mr-[45%] w-[20px] 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]"
className="absolute top-0 right-8 md:right-12 xl:right-28 z-10 w-[20px] 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] "
className="absolute top-0 right-0 w-[35px] md:w-[70px] lg:w-[90px] xl:w-[150px] "
/>
</div>

Expand Down

0 comments on commit ac0fdbd

Please sign in to comment.