-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFeaturesBanner.tsx
47 lines (44 loc) · 1.28 KB
/
FeaturesBanner.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
47
/* eslint-disable @next/next/no-img-element */
import {motion} from "framer-motion";
import {FunctionComponent} from "react";
import {fadeInUp} from "../animations/animations";
import styles from "../styles/components/FeaturesBanner.module.scss";
import FeaturesBannerCard from "./Cards/FeaturesBannerCard";
interface IProps {
title: string;
content: [
{
id: string;
title: string;
icon: {
altText: string;
sourceUrl: string;
};
}
];
}
const FeaturesBanner: FunctionComponent<IProps> = ({title, content}) => {
return (
<section className={styles.featuresBanner}>
<div className="container px-0 mx-auto">
<div className="flex flex-col justify-center items-center px-4">
<motion.div variants={fadeInUp} className="py-8 px-4 mb-8">
<h2 className="w-full lg:w-[45rem] mx-auto text-black text-center tracking-normal leading-[2.75rem] font-[600] text-2xl sm:text-3xl lg:text-5xl">
{title}
</h2>
</motion.div>
<div className="flex flex-col lg:flex-row justify-center lg:justify-between items-center">
{content.map((keys) => (
<FeaturesBannerCard
key={keys?.id}
title={keys?.title}
icon={keys?.icon}
/>
))}
</div>
</div>
</div>
</section>
);
};
export default FeaturesBanner;