-
-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathCTA.js
More file actions
42 lines (38 loc) · 1.3 KB
/
CTA.js
File metadata and controls
42 lines (38 loc) · 1.3 KB
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
import React from "react";
import Image from "next/image";
import { useRouter } from "next/router";
const CTA = ({ image, metainfo }) => {
const router = useRouter();
const redirectToRegistration = () => {
router.push("registration");
};
return (
<section
id="cta"
className="relative bg-brand-highlight flex flex-col -mt-14 py-24 md:px-28 px-5 justify-center items-center overflow-clip "
>
<div className="container mx-auto max-w-screen-xl">
<div className="flex md:flex-row flex-col justify-center items-center mx-auto gap-16">
<div className="md:w-5/12 w-10/12">
<Image
src={
image ? image : require(`/public/${metainfo.name}/CTAImage.svg`)
}
alt="CTA Image"
layout="responsive"
/>
</div>
<div className="md:w-7/12 w-full flex flex-col items-start text-left">
<h1 className="font-primary text-[#010326] text-4xl md:text-left text-center md:mx-0 mx-auto">
{metainfo.cta.title}
</h1>
<p className="md:mt-7 mt-4 font-body text-gray-600 text-center md:text-left">
{metainfo.cta.description}
</p>
</div>
</div>
</div>
</section>
);
};
export default CTA;