Added shards and opals

This commit is contained in:
2025-08-29 13:40:58 +02:00
parent 06adea0098
commit bcff435bc6
6 changed files with 151 additions and 4 deletions

View File

@@ -1,8 +1,34 @@
import { formatNumber } from "@/lib/formatters"
import { getPrestigeName, getSkyWarsIcon, getTextColor } from "@/lib/hypixel/skywars"
import { getSkywarsLevel } from "@/lib/hypixel/skyWarsLevel"
import { cn } from "@/lib/utils"
import GenericProgress from "../../_components/GenericProgress"
export function AngelOfDeath(
{ shards, lifetime_shards, opals, lifetime_opals }: { shards: number, lifetime_shards: number, opals: number, lifetime_opals: number }
) {
return (
<div className="grid grid-cols-2 grid-rows-2 mt-5">
<p>
<span className="font-bold">{"Shards: "}</span>
<span className="text-mc-aqua">{shards}</span>
</p>
<p>
<span className="font-bold">{"Opals: "}</span>
<span className="text-mc-blue">{opals}</span>
</p>
<p>
<span className="font-bold">{"Lifetime Shards: "}</span>
<span className="text-mc-aqua">{formatNumber(lifetime_shards)}</span>
</p>
<p>
<span className="font-bold">{"Lifetime Opals: "}</span>
<span className="text-mc-blue">{lifetime_opals}</span>
</p>
</div>
)
}
export function ShardProgress({ percent }: { percent: number }) {
return (
<div>