@devrongx/games 0.3.1 → 0.3.3

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.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "Game UI components for sports prediction markets",
5
5
  "license": "MIT",
6
6
  "main": "./src/index.ts",
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { useRef, useMemo, useEffect } from "react";
5
5
  import { motion } from "framer-motion";
6
- import { Calendar, MapPin, Loader2, Trophy, Zap } from "lucide-react";
6
+ import { Calendar, MapPin, Loader2, Trophy, Zap, Target, Users } from "lucide-react";
7
7
  import { useTDMatches } from "./useTDMatches";
8
8
  import type { ITDMatch } from "./types";
9
9
 
@@ -218,6 +218,38 @@ function MatchCard({ match }: { match: ITDMatch }) {
218
218
  ))}
219
219
  </div>
220
220
  )}
221
+
222
+ {/* Game modes */}
223
+ {!isCompleted && (
224
+ <div className="flex flex-col gap-1 mt-1 pt-1.5" style={{ borderTop: "1px solid rgba(255,255,255,0.06)" }}>
225
+ <div
226
+ className="flex items-center gap-1.5 px-2 py-1 rounded-lg"
227
+ style={{ background: "rgba(34,227,232,0.06)" }}
228
+ >
229
+ <Target size={9} style={{ color: "#22E3E8" }} />
230
+ <span className="text-[8px] barlowcondensedBold tracking-wide text-white flex-1">
231
+ Pre-Match Bets
232
+ </span>
233
+ <span className="flex items-center gap-0.5">
234
+ <svg width="8" height="8" viewBox="0 0 32 32" fill="none"><circle cx="16" cy="16" r="16" fill="#2775CA"/><path d="M20.5 18.2c0-2.1-1.3-2.8-3.8-3.1-1.8-.3-2.2-.7-2.2-1.5s.7-1.3 1.8-1.3c1 0 1.6.4 1.9 1.1.1.1.2.2.3.2h.7c.2 0 .3-.1.3-.3-.3-1-1-1.8-2.1-2v-1.2c0-.2-.1-.3-.3-.3h-.6c-.2 0-.3.1-.3.3v1.2c-1.5.2-2.5 1.2-2.5 2.4 0 2 1.2 2.7 3.7 3 1.7.3 2.3.8 2.3 1.6 0 1-.8 1.6-2 1.6-1.5 0-2-.6-2.2-1.4 0-.1-.2-.2-.3-.2h-.7c-.2 0-.3.1-.3.3.3 1.2 1 2 2.5 2.3v1.2c0 .2.1.3.3.3h.6c.2 0 .3-.1.3-.3v-1.2c1.6-.2 2.6-1.3 2.6-2.6z" fill="#fff"/></svg>
235
+ <span className="text-[7px] text-white" style={OUTFIT}>0.4</span>
236
+ </span>
237
+ </div>
238
+ <div
239
+ className="flex items-center gap-1.5 px-2 py-1 rounded-lg"
240
+ style={{ background: "rgba(153,69,255,0.06)" }}
241
+ >
242
+ <Users size={9} style={{ color: "#9945FF" }} />
243
+ <span className="text-[8px] barlowcondensedBold tracking-wide text-white flex-1">
244
+ Fantasy 11
245
+ </span>
246
+ <span className="flex items-center gap-0.5">
247
+ <svg width="8" height="8" viewBox="0 0 32 32" fill="none"><circle cx="16" cy="16" r="16" fill="#2775CA"/><path d="M20.5 18.2c0-2.1-1.3-2.8-3.8-3.1-1.8-.3-2.2-.7-2.2-1.5s.7-1.3 1.8-1.3c1 0 1.6.4 1.9 1.1.1.1.2.2.3.2h.7c.2 0 .3-.1.3-.3-.3-1-1-1.8-2.1-2v-1.2c0-.2-.1-.3-.3-.3h-.6c-.2 0-.3.1-.3.3v1.2c-1.5.2-2.5 1.2-2.5 2.4 0 2 1.2 2.7 3.7 3 1.7.3 2.3.8 2.3 1.6 0 1-.8 1.6-2 1.6-1.5 0-2-.6-2.2-1.4 0-.1-.2-.2-.3-.2h-.7c-.2 0-.3.1-.3.3.3 1.2 1 2 2.5 2.3v1.2c0 .2.1.3.3.3h.6c.2 0 .3-.1.3-.3v-1.2c1.6-.2 2.6-1.3 2.6-2.6z" fill="#fff"/></svg>
248
+ <span className="text-[7px] text-white" style={OUTFIT}>0.4</span>
249
+ </span>
250
+ </div>
251
+ </div>
252
+ )}
221
253
  </div>
222
254
  </div>
223
255
  );