Skip to content

Commit 387fb14

Browse files
committed
fix: serve toolkit lane images at retina resolution
1 parent 7542311 commit 387fb14

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

landing/src/components/home/toolkit-lanes.tsx

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,13 @@ type Lane = {
1717
icons: [PixelIconName, PixelIconName, PixelIconName];
1818
};
1919

20+
const laneImage = {
21+
displayWidth: 528,
22+
displayHeight: 868,
23+
intrinsicWidth: 1056,
24+
intrinsicHeight: 1736,
25+
} as const;
26+
2027
const lanes: Lane[] = [
2128
{
2229
id: "interact",
@@ -155,10 +162,11 @@ export function ToolkitLanes() {
155162
<Image
156163
src={lane.image}
157164
alt=""
158-
width={528}
159-
height={868}
160-
sizes="(max-width: 1024px) 100vw, 528px"
165+
width={laneImage.intrinsicWidth}
166+
height={laneImage.intrinsicHeight}
167+
sizes={`(max-width: 1024px) 100vw, ${laneImage.displayWidth}px`}
161168
className="h-full w-full object-cover"
169+
unoptimized
162170
/>
163171
</div>
164172
</article>

0 commit comments

Comments
 (0)