-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
127 lines (120 loc) · 3.97 KB
/
index.html
File metadata and controls
127 lines (120 loc) · 3.97 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
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 name="viewport" content="width=device-width, initial-scale=1.0" />
<!--Style sheet-->
<link rel="preload" as="style" href="./assets/css/style.css">
<link rel="stylesheet" href="./assets/css/style.css" />
<!--Google fonts-->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<title>Remember Meee!</title>
</head>
<body>
<!--Pop up window, appears when the web page is loaded-->
<div id="pop-up-container">
<div id="pop-up">
<div id="pop-up-text">
<p>RULES</p>
<ul>
<li>To start the game the player must write their name</li>
<li>The cards will be turned four seconds before each game.</li>
<li>To win you must find all the pairs</li>
<li>You will lose if the timer ends.</li>
<li>It is not allowed to pick up more than two cards in a row.</li>
<li>If the player can't continue they can give up.</li>
</ul>
</div>
<div id="pop-up-input">
<label for="nameuser">Player Name</label>
<input type="text" id="nameuser" placeholder="Your name" required />
</div>
<div id="pop-up-button">
<button id="start-game">Let's Play</button>
</div>
</div>
</div>
<!--Pop up window appears when the player WIN the game-->
<div id="win-pop-up">
<div class="win-container">
<p>Congratulations you have found all the pairs</p>
<button id="new-game">New Game</button>
</div>
</div>
<!--Pop up window appears when the player LOSE the game-->
<div id="lose-pop-up">
<div class="lose-container">
<p class="loser-text">YOU LOSE</p>
<button id="try-again">Try Again</button>
</div>
</div>
<!--Game Title -->
<div id="header">
<h1>REMEMBER ME</h1>
</div>
<!--Game area, contains the cards with the icons-->
<div id="game-area">
<div class="card-area">
<div class="card-zone">
<div class="card back"><i class="fa-solid fa-car fa-xl"></i></div>
<div class="card front"><i class="fa-solid fa-bug"></i></div>
</div>
</div>
</div>
<!-- Timer -->
<div id="timer-container">
<span id="timer">30</span>
</div>
<!--restart button in case you can't win-->
<div class="restart-button">
<button id="restart-game">I Give Up!!</button>
</div>
<!--Information about the game, score, name player and defeats-->
<div id="info-game">
<div id="user-area">
<img
src="./assets/images/noUser.png"
id="player-image"
alt="user image"
/>
<p id="name-player">Name user</p>
</div>
<div class="score-area">
<p class="scores">victories: <span id="win">0</span></p>
<p class="scores">defeats: <span id="lose">0</span></p>
</div>
</div>
<!--Footer with Social media icons and Help button to explain the rules-->
<footer>
<div id="help-button">
<i
class="fa-solid fa-circle-question fa-2xl"
style="color: #e4740c"
></i>
<p id="help-text">You really think that you need help?</p>
</div>
<div>
<a
href="http://www.facebook.com"
target="_blank"
class="social-media-icon"
><i class="fa-brands fa-facebook fa-2xl" style="color: #50a1d3"></i
></a>
<a href="http://www.instagram.com" target="_blank">
<i
class="fa-brands fa-square-instagram fa-2xl"
style="color: #dc2e2e"
></i
></a>
</div>
</footer>
<!--Font awesome script -->
<script
src="https://kit.fontawesome.com/338579d9e0.js"
crossorigin="anonymous"
></script>
<!--Scrip game-->
<script src="./assets/js/script.js"></script>
</body>
</html>