Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create second hero section #66

Merged
merged 3 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"}

Check warning on line 7 in src/constants/index.js

View workflow job for this annotation

GitHub Actions / ⬣ ESLint

Curly braces are unnecessary here
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"}

Check warning on line 20 in src/constants/index.js

View workflow job for this annotation

GitHub Actions / ⬣ ESLint

Curly braces are unnecessary here
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"}

Check warning on line 33 in src/constants/index.js

View workflow job for this annotation

GitHub Actions / ⬣ ESLint

Curly braces are unnecessary here
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"}

Check warning on line 48 in src/constants/index.js

View workflow job for this annotation

GitHub Actions / ⬣ ESLint

Curly braces are unnecessary here
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"}

Check warning on line 61 in src/constants/index.js

View workflow job for this annotation

GitHub Actions / ⬣ ESLint

Curly braces are unnecessary here
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"}

Check warning on line 74 in src/constants/index.js

View workflow job for this annotation

GitHub Actions / ⬣ ESLint

Curly braces are unnecessary here
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"}

Check warning on line 87 in src/constants/index.js

View workflow job for this annotation

GitHub Actions / ⬣ ESLint

Curly braces are unnecessary here
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.",
},
];
Loading