Skip to content

Commit

Permalink
refactor next image
Browse files Browse the repository at this point in the history
  • Loading branch information
lineville committed Dec 3, 2024
1 parent a814020 commit 9aeb2a7
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions src/components/Board.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default function Board({
const { colorMode } = useColorMode();

return (
<Grid
(<Grid
templateColumns={`repeat(${columns}, 1fr)`}
gap={3}
rowGap={3}
Expand Down Expand Up @@ -60,22 +60,28 @@ export default function Board({
alt={c.name}
placeholder="empty"
priority={true}
sizes="(max-width: 768px) 100px, 130px"
width={100}
height={100}
objectFit="cover"
/>
sizes="(max-width: 768px) 100px, 130px"
style={{
maxWidth: "100%",
height: "auto",
objectFit: "cover"
}} />

<Image
src="/question-mark.png"
alt="question mark"
placeholder="empty"
priority={true}
sizes="(max-width: 768px) 100px, 130px"
width={100}
height={100}
objectFit="cover"
/>
sizes="(max-width: 768px) 100px, 130px"
style={{
maxWidth: "100%",
height: "auto",
objectFit: "cover"
}} />
</FlipCard>
</CardBody>
<CardFooter
Expand All @@ -102,6 +108,6 @@ export default function Board({
</SlideFade>
</GridItem>
))}
</Grid>
</Grid>)
);
}

0 comments on commit 9aeb2a7

Please sign in to comment.