-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
212 lines (204 loc) · 6.31 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="icon"
type="image/png"
sizes="32x32"
href="images/favicon-32x32.png"
/>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link
href="https://fonts.googleapis.com/css2?family=Barlow+Semi+Condensed:wght@600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="css/style.css" />
<title>Rock, Paper, Scissors</title>
</head>
<body>
<header class="header">
<div class="header__logo-box">
<img
src="images/logo.svg"
alt="logo"
class="header__logo header__logo--classic"
/>
<img
src="images/logo-bonus.svg"
alt="logo"
class="header__logo header__logo--extended hidden"
/>
</div>
<div class="header__score-box">
<div class="header__score-text">score</div>
<div class="header__score">#</div>
</div>
</header>
<!-- modal -->
<div class="modal-container hide-modal">
<div class="modal__rules-box">
<h2 class="modal__heading">Rules</h2>
<img
src="images/icon-close.svg"
alt="icon-close"
class="modal__close"
/>
<div class="modal__rules-img">
<img
src="images/image-rules.svg"
alt="rules img"
class="modal__rules modal__rules--classic"
/>
<img
src="images/image-rules-bonus.svg"
alt="rules img"
class="modal__rules modal__rules--extended hidden"
/>
</div>
</div>
<div class="modal__level-box">
<div class="modal__level modal__level--classic modal__level--active">
Classic
</div>
<div class="modal__level modal__level--extended">Extended</div>
</div>
</div>
<main class="main">
<!-- Classic -- Rock paper scissors -->
<div class="phase phase--classic">
<div class="phase__play">
<!-- Player's choice -->
<div class="phase__bg phase__bg--classic">
<img
src="images/bg-triangle.svg"
alt="triangle"
class="phase__bg-img"
/>
</div>
<div class="icon icon--rock">
<img
src="images/icon-rock.svg"
alt="rock"
class="icon__img icon__img--rock"
/>
</div>
<div class="icon icon--paper">
<img
src="images/icon-paper.svg"
alt="paper"
class="icon__img icon__img--paper"
/>
</div>
<div class="icon icon--scissors">
<img
src="images/icon-scissors.svg"
alt="scissors"
class="icon__img icon__img--scissors"
/>
</div>
</div>
</div>
<!-- Extended -- Rock paper scissors lizard spock -->
<div class="phase phase--extended hidden">
<div class="phase__play">
<div class="phase__bg phase__bg--extended">
<img
src="images/bg-pentagon.svg"
alt="Pentagon"
class="phase__bg-img"
/>
</div>
<div class="icon icon--extended icon--rock">
<img
src="images/icon-rock.svg"
alt="rock"
class="icon__img icon__img--rock"
/>
</div>
<div class="icon icon--extended icon--paper">
<img
src="images/icon-paper.svg"
alt="paper"
class="icon__img icon__img--paper"
/>
</div>
<div class="icon icon--extended icon--scissors">
<img
src="images/icon-scissors.svg"
alt="scissors"
class="icon__img icon__img--scissors"
/>
</div>
<div class="icon icon--extended icon--lizard">
<img
src="images/icon-lizard.svg"
alt="lizard"
class="icon__img icon__img--lizard"
/>
</div>
<div class="icon icon--extended icon--spock">
<img
src="images/icon-spock.svg"
alt="spock"
class="icon__img icon__img--spock"
/>
</div>
</div>
</div>
<!-- Comparism phase -->
<div class="phase__comparism hidden">
<!-- Player pick -->
<div class="phase__pick phase__pick--player">
<p class="phase__pick-text">you picked</p>
<div class="phase__icon-box">
<div class="icon icon--large">
<img alt="rock" class="icon__img" />
</div>
<div class="icon__winner hidden">
<span></span>
<span></span>
<span></span>
</div>
</div>
</div>
<!-- Display winner or looser status -->
<div class="phase__status hidden">
<p class="phase__status-text">You lose</p>
<button class="btn btn--again">Play again</button>
</div>
<!-- House pick -->
<div class="phase__pick phase__pick--house">
<p class="phase__pick-text">The house picked</p>
<div class="phase__icon-box">
<div class="icon icon--large hidden">
<img alt="paper" class="icon__img icon__img--paper" />
</div>
<div class="icon__winner hidden">
<span></span>
<span></span>
<span></span>
</div>
<div class="icon__under"></div>
</div>
</div>
</div>
</main>
<!-- Options button -->
<div class="option-box">
<div class="option hidden">
<div class="option__item option__item--levels">level</div>
<div class="option__item option__item--rules">rules</div>
</div>
<button class="btn btn--option">Options</button>
</div>
<!-- <div class="attribution">
Challenge by
<a href="https://www.frontendmentor.io?ref=challenge" target="_blank"
>Frontend Mentor</a
>. Coded by <a href="#">thenaijagamer</a>.
</div> -->
<script src="script.js"></script>
</body>
</html>