2023-10-23 23:11:59 +02:00
|
|
|
import htmlParser from "html-react-parser"
|
2024-01-23 23:59:10 +01:00
|
|
|
import { faCode, faMicrochip } from "@fortawesome/free-solid-svg-icons"
|
|
|
|
import { faGit } from "@fortawesome/free-brands-svg-icons"
|
|
|
|
|
|
|
|
export const InterestsIcons = {
|
|
|
|
code: faCode,
|
|
|
|
"open-source": faGit,
|
|
|
|
"high-tech": faMicrochip,
|
|
|
|
} as const
|
2021-04-18 01:56:23 +02:00
|
|
|
|
|
|
|
export interface InterestParagraphProps {
|
|
|
|
title: string
|
|
|
|
description: string
|
2024-01-23 23:59:10 +01:00
|
|
|
id: keyof typeof InterestsIcons
|
2021-04-18 01:56:23 +02:00
|
|
|
}
|
|
|
|
|
2023-08-01 17:22:09 +02:00
|
|
|
export const InterestParagraph = (
|
2023-10-23 23:11:59 +02:00
|
|
|
props: InterestParagraphProps,
|
2023-08-01 17:22:09 +02:00
|
|
|
): JSX.Element => {
|
2021-04-18 01:56:23 +02:00
|
|
|
const { title, description } = props
|
|
|
|
|
|
|
|
return (
|
2024-05-16 09:56:19 +02:00
|
|
|
<div className="my-6 text-center text-gray dark:text-gray-dark">
|
|
|
|
<h3 className="text-lg font-semibold text-primary dark:text-primary-dark">
|
|
|
|
{title}
|
|
|
|
</h3>
|
|
|
|
<p className="my-2">{htmlParser(description)}</p>
|
|
|
|
</div>
|
2021-04-18 01:56:23 +02:00
|
|
|
)
|
|
|
|
}
|