tfrere commited on
Commit
650f767
·
1 Parent(s): 78b81a5
Files changed (1) hide show
  1. client/src/pages/Tutorial.jsx +67 -32
client/src/pages/Tutorial.jsx CHANGED
@@ -87,7 +87,7 @@ export function Tutorial() {
87
  for each playthrough.
88
  <br />
89
  <br />
90
- At each step you can decide to
91
  <br />
92
  <br />
93
  <Box
@@ -101,26 +101,44 @@ export function Tutorial() {
101
  >
102
  <Box
103
  sx={{
104
- border: "1px solid rgba(255,255,255,0.3)",
105
- borderRadius: "8px",
106
- p: 2,
107
  flex: 1,
108
  maxWidth: "200px",
109
- display: "flex",
110
- flexDirection: "column",
111
- alignItems: "center",
112
- gap: 1,
113
- backdropFilter: "blur(20px)",
114
- backgroundColor: "rgba(255,255,255,0.05)",
 
 
 
 
 
 
 
115
  }}
116
  >
117
- <MouseOutlinedIcon
118
- sx={{ fontSize: 40, color: "primary.main", mb: 1 }}
119
- />
120
- <Typography variant="subtitle1" sx={{ color: "primary.main" }}>
121
- Make a choice
122
- </Typography>
 
 
 
 
 
 
 
 
 
 
 
 
123
  </Box>
 
124
  <Typography
125
  variant="h6"
126
  sx={{
@@ -130,30 +148,47 @@ export function Tutorial() {
130
  >
131
  OR
132
  </Typography>
 
133
  <Box
134
  sx={{
135
- border: "1px solid rgba(255,255,255,0.3)",
136
- borderRadius: "8px",
137
- p: 2,
138
  flex: 1,
139
  maxWidth: "200px",
140
- display: "flex",
141
- flexDirection: "column",
142
- alignItems: "center",
143
- gap: 1,
144
- backdropFilter: "blur(20px)",
145
- backgroundColor: "rgba(255,255,255,0.05)",
 
 
 
 
 
 
 
146
  }}
147
  >
148
- <CreateOutlinedIcon
149
- sx={{ fontSize: 40, color: "primary.main", mb: 1 }}
150
- />
151
- <Typography variant="subtitle1" sx={{ color: "primary.main" }}>
152
- Write your own
153
- </Typography>
 
 
 
 
 
 
 
 
 
 
 
 
154
  </Box>
155
  </Box>
156
- Until the end of the game
157
  </Typography>
158
 
159
  <Button
 
87
  for each playthrough.
88
  <br />
89
  <br />
90
+ At each step you can decide :
91
  <br />
92
  <br />
93
  <Box
 
101
  >
102
  <Box
103
  sx={{
104
+ position: "relative",
 
 
105
  flex: 1,
106
  maxWidth: "200px",
107
+ "&::before": {
108
+ content: '""',
109
+ position: "absolute",
110
+ top: 0,
111
+ left: 0,
112
+ right: 0,
113
+ bottom: 0,
114
+ background: "rgba(255, 255, 255, 0.1)",
115
+ backdropFilter: "blur(10px)",
116
+ WebkitBackdropFilter: "blur(10px)", // Pour Safari
117
+ borderRadius: "8px",
118
+ border: "1px solid rgba(255,255,255,0.3)",
119
+ },
120
  }}
121
  >
122
+ <Box
123
+ sx={{
124
+ position: "relative",
125
+ p: 2,
126
+ display: "flex",
127
+ flexDirection: "column",
128
+ alignItems: "center",
129
+ gap: 1,
130
+ zIndex: 1,
131
+ }}
132
+ >
133
+ <MouseOutlinedIcon
134
+ sx={{ fontSize: 40, color: "primary.main", mb: 1 }}
135
+ />
136
+ <Typography variant="subtitle1" sx={{ color: "primary.main" }}>
137
+ Make a choice
138
+ </Typography>
139
+ </Box>
140
  </Box>
141
+
142
  <Typography
143
  variant="h6"
144
  sx={{
 
148
  >
149
  OR
150
  </Typography>
151
+
152
  <Box
153
  sx={{
154
+ position: "relative",
 
 
155
  flex: 1,
156
  maxWidth: "200px",
157
+ "&::before": {
158
+ content: '""',
159
+ position: "absolute",
160
+ top: 0,
161
+ left: 0,
162
+ right: 0,
163
+ bottom: 0,
164
+ background: "rgba(255, 255, 255, 0.1)",
165
+ backdropFilter: "blur(10px)",
166
+ WebkitBackdropFilter: "blur(10px)", // Pour Safari
167
+ borderRadius: "8px",
168
+ border: "1px solid rgba(255,255,255,0.3)",
169
+ },
170
  }}
171
  >
172
+ <Box
173
+ sx={{
174
+ position: "relative",
175
+ p: 2,
176
+ display: "flex",
177
+ flexDirection: "column",
178
+ alignItems: "center",
179
+ gap: 1,
180
+ zIndex: 1,
181
+ }}
182
+ >
183
+ <CreateOutlinedIcon
184
+ sx={{ fontSize: 40, color: "primary.main", mb: 1 }}
185
+ />
186
+ <Typography variant="subtitle1" sx={{ color: "primary.main" }}>
187
+ Write your own
188
+ </Typography>
189
+ </Box>
190
  </Box>
191
  </Box>
 
192
  </Typography>
193
 
194
  <Button