tfrere commited on
Commit
fc42692
·
1 Parent(s): 2f568d8
.DS_Store CHANGED
Binary files a/.DS_Store and b/.DS_Store differ
 
client/src/pages/Home.jsx CHANGED
@@ -20,19 +20,51 @@ export function Home() {
20
  animate={{ opacity: 1 }}
21
  exit={{ opacity: 0 }}
22
  transition={{ duration: 0.3, ease: "easeInOut" }}
23
- style={{ backgroundColor: "#121212", width: "100%" }}
24
  >
25
  <Box
26
  sx={{
27
- minHeight: "100vh",
28
  display: "flex",
29
  flexDirection: "column",
30
  alignItems: "center",
31
  justifyContent: "center",
32
- gap: 4,
33
- bgcolor: "background.default",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }}
35
  >
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  <Box
37
  sx={{
38
  position: "relative",
@@ -43,7 +75,6 @@ export function Home() {
43
  justifyContent: "center",
44
  }}
45
  >
46
- {/* Container principal pour l'image et tout le contenu */}
47
  <Box
48
  sx={{
49
  position: "relative",
@@ -52,9 +83,7 @@ export function Home() {
52
  zIndex: 1,
53
  }}
54
  >
55
- {/* Pages d'arrière-plan */}
56
  <BookPages />
57
- {/* Image de couverture */}
58
  <Box
59
  sx={{
60
  position: "relative",
@@ -76,7 +105,6 @@ export function Home() {
76
  boxShadow: "0 0 20px rgba(0,0,0,0.2)",
77
  }}
78
  />
79
- {/* Effet de reliure */}
80
  <Box
81
  sx={{
82
  position: "absolute",
@@ -102,7 +130,6 @@ export function Home() {
102
  }}
103
  />
104
  </Box>
105
- {/* Overlay gradient */}
106
  <Box
107
  sx={{
108
  position: "absolute",
@@ -116,7 +143,6 @@ export function Home() {
116
  zIndex: 2,
117
  }}
118
  />
119
- {/* Contenu texte */}
120
  <Box
121
  sx={{
122
  position: "absolute",
@@ -210,6 +236,7 @@ export function Home() {
210
  size="large"
211
  onClick={handlePlay}
212
  sx={{
 
213
  fontSize: "1.2rem",
214
  padding: "12px 36px",
215
  }}
 
20
  animate={{ opacity: 1 }}
21
  exit={{ opacity: 0 }}
22
  transition={{ duration: 0.3, ease: "easeInOut" }}
23
+ style={{ width: "100%", height: "100vh", position: "relative" }}
24
  >
25
  <Box
26
  sx={{
 
27
  display: "flex",
28
  flexDirection: "column",
29
  alignItems: "center",
30
  justifyContent: "center",
31
+ minHeight: "100vh",
32
+ width: "100%",
33
+ position: "relative",
34
+ "&::before": {
35
+ content: '""',
36
+ position: "fixed",
37
+ top: 0,
38
+ left: 0,
39
+ right: 0,
40
+ bottom: 0,
41
+ backgroundImage: "url('/home.webp')",
42
+ backgroundSize: "cover",
43
+ backgroundPosition: "center",
44
+ backgroundRepeat: "no-repeat",
45
+ opacity: 0.3,
46
+ zIndex: 0,
47
+ },
48
  }}
49
  >
50
+ {/* <Typography
51
+ variant="h1"
52
+ component="h1"
53
+ sx={{
54
+ fontWeight: "bold",
55
+ marginBottom: 2,
56
+ color: "#f0e6d9",
57
+ textShadow: `
58
+ 0 -1px 1px rgba(0,0,0,0.3),
59
+ 0 1px 1px rgba(255,255,255,0.2)
60
+ `,
61
+ letterSpacing: "0.5px",
62
+ filter: "brightness(0.95)",
63
+ }}
64
+ >
65
+ Sarah's
66
+ <br /> Chronicles
67
+ </Typography> */}
68
  <Box
69
  sx={{
70
  position: "relative",
 
75
  justifyContent: "center",
76
  }}
77
  >
 
78
  <Box
79
  sx={{
80
  position: "relative",
 
83
  zIndex: 1,
84
  }}
85
  >
 
86
  <BookPages />
 
87
  <Box
88
  sx={{
89
  position: "relative",
 
105
  boxShadow: "0 0 20px rgba(0,0,0,0.2)",
106
  }}
107
  />
 
108
  <Box
109
  sx={{
110
  position: "absolute",
 
130
  }}
131
  />
132
  </Box>
 
133
  <Box
134
  sx={{
135
  position: "absolute",
 
143
  zIndex: 2,
144
  }}
145
  />
 
146
  <Box
147
  sx={{
148
  position: "absolute",
 
236
  size="large"
237
  onClick={handlePlay}
238
  sx={{
239
+ mt: 4,
240
  fontSize: "1.2rem",
241
  padding: "12px 36px",
242
  }}
client/src/pages/Tutorial.jsx CHANGED
@@ -264,11 +264,38 @@ export function Tutorial() {
264
  sx={{
265
  fontSize: "1.2rem",
266
  padding: "12px 24px",
 
 
267
  }}
268
  >
269
  Start the game
270
  </Button>
271
  </Box>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
  </motion.div>
273
  );
274
  }
 
264
  sx={{
265
  fontSize: "1.2rem",
266
  padding: "12px 24px",
267
+ zIndex: 10,
268
+ position: "relative",
269
  }}
270
  >
271
  Start the game
272
  </Button>
273
  </Box>
274
+ <Box
275
+ sx={{
276
+ display: "flex",
277
+ flexDirection: "column",
278
+ alignItems: "center",
279
+ justifyContent: "center",
280
+ minHeight: "100vh",
281
+ width: "100%",
282
+ position: "relative",
283
+ "&::before": {
284
+ content: '""',
285
+ position: "fixed",
286
+ top: 0,
287
+ left: 0,
288
+ right: 0,
289
+ bottom: 0,
290
+ backgroundImage: "url('/home.webp')",
291
+ backgroundSize: "cover",
292
+ backgroundPosition: "center",
293
+ backgroundRepeat: "no-repeat",
294
+ opacity: 0.3,
295
+ zIndex: 0,
296
+ },
297
+ }}
298
+ ></Box>
299
  </motion.div>
300
  );
301
  }