-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
105 lines (95 loc) · 2.46 KB
/
Copy pathindex.html
File metadata and controls
105 lines (95 loc) · 2.46 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ball Maze</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: #000;
overflow: hidden;
}
canvas {
display: block;
}
.hud-panel {
position: fixed;
top: 13px;
border-radius: 9px;
border: 1px solid rgba(255, 246, 234, 0.16);
background: linear-gradient(
155deg,
rgba(24, 18, 14, 0.42) 0%,
rgba(12, 10, 8, 0.28) 100%
);
box-shadow:
0 8px 24px rgba(0, 0, 0, 0.22),
inset 0 1px 0 rgba(255, 246, 234, 0.1);
backdrop-filter: blur(14px) saturate(120%);
-webkit-backdrop-filter: blur(14px) saturate(120%);
pointer-events: none;
user-select: none;
}
#level {
left: 13px;
display: flex;
flex-direction: column;
gap: 1px;
min-width: 64px;
padding: 7px 12px 6px 10px;
border-left: 2px solid rgba(184, 135, 74, 0.72);
}
#level .level-label {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 9px;
font-weight: 600;
line-height: 1;
letter-spacing: 0.17em;
text-transform: uppercase;
color: rgba(255, 246, 234, 0.58);
}
#level-number {
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
font-size: 20px;
font-weight: 700;
line-height: 1;
font-variant-numeric: tabular-nums;
color: rgba(255, 246, 234, 0.96);
text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
#minimap {
right: 13px;
padding: 4px;
}
#minimap-canvas {
display: block;
width: 84px;
height: 84px;
}
#victory-flash {
position: fixed;
inset: 0;
background: #fff;
opacity: 1;
pointer-events: none;
z-index: 100;
}
</style>
</head>
<body>
<div id="level" class="hud-panel">
<span class="level-label">Level</span>
<span id="level-number">1</span>
</div>
<div id="minimap" class="hud-panel">
<canvas id="minimap-canvas"></canvas>
</div>
<div id="victory-flash"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>