tfrere HF Staff commited on
Commit
a290185
·
1 Parent(s): d5574ef
client/src/components/UniverseSlotMachine.jsx CHANGED
@@ -96,7 +96,6 @@ const SlotReel = ({ words, isActive, finalValue, onComplete, delay = 0 }) => {
96
  height: isMobile ? "60px" : "80px",
97
  overflow: "hidden",
98
  position: "relative",
99
- backgroundColor: "#1a1a1a",
100
  borderRadius: 2,
101
  border: "1px solid rgba(255,255,255,0.1)",
102
  "&::before, &::after": {
@@ -111,11 +110,12 @@ const SlotReel = ({ words, isActive, finalValue, onComplete, delay = 0 }) => {
111
  "&::before": {
112
  top: 0,
113
  background:
114
- "linear-gradient(to bottom, #1a1a1a 0%, transparent 100%)",
115
  },
116
  "&::after": {
117
  bottom: 0,
118
- background: "linear-gradient(to top, #1a1a1a 0%, transparent 100%)",
 
119
  },
120
  }}
121
  >
@@ -214,7 +214,6 @@ export const UniverseSlotMachine = ({
214
  flexDirection: "column",
215
  justifyContent: "center",
216
  alignItems: "center",
217
- background: "#1a1a1a",
218
  p: isMobile ? 2 : 3,
219
  }}
220
  >
 
96
  height: isMobile ? "60px" : "80px",
97
  overflow: "hidden",
98
  position: "relative",
 
99
  borderRadius: 2,
100
  border: "1px solid rgba(255,255,255,0.1)",
101
  "&::before, &::after": {
 
110
  "&::before": {
111
  top: 0,
112
  background:
113
+ "linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%)",
114
  },
115
  "&::after": {
116
  bottom: 0,
117
+ background:
118
+ "linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%)",
119
  },
120
  }}
121
  >
 
214
  flexDirection: "column",
215
  justifyContent: "center",
216
  alignItems: "center",
 
217
  p: isMobile ? 2 : 3,
218
  }}
219
  >
client/src/pages/Game.jsx CHANGED
@@ -349,7 +349,6 @@ function GameContent() {
349
  alignItems: "center",
350
  justifyContent: "center",
351
  position: "relative",
352
- backgroundColor: "background.default",
353
  }}
354
  >
355
  <LinearProgress
@@ -368,7 +367,7 @@ function GameContent() {
368
  // Slot machine : dès que l'univers est disponible
369
  if (gameUniverse && slotMachineState.style && isInitialLoading) {
370
  return (
371
- <Box sx={{ width: "100%", height: "100vh", backgroundColor: "#1a1a1a" }}>
372
  <UniverseSlotMachine
373
  style={slotMachineState.style}
374
  genre={slotMachineState.genre}
@@ -399,7 +398,6 @@ function GameContent() {
399
  alignItems: "center",
400
  justifyContent: "center",
401
  position: "relative",
402
- backgroundColor: "background.default",
403
  }}
404
  >
405
  <LinearProgress
@@ -421,13 +419,12 @@ function GameContent() {
421
  animate={{ opacity: 1 }}
422
  exit={{ opacity: 0 }}
423
  transition={{ duration: 0.3, ease: "easeInOut" }}
424
- style={{ backgroundColor: "#121212", width: "100%" }}
425
  >
426
  <Box
427
  sx={{
428
  height: "100vh",
429
  width: "100vw",
430
- backgroundColor: "grey.900",
431
  position: "relative",
432
  overflow: "hidden",
433
  }}
@@ -440,7 +437,6 @@ function GameContent() {
440
  height: "100%",
441
  width: "100%",
442
  position: "relative",
443
- backgroundColor: "grey.900",
444
  }}
445
  >
446
  {error ? (
 
349
  alignItems: "center",
350
  justifyContent: "center",
351
  position: "relative",
 
352
  }}
353
  >
354
  <LinearProgress
 
367
  // Slot machine : dès que l'univers est disponible
368
  if (gameUniverse && slotMachineState.style && isInitialLoading) {
369
  return (
370
+ <Box sx={{ width: "100%", height: "100vh" }}>
371
  <UniverseSlotMachine
372
  style={slotMachineState.style}
373
  genre={slotMachineState.genre}
 
398
  alignItems: "center",
399
  justifyContent: "center",
400
  position: "relative",
 
401
  }}
402
  >
403
  <LinearProgress
 
419
  animate={{ opacity: 1 }}
420
  exit={{ opacity: 0 }}
421
  transition={{ duration: 0.3, ease: "easeInOut" }}
422
+ style={{ width: "100%" }}
423
  >
424
  <Box
425
  sx={{
426
  height: "100vh",
427
  width: "100vw",
 
428
  position: "relative",
429
  overflow: "hidden",
430
  }}
 
437
  height: "100%",
438
  width: "100%",
439
  position: "relative",
 
440
  }}
441
  >
442
  {error ? (
client/src/theme.js CHANGED
@@ -3,6 +3,10 @@ import { createTheme } from "@mui/material/styles";
3
  export const theme = createTheme({
4
  palette: {
5
  mode: "dark",
 
 
 
 
6
  },
7
  typography: {
8
  fontFamily: '"Action Man", "Roboto", "Helvetica", "Arial", sans-serif',
 
3
  export const theme = createTheme({
4
  palette: {
5
  mode: "dark",
6
+ background: {
7
+ default: "#121212",
8
+ paper: "#121212",
9
+ },
10
  },
11
  typography: {
12
  fontFamily: '"Action Man", "Roboto", "Helvetica", "Arial", sans-serif',