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

8 marketing card #60

Merged
merged 5 commits into from
Oct 23, 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/marketing-icons/sec1.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/marketing-icons/sec2.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/marketing-icons/sec3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions src/components/marketing-card/Card.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
const Card = ({ icon, title, children }) => {
return (
<div className='p-4 mb-4 w-full sm:w-1/3 lg:w-1/3 flex justify-center item-center'>
<div className='text-center flex flex-col items-center'>
<div className='pb-4 '>{icon}</div>
<h3 className='p-2 font-bold'>{title}</h3>
{children}
</div>
</div>
);
};

export default Card;
10 changes: 10 additions & 0 deletions src/components/marketing-card/SectionWithCards.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
const SectionWithCards = ({ children, SectionTitle }) => {
return (
<section className='bg-gray-100 p-8 w-5/6 mx-auto text-center my-6'>
<h2 className='text-2xl font-bold mb-8'>{SectionTitle}</h2>
<div className='flex flex-wrap mx-2'>{children}</div>
</section>
);
};

export default SectionWithCards;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Job.

Loading