-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (81 loc) · 2.12 KB
/
Copy pathindex.html
File metadata and controls
89 lines (81 loc) · 2.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>20 Questions</title>
<link href="style.css" rel="stylesheet" type="text/css">
<style>
/* Additional styles for the menu */
body {
margin: 0;
font-family: Arial, sans-serif;
background-color: #333333;
color: white;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
overflow: hidden;
}
#menu-container {
text-align: center;
background-color: rgba(0, 0, 0, 0.7);
padding: 20px;
border-radius: 10px;
width: 80%;
max-width: 600px;
}
#menu-title {
font-size: 2em;
margin-bottom: 20px;
}
#grandad-image {
width: 62px;
height: auto;
margin-bottom: 10px;
border-radius: 10px;
}
#menu-description {
font-size: 1.2em;
margin-bottom: 20px;
}
.menu-button {
padding: 10px 20px;
font-size: 1.2em;
color: white;
background-color: #444444;
border: none;
border-radius: 5px;
cursor: pointer;
}
.menu-button:hover {
background-color: #666666;
}
#guess-info img {
vertical-align: middle;
width: 24px;
height: 24px;
filter: invert(1);
}
</style>
</head>
<body>
<div id="menu-container">
<h1 id="menu-title">20 Questions!</h1>
<img id="grandad-image" src="sprites/grandad.png" alt="Grandad">
<p id="menu-description">
Grandad's cake has been eaten! All that remains are crumbs. Help Grandad find who ate the cake by asking his two grandchildren, you only have 20 questions!
</p>
<p id="guess-info">
Press <img src="sprites/exclamationmarkicon.png" alt="Exclamation Icon"> if you want to make a guess early!
</p>
<button class="menu-button" onclick="startGame()">Play</button>
</div>
<script>
function startGame() {
window.location.href = "game.html";
}
</script>
</body>
</html>