aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/projets/index.tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-10-18 19:25:02 +0200
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:14:41 +0100
commit94448fa278ab352a741ff13f22d6104869571144 (patch)
tree2185e77f2866d11a0144d4ac5a01c71a76807341 /src/pages/projets/index.tsx
parentc153f93dc8691a71dc76aad3dd618298da9d238a (diff)
feat(components): add a generic Grid component
* merge Columns, Gallery and CardsList into Grid component * add more options to control the grid
Diffstat (limited to 'src/pages/projets/index.tsx')
-rw-r--r--src/pages/projets/index.tsx16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/pages/projets/index.tsx b/src/pages/projets/index.tsx
index abb6da0..6ae476e 100644
--- a/src/pages/projets/index.tsx
+++ b/src/pages/projets/index.tsx
@@ -13,9 +13,9 @@ import {
CardFooter,
CardHeader,
CardTitle,
- CardsList,
- type CardsListItem,
getLayout,
+ Grid,
+ type GridItem,
Link,
MetaList,
PageLayout,
@@ -61,7 +61,7 @@ const ProjectsPage: NextPageWithLayout<ProjectsPageProps> = ({ projects }) => {
id: 'ADQmDF',
});
- const items: CardsListItem[] = projects.map(
+ const items: GridItem[] = projects.map(
({ id, meta: projectMeta, slug, title: projectTitle }) => {
const { cover, tagline, technologies } = projectMeta;
const figureLabel = intl.formatMessage(
@@ -74,7 +74,7 @@ const ProjectsPage: NextPageWithLayout<ProjectsPageProps> = ({ projects }) => {
);
return {
- card: (
+ item: (
<Card
cover={
cover ? (
@@ -165,7 +165,13 @@ const ProjectsPage: NextPageWithLayout<ProjectsPageProps> = ({ projects }) => {
breadcrumb={breadcrumbItems}
breadcrumbSchema={breadcrumbSchema}
>
- <CardsList className={styles.list} items={items} />
+ <Grid
+ className={styles.list}
+ gap="sm"
+ isCentered
+ items={items}
+ sizeMax="30ch"
+ />
</PageLayout>
</>
);