Skip to content

Commit 557f491

Browse files
fix(venue): use Image component for venue photos
1 parent 72d4ced commit 557f491

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/sections/venue.tsx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { Box, Container, Grid, Heading, Paragraph } from "theme-ui";
1+
import { Container, Grid, Heading, Paragraph } from "theme-ui";
2+
3+
import { Image } from "~/components/image";
24

35
const venuePhotos = [
46
"/venue/pjatk-outside-1.jpeg",
@@ -18,16 +20,12 @@ export const Venue = () => (
1820

1921
<Grid columns={1} gap={3} sx={{ mt: "secondary" }}>
2022
{venuePhotos.map((photo, index) => (
21-
<Box
23+
<Image
2224
key={photo}
23-
as="img"
2425
src={photo}
2526
alt={`PJAIT venue photo ${index + 1}`}
26-
sx={{
27-
width: "100%",
28-
height: "auto",
29-
display: "block",
30-
}}
27+
width="100%"
28+
sx={{ display: "block" }}
3129
/>
3230
))}
3331
</Grid>

0 commit comments

Comments
 (0)