-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
68 lines (64 loc) · 3.25 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
<!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">
<title>Matching Game - Dev.by Lucas Oliveira</title>
<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=Saira:wght@400;500;600&family=Titan+One&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="./assets/css/reset.css">
<link rel="stylesheet" href="./assets/css/styles.css">
</head>
<body>
<header>
<h1 class="logo">Matching Game</h1>
<fieldset>
<legend>Difficult:</legend>
<label for="easy"><input type="radio" id="easy" name="difficult" checked>Shih-Tzu</label>
<label for="medium"><input type="radio" id="medium" name="difficult">Beagle</label>
<label for="hard"><input type="radio" id="hard" name="difficult">Boxer</label>
</fieldset>
</header>
<section class="comands">
<button type="button" class="start">Start</button>
<p class="game-infos">Moves: <span class="moves"></span></p>
<!-- <p class="game-infos">Time: <span class="time"></span></p> -->
</section>
<main>
<section class="rules">
<h2 class="rules-title">Rules</h2>
<ul class="rules-content">
<li>All the cards are mixed up and laid in cols and rows, face down on the table.</li>
<li>The player chooses, and turns over two cards:</li>
<li>✖ If the cards do not match (it is not a pair), they are turned back over. </li>
<li>✔ If the two cards match, <strong>it is a pair!</strong></li>
<li>When the player found all the pairs, the game is over. </li>
</ul>
<h3 class="rules-difficult">Difficult</h3>
<ul class="rules-content">
<li><strong>Shih-Tzu:</strong> Easy mode, the player has to find 6 pairs.</li>
<li><strong>Beagle:</strong> Medium mode, the player has to find 10 pairs.</li>
<li><strong>Boxer:</strong> Hard mode, the player has to find 16 pairs.</li>
</ul>
<p>📌 For a better experience, using mobile screens it's recommended to play Shih-Tzu Mode. For screens between 768 and 1024px the Beagle mode runs well, as for the Boxer mode, screens above 1024px are recommended</p>
</section>
<section class="game hide">
<h2 class="game-title">Find the matches!</h2>
<div class="cards">
</div>
</section>
<section class="finish hide">
<p>Congrats!!</p>
<p>You matched all cards in <span class="num-moves"></span> moves.</p>
<button class="play-again">Play again</button>
</section>
</main>
<footer>
<p>Developed by Lucas Oliveira</p>
</footer>
<script src="./assets/js/main.js" type="module"></script>
</body>
</html>