Skip to content

Commit

Permalink
Merge pull request #60 from 202306-NEA-DZ-FEW/8-marketing-card
Browse files Browse the repository at this point in the history
8 marketing card
  • Loading branch information
ismail-benlaredj authored Oct 23, 2023
2 parents 18fba0b + bfebd2d commit 6725cca
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 0 deletions.
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;

0 comments on commit 6725cca

Please sign in to comment.