feat : better ui
This commit is contained in:
@@ -50,7 +50,7 @@ export async function GET(
|
||||
) {
|
||||
const { guideId } = await context.params;
|
||||
const guide = await getCachedPublicWeaponExport(guideId);
|
||||
if (!guide) return new Response("Guide not found", { status: 404 });
|
||||
if (!guide) return new Response("ไม่พบไกด์", { status: 404 });
|
||||
|
||||
const [fonts, weaponImages] = await Promise.all([
|
||||
anuphanFonts,
|
||||
@@ -77,7 +77,7 @@ export async function GET(
|
||||
<div style={{ position: "relative", zIndex: 1, display: "flex", flex: 1, flexDirection: "column", gap: 14 }}>
|
||||
<div style={{ display: "flex", flexDirection: "column", alignItems: "center", gap: 8, marginBottom: 6 }}>
|
||||
<div style={{ display: "flex", color: "#f0b72f", fontSize: 16, fontWeight: 700 }}>อาวุธที่แนะนำ</div>
|
||||
<div style={{ display: "flex", fontSize: 38, fontWeight: 700 }}>Weapons</div>
|
||||
<div style={{ display: "flex", fontSize: 38, fontWeight: 700 }}>อาวุธ</div>
|
||||
</div>
|
||||
{guide.weapons.map((row, index) => (
|
||||
<div
|
||||
@@ -140,7 +140,7 @@ export async function GET(
|
||||
fonts: fonts.length ? fonts : undefined,
|
||||
headers: {
|
||||
"Cache-Control": "no-store",
|
||||
"Content-Disposition": imageContentDisposition(`${guide.guideName} Weapons`, "weapons"),
|
||||
"Content-Disposition": imageContentDisposition(`${guide.guideName} อาวุธ`, "weapons"),
|
||||
"Content-Type": "image/png",
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user