generated from 202306-NEA-DZ-FEW/capstone-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from 63-hero-2-section
feat: create second hero section
- Loading branch information
Showing
7 changed files
with
125 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.", | ||
}, | ||
]; |