feat : better ui
CI / Verify (push) Successful in 59s
CI / Build immutable images and deploy (push) Failing after 1m4s

This commit is contained in:
2026-08-31 00:48:33 +07:00 Unverified
parent fd841057c1
commit e3692fe75b
19 changed files with 465 additions and 114 deletions
+4 -4
View File
@@ -51,7 +51,7 @@ export async function GET(
) {
const { teamId } = await context.params;
const team = await getCachedPublicTeamExport(teamId);
if (!team) return new Response("Team not found", { status: 404 });
if (!team) return new Response("ไม่พบทีม", { status: 404 });
const total = team.members.reduce(
(sum, member) => sum + Number(member.damage),
@@ -135,7 +135,7 @@ export async function GET(
</div>
<div style={{ display: "flex", flex: 1, flexDirection: "column", gap: 6 }}>
<div style={{ display: "flex", alignItems: "center", justifyContent: "space-between" }}>
<div style={{ display: "flex", fontSize: 20, fontWeight: 600 }}>C{member.constellation} · {member.character.name}</div>
<div style={{ display: "flex", fontSize: 20, fontWeight: 600 }}>C{member.constellation} {member.character.name}</div>
<div style={{ display: "flex", color: "#d9f6f2", fontSize: 18 }}>{amount(damage)}</div>
</div>
<div style={{ display: "flex", alignItems: "center", gap: 10 }}>
@@ -161,11 +161,11 @@ export async function GET(
</div>
<div style={{ display: "flex", flex: 1, flexDirection: "column", alignItems: "center", justifyContent: "center", gap: 6, padding: "16px 0", textAlign: "center", color: "#d1e9e6", fontSize: 18, lineHeight: 1.45 }}>
<div style={{ display: "flex", color: "#82d6ce", fontSize: 15, fontWeight: 700 }}>Team Rotation</div>
<div style={{ display: "flex", color: "#82d6ce", fontSize: 15, fontWeight: 700 }}>Rotation</div>
<div style={{ display: "flex" }}>{team.combo}</div>
</div>
<div style={{ display: "flex", justifyContent: "center", gap: 16, borderTop: "1px solid #28555a", paddingTop: 20, fontSize: 26, fontWeight: 700 }}>
<span style={{ color: "#f0c95f" }}>DPS: {amount(dps)}</span>
<span style={{ color: "#f0c95f" }}>DPS): {amount(dps)}</span>
<span style={{ color: "#688c90" }}>|</span>
<span>DPR: {amount(total)}</span>
</div>