Skip to content

Commit

Permalink
Merge pull request #66 from 63-hero-2-section
Browse files Browse the repository at this point in the history
feat: create second hero section
  • Loading branch information
ismail-benlaredj authored Nov 6, 2023
2 parents 60d494a + 064200e commit acdef55
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 0 deletions.
Binary file added public/images/Shop.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/secondherosec-icons/sec4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/secondherosec-icons/sec5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/secondherosec-icons/sec6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/secondherosec-icons/sec7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions src/components/secondherosection/SecondHeroSec.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import Image from "next/image";

const SecondHeroSection = ({ children }) => {
return (
<section className='relative justify-center h-full mb-10 '>
{/* Main Content */}
<div className='lg:grid border border-black h-[25rem] bg-green justify-center'>
{/* Hero Image */}
<Image
className='opacity-50 h-[20rem] w-auto mt-10'
src='/images/Shop.png'
width={600}
height={400}
alt='hero image'
/>

{/* Card Section */}
<div className='absolute top-1/2 w-full'>
<div className='flex flex-wrap justify-center'>
{children}
</div>
</div>
</div>
</section>
);
};

export default SecondHeroSection;
97 changes: 97 additions & 0 deletions src/constants/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
import Image from "next/image";

export const marketingCardData1 = [
{
icon: (
<Image
src={"/marketing-icons/sec1.png"}
alt='Icon 1'
width={80}
height={100}
/>
),
title: "Card 1 Title",
content:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
},
{
icon: (
<Image
src={"/marketing-icons/sec2.png"}
alt='Icon 1'
width={80}
height={100}
/>
),
title: "Card 2 Title",
content:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
},
{
icon: (
<Image
src={"/marketing-icons/sec3.png"}
alt='Icon 1'
width={80}
height={100}
/>
),
title: "Card 3 Title",
content:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
},
];
export const marketingCardData2 = [
{
icon: (
<Image
src={"/secondherosec-icons/sec4.png"}
alt='Icon 1'
width={80}
height={80}
/>
),
title: "Card 1 Title",
content:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
},
{
icon: (
<Image
src={"/secondherosec-icons/sec5.png"}
alt='Icon 1'
width={80}
height={80}
/>
),
title: "Card 2 Title",
content:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
},
{
icon: (
<Image
src={"/secondherosec-icons/sec6.png"}
alt='Icon 1'
width={80}
height={80}
/>
),
title: "Card 3 Title",
content:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
},
{
icon: (
<Image
src={"/secondherosec-icons/sec7.png"}
alt='Icon 1'
width={80}
height={80}
/>
),
title: "Card 4 Title",
content:
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
},
];

0 comments on commit acdef55

Please sign in to comment.