-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
34 lines (34 loc) · 1.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tetris</title>
<link rel="stylesheet" href="style.css">
<script defer type="module" src="main.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;1,100;1,200;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet">
</head>
<body>
<header>TETRIS</header>
<main>
<canvas id="board-canvas"></canvas>
<aside>
<div id="score-panel">
<h2>Score: <span id="score">0</span></h2>
</div>
<div id="next-piece">
<h2>Next Piece</h2>
<canvas id="next-piece-canvas"></canvas>
</div>
<div id="game-status">
<h2 id="message"></h2>
</div>
<button id="start-button">Start Game</button>
</aside>
</main>
<footer>
</footer>
</body>
</html>