Added first stat on bedwars

This commit is contained in:
2025-08-17 19:42:58 +02:00
parent c79d06f272
commit e3a4a65e2d
12 changed files with 531 additions and 27 deletions

View File

@@ -4,6 +4,7 @@ import { getUuid } from "@/lib/hypixel/api/mojang"
import { getPlayer } from "@/lib/hypixel/api/player"
import { getExactLevel } from "@/lib/hypixel/level"
import Sidebar from "./_components/Sidebar"
import BedwarsStats from "./_components/stats/bedewars"
export default async function PlayerPage({
params
@@ -53,9 +54,8 @@ export default async function PlayerPage({
</h1>
<div className="flex gap-6 px-6 mt-8 w-full max-w-7xl">
<Sidebar level={level} ign={pign} player={player} guild={guild ?? undefined} />
<div className="p-6 w-3/4 rounded-xl border shadow-sm bg-card">
<h2 className="mb-4 text-xl font-semibold">Game Statistics</h2>
<p>Game stats will be displayed here...</p>
<div className="w-3/4">
<BedwarsStats stats={player.stats.Bedwars} />
</div>
</div>
</div>