-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
112 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,71 @@ | ||
'use client'; | ||
import { experiments } from '@/setup'; | ||
import { Box, Card, CardActionArea, CardContent, CardHeader, CardMedia, Grid, Typography } from '@mui/material'; | ||
import { Box, Card, CardActionArea, CardContent, CardHeader, CardMedia, Divider, Grid, Typography } from '@mui/material'; | ||
|
||
export default function Home() { | ||
|
||
return <Box overflow="auto" padding={3}> | ||
<Card> | ||
<CardHeader title="Experimental" /> | ||
<CardContent> | ||
<Typography> | ||
Just some experimental digital artwork | ||
</Typography> | ||
</CardContent> | ||
</Card> | ||
<Grid container marginTop={0} overflow="auto" spacing={3}> | ||
{experiments.map((experiment, index) => !experiment.disabled && ( | ||
<Grid item key={index} xs={12} md={6} lg={4} xl={3}> | ||
<CardActionArea href={experiment.path}> | ||
<Card> | ||
<CardMedia image={experiment.image} sx={{ paddingTop: '100%' }} /> | ||
<CardHeader | ||
subheader={( | ||
<Box display="flex" gap={1}> | ||
<Typography>{experiment.index}</Typography> | ||
<Typography color="grey.700">|</Typography> | ||
<Typography>{experiment.date}</Typography> | ||
</Box> | ||
)} | ||
title={experiment.title} | ||
/> | ||
</Card> | ||
</CardActionArea> | ||
</Grid> | ||
))} | ||
</Grid> | ||
return <Box display="flex" flexDirection="column" gap={6} overflow="auto" padding={3}> | ||
<Box> | ||
<Card> | ||
<CardHeader title="Experimental" /> | ||
<CardContent> | ||
<Typography> | ||
Just some experimental digital artwork | ||
</Typography> | ||
</CardContent> | ||
</Card> | ||
</Box> | ||
<Box display="flex" flexDirection="column" gap={2}> | ||
<Typography variant="h4"> | ||
Featured | ||
</Typography> | ||
<Divider /> | ||
<Grid container overflow="auto" spacing={3}> | ||
{experiments.filter(experiment => experiment.featured).map((experiment, index) => ( | ||
<Grid item key={index} xs={12} md={6} lg={4} xl={3}> | ||
<CardActionArea href={experiment.path}> | ||
<Card> | ||
<CardMedia image={experiment.image} sx={{ paddingTop: '100%' }} /> | ||
<CardHeader | ||
subheader={( | ||
<Box display="flex" gap={1}> | ||
<Typography>{experiment.index}</Typography> | ||
<Typography color="grey.700">|</Typography> | ||
<Typography>{experiment.date}</Typography> | ||
</Box> | ||
)} | ||
title={experiment.title} | ||
/> | ||
</Card> | ||
</CardActionArea> | ||
</Grid> | ||
))} | ||
</Grid> | ||
<Divider /> | ||
</Box> | ||
<Box> | ||
<Grid container overflow="auto" spacing={3}> | ||
{experiments.filter(experiment => !experiment.disabled && !experiment.featured).map((experiment, index) => ( | ||
<Grid item key={index} xs={12} md={6} lg={4} xl={3}> | ||
<CardActionArea href={experiment.path}> | ||
<Card> | ||
<CardMedia image={experiment.image} sx={{ paddingTop: '100%' }} /> | ||
<CardHeader | ||
subheader={( | ||
<Box display="flex" gap={1}> | ||
<Typography>{experiment.index}</Typography> | ||
<Typography color="grey.700">|</Typography> | ||
<Typography>{experiment.date}</Typography> | ||
</Box> | ||
)} | ||
title={experiment.title} | ||
/> | ||
</Card> | ||
</CardActionArea> | ||
</Grid> | ||
))} | ||
</Grid> | ||
</Box> | ||
</Box>; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters