mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-02-08 21:59:39 +01:00
30 lines
923 B
TypeScript
30 lines
923 B
TypeScript
import { useTranslations } from "next-intl"
|
|
import { Section, SectionTitle } from "../../Layout/Section/Section"
|
|
import { SkillItem } from "./SkillItem"
|
|
import { SkillsSection } from "./SkillsSection"
|
|
import { SKILL_CATEGORIES, SKILL_NAMES_BY_CATEGORY } from "./skills"
|
|
|
|
export interface SkillsProps {}
|
|
|
|
export const Skills: React.FC<SkillsProps> = () => {
|
|
const t = useTranslations()
|
|
|
|
return (
|
|
<Section verticalSpacing horizontalSpacing id="skills">
|
|
<SectionTitle>{t("home.skills.title")}</SectionTitle>
|
|
|
|
{SKILL_CATEGORIES.map((category) => {
|
|
const skillNames = SKILL_NAMES_BY_CATEGORY[category]
|
|
|
|
return (
|
|
<SkillsSection key={category} title={t(`home.skills.${category}`)}>
|
|
{skillNames.map((skillName) => {
|
|
return <SkillItem key={skillName} skillName={skillName} />
|
|
})}
|
|
</SkillsSection>
|
|
)
|
|
})}
|
|
</Section>
|
|
)
|
|
}
|