mirror of
https://github.com/theoludwig/theoludwig.git
synced 2025-12-12 20:46:52 +01:00
refactor: components struture
This commit is contained in:
38
packages/ui/src/Home/Portfolio/Portfolio.tsx
Normal file
38
packages/ui/src/Home/Portfolio/Portfolio.tsx
Normal file
@@ -0,0 +1,38 @@
|
||||
import { useTranslations } from "next-intl"
|
||||
import { Section, SectionTitle } from "../../Layout/Section/Section"
|
||||
import { PortfolioItem, type PortfolioProject } from "./PortfolioItem"
|
||||
|
||||
export interface PortfolioProps {}
|
||||
|
||||
export const Portfolio: React.FC<PortfolioProps> = () => {
|
||||
const t = useTranslations()
|
||||
|
||||
const items: PortfolioProject[] = [
|
||||
{
|
||||
id: "carolo",
|
||||
title: t("home.portfolio.carolo.title"),
|
||||
description: t("home.portfolio.carolo.description"),
|
||||
link: "https://carolo.theoludwig.fr/",
|
||||
image: "/images/portfolio/Carolo.webp",
|
||||
},
|
||||
{
|
||||
id: "leon",
|
||||
title: t("home.portfolio.leon.title"),
|
||||
description: t("home.portfolio.leon.description"),
|
||||
link: "https://getleon.ai/",
|
||||
image: "/images/portfolio/Leon.webp",
|
||||
},
|
||||
]
|
||||
|
||||
return (
|
||||
<Section verticalSpacing horizontalSpacing id="portfolio">
|
||||
<SectionTitle>{t("home.portfolio.title")}</SectionTitle>
|
||||
|
||||
<ul className="flex w-full list-none flex-wrap justify-center gap-12 px-3">
|
||||
{items.map((item) => {
|
||||
return <PortfolioItem key={item.id} portfolioProject={item} />
|
||||
})}
|
||||
</ul>
|
||||
</Section>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user