-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
174 lines (144 loc) · 8.38 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
<!DOCTYPE html>
<html lang="en">
<head>
<!-- SEO -->
<meta name="description" content="Play Simon Says, a classic memory game in which you have to repeat a sequence of colors.">
<meta name="keywords" content="Simon Says, memory game, colors">
<meta name="author" content="Alexander Pérez">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Simon Says! 🗣️</title>
<!-- open graph -->
<meta property="og:type" content="website">
<meta property="og:title" content="Simon Says! 🗣️">
<meta property="og:url" content="https://th3alexdev.github.io/simonsaysapp/">
<meta property="og:image" content="https://th3alexdev.github.io/simonsaysapp/assets/img/simonsays.png">
<meta property="og:description" content="Play Simon Says, a classic memory game in which you have to repeat a sequence of colors.">
<!-- Twitter Meta Tags -->
<meta name="twitter:card" content="summary_large_image">
<meta property="twitter:domain" content="th3alexdev.github.io">
<meta property="twitter:url" content="https://th3alexdev.github.io/simonsaysapp/#">
<meta name="twitter:title" content="Simon Says! 🗣️">
<meta name="twitter:description" content="Play Simon Says, a classic memory game in which you have to repeat a sequence of colors.">
<meta name="twitter:image" content="https://th3alexdev.github.io/simonsaysapp/assets/img/simonsays.png">
<!-- favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="assets/favicons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="assets/favicons/favicon-16x16.png">
<link rel="manifest" href="assets/favicons/site.webmanifest">
<link rel="mask-icon" href="assets/favicons/safari-pinned-tab.svg" color="#5bbad5">
<link rel="shortcut icon" href="assets/favicons/favicon.ico">
<meta name="msapplication-TileColor" content="#2b5797">
<meta name="msapplication-config" content="assets/favicons/browserconfig.xml">
<meta name="theme-color" content="#002443">
<!-- fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@500&family=Space+Grotesk:wght@500;700&display=swap" rel="stylesheet">
<!-- Howler.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/howler/2.2.3/howler.min.js" integrity="sha512-6+YN/9o9BWrk6wSfGxQGpt3EUK6XeHi6yeHV+TYD2GR0Sj/cggRpXr1BrAQf0as6XslxomMUxXp2vIl+fv0QRA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<!-- SweetAlert2 -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- css -->
<link rel="stylesheet" href="css/styles.min.css">
<!-- <link rel="stylesheet" href="src/css/styles.css"> -->
</head>
<body>
<main id="main" class="main">
<!-- home -->
<section id="home" class="home principal ">
<div class="home-container">
<h1 class="title title--principal hiddenElement">Welcome to
<div class="colorfull-content">
<span>S</span><span>i</span><span>m</span><span>o</span><span>n</span><span>S</span><span>a</span><span>y</span><span>s</span>
</div>!
The game where you have to follow Simon's instructions or you will lose.</h1>
<h2 class="title title--secondary">Are you ready to test your memory and speed? Have fun with Simon!</h2>
<a id="btnStart" href="#game" class="btn btn-principal btn--principal ">
<span class="btn__text">Start</span>
<svg viewBox="-5 -5 110 110" preserveAspectRatio="none" aria-hidden="true">
<path d="M0,0 C0,0 100,0 100,0 C100,0 100,100 100,100 C100,100 0,100 0,100 C0,100 0,0 0,0"/>
</svg>
</a>
</div>
</section>
<!-- game -->
<section id="game" class="game principal hidden"> <!-- ! -->
<div class="score">
<div class="score-panel-container">
<!-- <div class="score-panel-layout">
<div class="score-panel score-panel--label">
<p class="text text--score-panel-label">Level: </p>
</div>
<div class="score-panel score-panel--value ">
<p class="text">#</p>
</div>
</div> -->
<div class="score-panel-layout">
<div class="score-panel score-panel--label">
<p class="text text--score-panel-label">High Score: </p>
</div>
<div class="score-panel score-panel--value">
<p class="text" id="highScore">0</p>
</div>
</div>
</div>
</div>
<div class="game-container">
<div class="bg-btn-panel" data-id="1"></div>
<div class="bg-btn-panel" data-id="2"></div>
<div class="bg-btn-panel" data-id="3"></div>
<div class="bg-btn-panel" data-id="4"></div>
<div id="simonPanel" class="simon-btns-panel">
<div id="statusPanel" class="status-panel">
<p id="textStatus" class="text "></p>
</div>
<div class="divider-v"></div>
<div class="divider-h"></div>
<div class="simon-score-panel">
<p id="score">0</p>
</div>
<label class="simon-btn-label" for="green-btn">
<button class="simon-btn green" data-color="green" data-id="1"></button>
</label>
<label class="simon-btn-label" for="red">
<button class="simon-btn red" data-color="red" data-id="2"></button>
</label>
<label class="simon-btn-label" for="yellow">
<button class="simon-btn yellow" data-color="yellow" data-id="3"></button>
</label>
<label class="simon-btn-label" for="blue">
<button class="simon-btn blue" data-color="blue" data-id="4"></button>
</label>
<div id="resetPanel" class="reset-panel ">
<div class="">
<a id="btnReset" href="#" class="btn btn-principal btn-principal--game ">
<!-- <span class="btn__text">Reset</span> -->
<img src="assets/icons/reset.svg" alt="Reset game button" class="icon icon--reset">
<svg viewBox="-5 -5 110 110" preserveAspectRatio="none" aria-hidden="true">
<path d="M0,0 C0,0 100,0 100,0 C100,0 100,100 100,100 C100,100 0,100 0,100 C0,100 0,0 0,0"/>
</svg>
</a>
</div>
</div>
</div>
</div>
</section>
<div class="dev">
<div class="dev-pic-container">
<img src="https://avatars.githubusercontent.com/u/55007470?v=4" alt="Alex Github profile image" class="img img--dev">
</div>
<div class="dev-info-container">
<div class="dev-info"><p class="text text--dev-regular">DEV</p></div>
<div class="dev-user"><p class="text text--dev-user"><a target="_blank" href="https://github.com/th3alexdev">@th3alexdev</a></p></div>
</div>
</div>
<img src="assets/svg/game_bottom-left.svg" alt="simon says game png image" class="img-game img-game--bottom-left">
<img src="assets/svg/game_bottom-right.svg" alt="simon says game png image" class="img-game img-game--bottom-right">
</main>
<!-- js -->
<script src="js/index.js"></script>
<script src="js/simon.js"></script>
</body>
</html>