-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
46 lines (45 loc) · 1.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Snake</title>
<style>
body {
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: black !important;
margin: 0;
}
#game-board {
background-color: #CCC;
width: 100vmin;
height: 100vmin;
display: grid;
grid-template-columns:repeat(24, 1fr);
grid-template-rows:repeat(24, 1fr);
border: solid rgb(221, 210, 1) 1px !important;
}
.snake {
border: 0.25vmin solid black;
background-color: hsl(200, 50%, 50%);
}
.food {
border: 0.25vmin solid black;
background-color: hsl(50,100%,50%);
}
.border{
border: solid 1px black !important;
}
</style>
<script src="scripts.js" defer type="module">
</script>
</head>
<body>
<div id="game-board">
</div>
</body>
</html>