mirror of
https://github.com/System-End/site.git
synced 2026-04-19 23:22:49 +00:00
made a grid
This commit is contained in:
parent
c0b3855904
commit
670cd70e28
1 changed files with 22 additions and 13 deletions
|
|
@ -13,23 +13,28 @@ const ShopPage = ({parts}) => {
|
|||
color: 'primary'
|
||||
}
|
||||
}>Shop</h1>
|
||||
<Box sx={
|
||||
{maxWidth: '800px',
|
||||
mx: 'auto',
|
||||
display: 'flex',
|
||||
flexWrap: 'wrap',
|
||||
flexDirection: 'column',
|
||||
minHeight: '95vh',
|
||||
justifyContent: 'space-around',
|
||||
width: '200px',
|
||||
|
||||
}
|
||||
}>
|
||||
<ul>
|
||||
|
||||
<Box sx={
|
||||
{display: 'flex',
|
||||
flexDirection: 'row',
|
||||
flexWrap: 'wrap',
|
||||
alignItems: 'center',
|
||||
}
|
||||
}>
|
||||
|
||||
{parts.map(part => (
|
||||
|
||||
|
||||
<Box sx={
|
||||
{maxWidth: '800px',
|
||||
mx: 'auto',
|
||||
minHeight: '300px',
|
||||
justifyContent: 'space-around',
|
||||
width: '250px',
|
||||
|
||||
}
|
||||
}>
|
||||
<li key={part.id}>
|
||||
<h2>{part.fields['Name']}</h2>
|
||||
<p sx={
|
||||
|
|
@ -46,9 +51,13 @@ const ShopPage = ({parts}) => {
|
|||
}
|
||||
}/>
|
||||
</li>
|
||||
</Box>
|
||||
|
||||
))}
|
||||
|
||||
</Box>
|
||||
</ul>
|
||||
</Box>
|
||||
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue