Skip to content

Commit

Permalink
add breakpoints and fix image sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
PenTest-duck committed Jun 21, 2024
1 parent c7e4fe9 commit 0a38d5a
Showing 1 changed file with 15 additions and 8 deletions.
23 changes: 15 additions & 8 deletions pages/merch.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,19 @@ const MerchCard = ({
onExited={() => setCarouselAnimating(false)}
key={path.split("/").at(-1)}
>
<Image
src={path}
alt={path.split("/").at(-1) ?? "merch item"}
width={400}
height={400}
/>
<div
style={{
position: "relative",
width: "100%",
paddingTop: "100%",
}}
>
<Image
src={path}
alt={path.split("/").at(-1) ?? "merch item"}
layout="fill"
/>
</div>
</CarouselItem>
);
});
Expand Down Expand Up @@ -405,10 +412,10 @@ const Merch = ({
</h1>
</Col>
</Row>
<Container>
<Container className="container-md">
<Row className="justify-content-center">
{repo.products.map((product) => (

Check failure on line 417 in pages/merch.tsx

View workflow job for this annotation

GitHub Actions / type-check (18.x)

Parameter 'product' implicitly has an 'any' type.
<Col xs="5" key={product.name}>
<Col className="col-sm-5" key={product.name}>
<MerchCard
product={product}
setCart={setCart}
Expand Down

0 comments on commit 0a38d5a

Please sign in to comment.