-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIndex.html
64 lines (56 loc) · 1.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Snake Game</title>
<style>
body {
height: 100vh;
width: 100vw;
display: flex;
justify-content: center;
align-items: center;
margin: 0;
background-color: black;
}
#game-board {
background-color: #E6F3ED;
width: 100vmin;
height: 100vmin;
display: grid;
grid-template-rows: repeat(21, 1fr);
grid-template-columns: repeat(21, 1fr);
}
.snake {
background-color: hsl(200, 100%, 50%);
border: .25vmin solid black;
}
.food {
background-color: hsl(50, 100%, 50%);
border: .25vmin solid black;
}
</style>
<script src="game.js" defer type="module"></script>
</head>
<body>
<div id="header">
<h1>Personal Portfolio Hub</h1>
</div>
<div id="sideMenu">
<p>
<button onclick="location.href='main_page.html'">main_page.html</button>
<button onclick="location.href='Academic_Projects.html'">Academic_Projects.html</button>
</p>
</p>
</div>
<div id = content >
<div id="game-board"></div>
</div>
<div id="footer">
Name: Hadiyah Khan
Email Address:Hadiyahkhan03@gmail.com
</div>
</body>
</html>