generated from Code-Institute-Org/gitpod-full-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
127 lines (103 loc) · 3.83 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
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Defines external resources used in the document -->
<link href="https://fonts.googleapis.com/css?family=Raleway%7CRighteous" rel="stylesheet">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="stylesheet" href="assets/css/style.css">
<!-- Defines the title of the document that appears in the browser's title bar -->
<title>Guess the Colors Game</title>
</head>
<body>
<!--Home Page section-->
<div class="wrapper">
<!-- Defines the heading, and a clickable button -->
<h1 class="heading">Guess the Color</h1>
<button aria-label="Game Instructions" id="instructions-button">Game Instructions</button>
<!-- Start of Game Instructions-->
<!-- Creates parameters game directions -->
<section class="game-instructions" id="instructions">
<h2>Are you psychic?</h2>
<h3>Can you tell the future?</h3>
<p>Simply type in the next color of the color square.</p>
<p>The colors to choose from are as follows:</p>
<ul>
<li>red</li>
<li>blue</li>
<li>green</li>
<li>yellow</li>
</ul>
<ul>
<li>purple</li>
<li>orange</li>
<li>pink</li>
<li>brown</li>
</ul>
<button aria-label="Return Home" id="home-btn">Play Game</button>
</section>
</div>
<!--Start of Game Area-->
<!-- Contains the entire interactive, playable game -->
<div id="game-container">
<div class="game-area">
<!-- The div tag displays the color to be guessed -->
<div id="color-box"></div>
<!-- Contains the input form for guessing colors -->
<div class="input-area">
<label for="color-guess">Enter a color:</label>
<input type="text" id="color-guess">
<button id="submit-button">Submit</button>
</div>
<!-- Displays the result of the user guess -->
<div id="result-message"></div>
<!--Start of score Area-->
<!-- This div tag displays the score -->
<div class="score-area">
<ul>
<li>red</li>
<li>blue</li>
<li>green</li>
<li>yellow</li>
</ul>
<ul>
<li>purple</li>
<li>orange</li>
<li>pink</li>
<li>brown</li>
</ul>
<p class="scores">Correct: <span id="correct">0</span></p>
<p class="scores">Incorrect: <span id="incorrect">0</span></p>
</div>
</div>
<!--Social Media links-->
<footer>
<ul class="social-networks">
<li>
<a href="https://facebook.com" target="_blank" rel="noopener"
aria-label="Visit our Facebook page (opens in a new tab)"><i class="fab fa-facebook"></i></a>
</li>
<li>
<a href="https://twitter.com" target="_blank" rel="noopener"
aria-label="Visit our Twitter page (opens in a new tab)"><i class="fab fa-twitter-square"></i></a>
</li>
<li>
<a href="https://youtube.com" target="_blank" rel="noopener"
aria-label="Visit our YouTube page (opens in a new tab)"><i class="fab fa-youtube-square"></i></a>
</li>
<li>
<a href="https://instagram.com" target="_blank" rel="noopener"
aria-label="Visit our Instagram page (opens in a new tab)"><i class="fab fa-instagram"></i></a>
</li>
</ul>
</footer>
</div>
<!--Font Awesome and late-load JS scripts-->
<script src="https://kit.fontawesome.com/c7dbda0798.js" crossorigin="anonymous"></script>
<script src="assets/js/script.js"></script>
</body>
</html>