1
0
mirror of https://github.com/theoludwig/theoludwig.git synced 2026-02-28 16:01:00 +01:00

refactor: components struture

This commit is contained in:
2024-07-31 11:41:39 +02:00
parent ceeeb2f9c5
commit b5c50728de
72 changed files with 122 additions and 114 deletions

View File

@@ -0,0 +1,30 @@
import { useTranslations } from "next-intl"
import { AboutItem } from "./AboutItem"
import { AboutItemBirthDate } from "./AboutItemBirthDate"
export interface AboutListProps {}
export const AboutList: React.FC<AboutListProps> = () => {
const t = useTranslations()
return (
<ul className="my-6 list-none space-y-3">
<AboutItem
label={t("home.about.pronouns.label")}
value={t("home.about.pronouns.value")}
/>
<AboutItemBirthDate />
<AboutItem
label={t("home.about.nationality.label")}
value={t("home.about.nationality.value")}
/>
<AboutItem
label={t("home.about.email.label")}
value={t("home.about.email.value", {
email: "contact@theoludwig.fr",
})}
link="mailto:contact@theoludwig.fr"
/>
</ul>
)
}