-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFeaturesBannerTwo.tsx
46 lines (43 loc) · 1.1 KB
/
FeaturesBannerTwo.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import {FunctionComponent} from "react";
import styles from "../styles/components/FeaturesBanner.module.scss";
import FeaturesBannerCardTwo from "./Cards/FeaturesBannerCardTwo";
interface IProps {
title: string;
gridContent: [
{
id: string;
title: string;
paragraph: string;
icon: {
altText: string;
sourceUrl: string;
};
}
];
}
const FeaturesBannerTwo: FunctionComponent<IProps> = ({title, gridContent}) => {
return (
<section className={styles.featuresBannerTwo}>
<div className="py-10 bg-pink overflow-hidden">
<div className="container mx-auto px-0">
<div className="py-16 px-4 md:px-8 sm:p-16">
<h2 className="mb-10 text-white font-[600] text-center lg:text-left text-2xl sm:text-3xl lg:text-5xl">
{title}
</h2>
<div className="flex flex-wrap">
{gridContent.map((keys) => (
<FeaturesBannerCardTwo
key={keys?.id}
icon={keys?.icon}
title={keys?.title}
paragraph={keys?.paragraph}
/>
))}
</div>
</div>
</div>
</div>
</section>
);
};
export default FeaturesBannerTwo;