-
Notifications
You must be signed in to change notification settings - Fork 353
Expand file tree
/
Copy pathauth0-cta.component.tsx
More file actions
51 lines (49 loc) · 1.6 KB
/
auth0-cta.component.tsx
File metadata and controls
51 lines (49 loc) · 1.6 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
43
44
45
46
47
48
49
50
51
import React from "react";
import { getLocalizedSecondaryFont } from "@/libs/theme/fonts";
import clsx from "clsx";
import { Auth0DictionaryModel } from "@/features/localization/models/auth0-dictionary.model";
import styles from "./auth0-cta.module.scss";
import Link from "next/link";
import { ArrowHeadIconComponent } from "../../assets/arrow-head-icon.component";
interface Auth0CtaComponentProps {
languageCode: string;
dictionary: Auth0DictionaryModel["banner"];
}
export const Auth0CtaComponent: React.FC<Auth0CtaComponentProps> = ({
languageCode,
dictionary,
}) => {
return (
<div className={styles.cta_container}>
<div className={styles.cta_wrapper}>
<div className={styles.cta_content}>
<div className={styles.cta_cta}>
<div className={styles.cta__copy}>
<div className={styles.cta__text}>
<h3
className={clsx(
getLocalizedSecondaryFont(languageCode),
styles.cta__title
)}
>
{dictionary.title}
</h3>
<p className={styles.cta__description}>
{dictionary.description}
</p>
</div>
<Link
className={styles.cta__button}
href={dictionary.ctaButton.path}
>
{dictionary.ctaButton.label}
<ArrowHeadIconComponent />
</Link>
</div>
<div className={styles.cta__media}></div>
</div>
</div>
</div>
</div>
);
};