You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
The_Tip_Top/components/Section.tsx

20 lines
672 B

import style from "../styles/Section.module.css"
const Section = ({ children, backgroundImagePath, customClass = "d-flex justify-content-center text-center align-items-center" }) => {
const isImagePath = backgroundImagePath ? { backgroundImage: `url(${backgroundImagePath})` } : { backgroundColor: 'white' }
return (
<section
className={`${style.section} ${customClass}`}
style={isImagePath}
>
<div className="container">
<div className={`${style['bloc-content']}`}>
{children}
</div>
</div>
</section >
);
};
export default Section;