refactor: move new mantine components in dedicated folder + split home

This commit is contained in:
Sonny
2024-11-01 16:10:23 +01:00
committed by Sonny
parent 1da9f0baf4
commit 1a102ebc5f
7 changed files with 80 additions and 77 deletions

View File

@@ -0,0 +1,24 @@
import { SimpleGrid } from '@mantine/core';
import { Feature } from '~/mantine/components/home/feature';
export const featureList = [
'collection',
'link',
'search',
'extension',
'share',
'contribute',
] as const;
export const FeatureList = () => (
<SimpleGrid
mt={60}
cols={{ base: 1, sm: 2, md: 3 }}
spacing={{ base: 'xl', md: 50 }}
verticalSpacing={{ base: 'xl', md: 50 }}
>
{featureList.map((feature, index) => (
<Feature name={feature} key={index} />
))}
</SimpleGrid>
);