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 #60 from 202306-NEA-DZ-FEW/8-marketing-card
8 marketing card
- Loading branch information
Showing
5 changed files
with
23 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.
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,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; |
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,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; |