-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
75 lines (62 loc) · 2.24 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Cubix 2048</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="scene">
<div class="grid">
<div class="borders">
<div class="border top"></div>
<div class="border right"></div>
<div class="border left"></div>
<div class="border bottom"></div>
</div>
<div class="cube val-2" style="
transform: translate3d(
calc(var(--cube-size) * 0),
calc(calc(2 * var(--cube-size)) - calc(var(--cube-size) * 0)),
calc(var(--cube-size) - var(--cube-size) * 2)
)
">
<div class="face front">2</div>
<div class="face top">2</div>
<div class="face right">2</div>
<div class="face left">2</div>
<div class="face bottom">2</div>
<div class="face back">2</div>
</div>
<div class="cube val-2048" style="
transform: translate3d(
calc(var(--cube-size) * 1),
calc(calc(2 * var(--cube-size)) - calc(var(--cube-size) * 1)),
calc(var(--cube-size) - var(--cube-size) * 2)
)
">
<div class="face front">2048</div>
<div class="face top">2048</div>
<div class="face right">2048</div>
<div class="face left">2048</div>
<div class="face bottom">2048</div>
<div class="face back">2048</div>
</div>
<div class="cube val-2" style="
transform: translate3d(
calc(var(--cube-size) * 2),
calc(calc(2 * var(--cube-size)) - calc(var(--cube-size) * 2)),
calc(var(--cube-size) - var(--cube-size) * 2)
)
">
<div class="face front">2</div>
<div class="face top">2</div>
<div class="face right">2</div>
<div class="face left">2</div>
<div class="face bottom">2</div>
<div class="face back">2</div>
</div>
</div>
</div>
</body>
</html>