fix: ig no banners?

This commit is contained in:
dvelo 2025-05-04 23:42:20 -05:00
parent b35f04020d
commit 76ebc94056
2 changed files with 4 additions and 8 deletions

@ -60,7 +60,7 @@ export async function GET(
textAlign: "center", textAlign: "center",
justifyContent: "center", justifyContent: "center",
alignItems: "center", alignItems: "center",
backgroundImage: `url(${new URL("/branding/bg-banner.png", request.url).toString()})`, backgroundColor: "white",
backgroundSize: "cover", backgroundSize: "cover",
backgroundPosition: "center", backgroundPosition: "center",
fontFamily: "Inter", fontFamily: "Inter",
@ -248,7 +248,7 @@ export async function GET(
position: "relative", position: "relative",
overflow: "hidden", overflow: "hidden",
fontFamily: "Inter", fontFamily: "Inter",
backgroundImage: `url(${new URL("/branding/bg-banner.png", request.url).toString()})`, backgroundColor: "white",
backgroundSize: "cover", backgroundSize: "cover",
backgroundPosition: "center", backgroundPosition: "center",
}} }}

@ -222,7 +222,7 @@ export async function GET(
position: "relative", position: "relative",
overflow: "hidden", overflow: "hidden",
fontFamily: "Inter", fontFamily: "Inter",
backgroundImage: `url(${new URL("/branding/bg-banner.png", request.url).toString()})`, backgroundColor: "white",
backgroundSize: "cover", backgroundSize: "cover",
backgroundPosition: "center", backgroundPosition: "center",
}} }}
@ -448,11 +448,7 @@ export async function GET(
justifyContent: "center", justifyContent: "center",
alignItems: "center", alignItems: "center",
fontFamily: "Inter", fontFamily: "Inter",
...(bannerImageData && { backgroundColor: "white",
backgroundImage: `url(data:image/png;base64,${Buffer.from(bannerImageData).toString("base64")})`,
backgroundSize: "cover",
backgroundPosition: "center",
}),
}} }}
> >
<div style={{ display: "flex" }}> <div style={{ display: "flex" }}>