Skip to content

Commit

Permalink
Update browse.js
Browse files Browse the repository at this point in the history
  • Loading branch information
eerosahlberg committed Apr 22, 2024
1 parent 4c16729 commit 047eccb
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions pages/item/browse.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
Image,
SimpleGrid,
Select,
AspectRatio,
} from '@chakra-ui/react';
import prisma from '../../utils/prisma';
import NextLink from 'next/link';
Expand Down Expand Up @@ -85,16 +86,16 @@ export default function BrowseItems({ items, categories }) {
position='relative'
_hover={{ shadow: '2xl', transform: 'scale(1.01)', transition: 'all 0.2s', zIndex: 1 }}
>
<Image
src={item.image}
alt={`Picture of ${item.name}`}
width='500px'
height='300px'
roundedTop='lg'
objectFit='cover'
objectPosition='center'
fallbackSrc='https://via.placeholder.com/500x300'
/>
<AspectRatio ratio={5 / 3}>
<Image
src={item.image}
alt={`Picture of ${item.name}`}
roundedTop='lg'
objectFit='cover'
objectPosition='center'
fallbackSrc='https://via.placeholder.com/500x300'
/>
</AspectRatio>

<Box margin={'1.5em'} marginTop={'0.5em'}>
<Flex mt='1' justifyContent='space-between' alignContent='center'>
Expand Down

0 comments on commit 047eccb

Please sign in to comment.