Skip to content

Commit 89677bd

Browse files
committed
Tint using hue-rotate
1 parent a85dad5 commit 89677bd

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

src/app/conf/2025/components/speaker-opengraph-image.tsx

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -151,37 +151,37 @@ export default function SpeakerOpengraphImage({
151151
display: "flex",
152152
overflow: "hidden",
153153
borderLeft: `2px solid ${colors.neu600}`,
154+
width: RIGHT_COLUMN_WIDTH_PX + 2,
155+
height: RIGHT_COLUMN_WIDTH_PX,
154156
}}
155157
>
156-
{/* <div
157-
style={{
158-
position: "absolute",
159-
inset: 0,
160-
zIndex: 1,
161-
backgroundColor: colors.secLighter,
162-
mixBlendMode: "multiply",
163-
}}
164-
/>
165158
<img
166159
src={normalizeProtocolRelativeUrl(speaker.avatar)}
167160
alt=""
168161
style={{
169162
objectFit: "cover",
163+
// @vercel/og doesn't support mix blend mode
164+
// and SVG `<image>` is crashing similarly to
165+
// https://github.com/vercel/satori/issues/650.
166+
// So we use `sepia` and `hue-rotate` to change
167+
// the hue to around 79deg from the design system's
168+
// secondary color (yellowish green).
169+
filter: "sepia(1) hue-rotate(37.5deg)",
170170
}}
171171
width={RIGHT_COLUMN_WIDTH_PX}
172172
height={RIGHT_COLUMN_WIDTH_PX}
173-
/> */}
174-
<svg
175-
viewBox={`0 0 ${RIGHT_COLUMN_WIDTH_PX} ${RIGHT_COLUMN_WIDTH_PX}`}
176-
width={RIGHT_COLUMN_WIDTH_PX}
177-
height={RIGHT_COLUMN_WIDTH_PX}
178-
>
179-
<image
180-
href={normalizeProtocolRelativeUrl(speaker.avatar)}
181-
width={RIGHT_COLUMN_WIDTH_PX}
182-
height={RIGHT_COLUMN_WIDTH_PX}
183-
/>
184-
</svg>
173+
/>
174+
<div
175+
style={{
176+
position: "absolute",
177+
top: 0,
178+
left: 0,
179+
width: RIGHT_COLUMN_WIDTH_PX,
180+
height: RIGHT_COLUMN_WIDTH_PX,
181+
backgroundColor: colors.secLighter,
182+
opacity: 0.25,
183+
}}
184+
/>
185185
</div>
186186
)}
187187
</div>

0 commit comments

Comments
 (0)