diff --git a/app/api/guides/[guideId]/weapons/image/route.tsx b/app/api/guides/[guideId]/weapons/image/route.tsx index cf4bc53..78287df 100644 --- a/app/api/guides/[guideId]/weapons/image/route.tsx +++ b/app/api/guides/[guideId]/weapons/image/route.tsx @@ -27,7 +27,9 @@ const anuphanFonts = Promise.all( ).catch(() => []); function metric(value: string): string { - return `${Number(value).toLocaleString("en-US", { maximumFractionDigits: 2 })}%`; + return Number(value) === 0 + ? "-%" + : `${Number(value).toLocaleString("en-US", { maximumFractionDigits: 2 })}%`; } async function pngDataUrl(url: string): Promise { diff --git a/app/api/teams/[teamId]/image/route.tsx b/app/api/teams/[teamId]/image/route.tsx index 2746af5..d4b3a40 100644 --- a/app/api/teams/[teamId]/image/route.tsx +++ b/app/api/teams/[teamId]/image/route.tsx @@ -80,10 +80,9 @@ export async function GET( height: "100%", display: "flex", flexDirection: "column", - color: "#f4fbfa", - background: - "radial-gradient(circle at 50% 0%, #16454a 0%, #0a2429 38%, #06171b 100%)", - border: "2px solid #3aaaa2", + color: "#f7f7f7", + background: "#05060a", + border: "2px solid #34343d", padding: "34px 36px", fontFamily: "Anuphan", position: "relative", @@ -94,7 +93,7 @@ export async function GET(
{team.guideName}
-
+
{team.title} · ระยะเวลาโรเทชั่น {seconds.toLocaleString(undefined, { maximumFractionDigits: 2 })} วิ
@@ -111,10 +110,10 @@ export async function GET( alt="" width={78} height={78} - style={{ borderRadius: 16, border: "2px solid #78cbc4", background: rarityGradient(isCustomTravelerKey(member.character.key) ? 5 : member.character.rarity), objectFit: "cover" }} + style={{ borderRadius: 16, border: "2px solid #ffffff2a", background: rarityGradient(isCustomTravelerKey(member.character.key) ? 5 : member.character.rarity), objectFit: "cover" }} /> ) : ( -
+
{member.character.name.slice(0, 1)}
)} @@ -136,17 +135,17 @@ export async function GET(
C{member.constellation} {member.character.name}
-
{amount(damage)}
+
{amount(damage)}
-
+
@@ -160,16 +159,16 @@ export async function GET( })}
-
-
Rotation
+
+
Rotation
{team.combo}
-
+
DPS): {amount(dps)} - | + | DPR: {amount(total)}
-
+
By YT เกนชินไม่ใช่เกมมือถือ
diff --git a/components/public/structured-guide.tsx b/components/public/structured-guide.tsx index 282e1e7..9ea4f6d 100644 --- a/components/public/structured-guide.tsx +++ b/components/public/structured-guide.tsx @@ -262,7 +262,7 @@ function WeaponSection({ guide }: { guide: PublicGuide }) { rarityTextClass(row.weapon.rarity), )} > - {metric(row.overallPercent)} + {Number(row.overallPercent) === 0 ? "-%" : metric(row.overallPercent)}

ดาเมททั้งทีม

@@ -275,7 +275,7 @@ function WeaponSection({ guide }: { guide: PublicGuide }) { rarityTextClass(row.weapon.rarity), )} > - {metric(row.personalPercent)} + {Number(row.personalPercent) === 0 ? "-%" : metric(row.personalPercent)}

ดาเมจส่วนตัว