-
Notifications
You must be signed in to change notification settings - Fork 354
Expand file tree
/
Copy pathskills-cta.component.tsx
More file actions
48 lines (46 loc) · 1.46 KB
/
skills-cta.component.tsx
File metadata and controls
48 lines (46 loc) · 1.46 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
import React from "react";
import styles from "./skills-cta.module.scss";
import { clsx } from "clsx";
import Link from "next/link";
import { JwtDictionaryModel } from "@/features/localization/models/jwt-dictionary.model";
import { getLocalizedSecondaryFont } from "@/libs/theme/fonts";
import { ArrowHeadIconComponent } from "@/features/common/assets/arrow-head-icon.component";
import { SkillsCardComponent } from "./skills-card.component";
interface SkillsCtaComponentProps {
languageCode: string;
dictionary: JwtDictionaryModel["skills"];
}
export const SkillsCtaComponent: React.FC<SkillsCtaComponentProps> = ({
languageCode,
dictionary,
}) => {
return (
<div className={styles.container}>
<div className={styles.left}>
<h4
className={clsx(
styles.title,
getLocalizedSecondaryFont(languageCode),
)}
>
{dictionary.title}
</h4>
<div className={styles.content}>
<p className={styles.description}>{dictionary.description}</p>
<Link
className={styles.link}
href={dictionary.ctaButton.path}
target="_blank"
rel="noreferrer noopener"
>
{dictionary.ctaButton.label}
<ArrowHeadIconComponent />
</Link>
</div>
</div>
<div className={styles.right}>
<SkillsCardComponent languageCode={languageCode} dictionary={dictionary} />
</div>
</div>
);
};