@devrongx/games 0.4.45 → 0.4.47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devrongx/games",
3
- "version": "0.4.45",
3
+ "version": "0.4.47",
4
4
  "description": "Game UI components for sports prediction markets",
5
5
  "license": "MIT",
6
6
  "main": "./src/index.ts",
@@ -583,7 +583,7 @@ export const PreMatchGame = ({
583
583
  <div className="sticky bottom-0 z-10 -mx-4 px-4 pt-3 pb-5"
584
584
  style={{ background: "linear-gradient(180deg, transparent 0%, #0a0a12 12%, #0a0a12 100%)" }}>
585
585
 
586
- <div className="flex items-stretch justify-between gap-3">
586
+ <div className="flex items-start justify-between gap-3">
587
587
  {/* Left — text area */}
588
588
  <div className="flex flex-col gap-2 flex-1 min-w-0 overflow-hidden">
589
589
  {/* Remaining balance */}
@@ -658,10 +658,18 @@ const MultiplierSlide = ({ config }: SlideProps) => {
658
658
  };
659
659
 
660
660
  // Free leaderboard payouts: ranks 1-10, $25 down to $2.5 in $2.5 steps
661
- const FREE_PAYOUTS = Array.from({ length: 10 }, (_, i) => ({
662
- rank: i + 1,
663
- usdc: 25 - i * 2.5,
664
- }));
661
+ const FREE_PAYOUTS = [
662
+ { rank: 1, points: 4850, usdc: 25 },
663
+ { rank: 2, points: 4200, usdc: 22.5 },
664
+ { rank: 3, points: 3900, usdc: 20 },
665
+ { rank: 4, points: 3400, usdc: 17.5 },
666
+ { rank: 5, points: 2950, usdc: 15 },
667
+ { rank: 6, points: 2600, usdc: 12.5 },
668
+ { rank: 7, points: 2100, usdc: 10 },
669
+ { rank: 8, points: 1750, usdc: 7.5 },
670
+ { rank: 9, points: 1300, usdc: 5 },
671
+ { rank: 10, points: 900, usdc: 2.5 },
672
+ ];
665
673
 
666
674
  // ── Slide 5: Win USDC ──
667
675
  const WinSlide = ({ config, onComplete }: SlideProps) => {
@@ -704,9 +712,13 @@ const WinSlide = ({ config, onComplete }: SlideProps) => {
704
712
  style={{ border: "1px solid rgba(255,255,255,0.08)", background: "rgba(255,255,255,0.02)" }}
705
713
  >
706
714
  {/* Table header */}
707
- <div className="flex items-center justify-between px-3 py-1.5" style={{ borderBottom: "1px solid rgba(255,255,255,0.06)", background: "rgba(255,255,255,0.03)" }}>
715
+ <div className="grid grid-cols-3 items-center px-3 py-1.5" style={{ borderBottom: "1px solid rgba(255,255,255,0.06)", background: "rgba(255,255,255,0.03)" }}>
708
716
  <span className="text-[9px] font-bold text-white/50 uppercase tracking-widest" style={OUTFIT}>Rank</span>
709
- <div className="flex items-center gap-1">
717
+ <div className="flex items-center gap-1 justify-center">
718
+ <PointsIcon size={9} />
719
+ <span className="text-[9px] font-bold text-white/50 uppercase tracking-widest" style={OUTFIT}>Points</span>
720
+ </div>
721
+ <div className="flex items-center gap-1 justify-end">
710
722
  <Image src="/icons/ic_usdc_hd.png" alt="USDC" width={11} height={11} className="rounded-full" />
711
723
  <span className="text-[9px] font-bold text-white/50 uppercase tracking-widest" style={OUTFIT}>Reward</span>
712
724
  </div>
@@ -718,7 +730,7 @@ const WinSlide = ({ config, onComplete }: SlideProps) => {
718
730
  initial={{ opacity: 0, x: -8 }}
719
731
  animate={{ opacity: 1, x: 0 }}
720
732
  transition={{ delay: 1.6 + idx * 0.06, duration: 0.2 }}
721
- className="flex items-center justify-between px-3 py-1.5"
733
+ className="grid grid-cols-3 items-center px-3 py-1.5"
722
734
  style={{
723
735
  borderBottom: idx < FREE_PAYOUTS.length - 1 ? "1px solid rgba(255,255,255,0.04)" : "none",
724
736
  background: idx === 0 ? "rgba(255,215,0,0.04)" : idx < 3 ? "rgba(255,255,255,0.015)" : "transparent",
@@ -738,8 +750,14 @@ const WinSlide = ({ config, onComplete }: SlideProps) => {
738
750
  )}
739
751
  </div>
740
752
  <span
741
- className="text-[11px] font-bold"
742
- style={{ ...OUTFIT, color: idx === 0 ? "#FFD700" : idx < 3 ? "rgba(255,255,255,0.85)" : "rgba(255,255,255,0.6)" }}
753
+ className="text-[10px] font-semibold text-center"
754
+ style={{ ...OUTFIT, color: idx === 0 ? "#22E3E8" : idx < 3 ? "rgba(255,255,255,0.75)" : "rgba(255,255,255,0.5)" }}
755
+ >
756
+ {row.points.toLocaleString()}
757
+ </span>
758
+ <span
759
+ className="text-[11px] font-bold text-right select-none"
760
+ style={{ ...OUTFIT, color: idx === 0 ? "#FFD700" : idx < 3 ? "rgba(255,255,255,0.85)" : "rgba(255,255,255,0.6)", filter: "blur(5px)" }}
743
761
  >
744
762
  ${row.usdc.toFixed(2)}
745
763
  </span>