@@ -4,6 +4,7 @@ import DifficultySelect from "@/components/ui/8bit/blocks/difficulty-select";
44import GameOver from "@/components/ui/8bit/blocks/game-over" ;
55import MainMenu from "@/components/ui/8bit/blocks/main-menu" ;
66import PauseMenu from "@/components/ui/8bit/blocks/pause-menu" ;
7+ import PlayerProfileCard from "@/components/ui/8bit/blocks/player-profile-card" ;
78import EnemyHealthDisplay from "@/components/ui/8bit/enemy-health-display" ;
89import HealthBar from "@/components/ui/8bit/health-bar" ;
910import ManaBar from "@/components/ui/8bit/mana-bar" ;
@@ -279,6 +280,75 @@ export default function GamingBlocks() {
279280 </ div >
280281 </ div >
281282
283+ < div className = "flex flex-col gap-4 border rounded-lg p-4 min-h-[450px]" >
284+ < div className = "flex flex-col md:flex-row gap-2 items-center justify-between" >
285+ < h2 className = "text-sm text-muted-foreground sm:pl-3" >
286+ Player Profile Card
287+ </ h2 >
288+
289+ < div className = "flex flex-col md:flex-row items-center gap-2" >
290+ < CopyCommandButton
291+ command = "pnpm dlx shadcn@latest add @8bitcn/player-profile-card"
292+ copyCommand = "pnpm dlx shadcn@latest add @8bitcn/player-profile-card"
293+ />
294+ < OpenInV0Button name = "8bit-player-profile-card" className = "w-fit" />
295+ </ div >
296+ </ div >
297+
298+ < div className = "py-14 flex flex-col gap-6" >
299+ < div className = "flex flex-col gap-6 w-full max-w-4xl mx-auto" >
300+ { /* Default Variant */ }
301+ < div className = "space-y-4" >
302+ < p className = "text-sm text-muted-foreground text-center" >
303+ Default Variant
304+ </ p >
305+ < div className = "flex justify-center" >
306+ < PlayerProfileCard
307+ playerName = "OrcDev"
308+ avatarSrc = "/avatars/orcdev.jpeg"
309+ avatarFallback = "OD"
310+ level = { 25 }
311+ stats = { {
312+ health : { current : 850 , max : 1000 } ,
313+ mana : { current : 320 , max : 400 } ,
314+ experience : { current : 7500 , max : 10000 } ,
315+ } }
316+ playerClass = "Web Dev Warrior"
317+ />
318+ </ div >
319+ </ div >
320+
321+ { /* Custom Stats Example */ }
322+ < div className = "space-y-4" >
323+ < p className = "text-sm text-muted-foreground text-center" >
324+ Custom Stats Example
325+ </ p >
326+ < div className = "flex justify-center" >
327+ < PlayerProfileCard
328+ playerName = "Sir Knight"
329+ avatarFallback = "SK"
330+ level = { 42 }
331+ stats = { {
332+ health : { current : 1200 , max : 1500 } ,
333+ mana : { current : 500 , max : 600 } ,
334+ experience : { current : 15000 , max : 20000 } ,
335+ } }
336+ playerClass = "Fighter"
337+ customStats = { [
338+ {
339+ label : "Stamina" ,
340+ value : 72 ,
341+ max : 100 ,
342+ color : "bg-green-500" ,
343+ } ,
344+ ] }
345+ />
346+ </ div >
347+ </ div >
348+ </ div >
349+ </ div >
350+ </ div >
351+
282352 < div className = "flex flex-col gap-4 border rounded-lg p-4 min-h-[450px]" >
283353 < div className = "flex flex-col md:flex-row gap-2 items-center justify-between" >
284354 < h2 className = "text-sm text-muted-foreground sm:pl-3" > Leaderboard</ h2 >
0 commit comments