-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
154 lines (146 loc) · 6.42 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Circle Blitz - The Ultimate Number Game</title>
<link rel="stylesheet" href="styles.css">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet">
</head>
<body>
<div id="app">
<nav id="main-nav">
<div class="logo">Circle Blitz</div>
<div class="nav-buttons">
<button id="homeButton" class="nav-button"><i class="fas fa-home"></i> Home</button>
<button id="profileButton" class="nav-button"><i class="fas fa-user"></i> Profile</button>
<button id="leaderboardButton" class="nav-button"><i class="fas fa-trophy"></i> Leaderboard</button>
<button id="logoutButton" class="nav-button"><i class="fas fa-sign-out-alt"></i> Logout</button>
<div class="dark-mode-toggle">
<input type="checkbox" id="darkModeToggle" class="dark-mode-checkbox">
<label for="darkModeToggle" class="dark-mode-label">
<i class="fas fa-sun"></i>
<i class="fas fa-moon"></i>
<div class="dark-mode-ball"></div>
</label>
</div>
</div>
</nav>
<div id="homepage" class="page">
<h1>Welcome to Circle-Blitz!</h1>
<p>Test your speed and accuracy in this thrilling number matching game!</p>
<button id="playButton" class="big-button">Play Now</button>
<div id="login-register">
<button id="loginButton" class="medium-button">Login</button>
<button id="registerButton" class="medium-button">Register</button>
</div>
</div>
<div id="loginPage" class="page">
<h2>Login</h2>
<form id="loginForm">
<input type="text" id="loginUsername" placeholder="Username" required>
<input type="password" id="loginPassword" placeholder="Password" required>
<button type="submit" class="medium-button">Login</button>
</form>
</div>
<div id="registerPage" class="page">
<h2>Register</h2>
<form id="registerForm">
<input type="text" id="registerUsername" placeholder="Username" required>
<input type="password" id="registerPassword" placeholder="Password" required>
<input type="password" id="confirmPassword" placeholder="Confirm Password" required>
<button type="submit" class="medium-button">Register</button>
</form>
</div>
<div id="gamePage" class="page">
<div id="gameInfo">
<div class="info-box">
<h3>Target:</h3>
<div id="target" class="value-box"></div>
</div>
<div class="info-box">
<h3>Time:</h3>
<div id="runtimer" class="value-box"></div>
</div>
<div class="info-box">
<h3>Score:</h3>
<div id="scorer" class="value-box">0</div>
</div>
</div>
<div id="B2" class="game-board"></div>
<button id="pauseButton" class="medium-button">Pause</button>
</div>
<div id="gameOverPage" class="page">
<div class="game-over-content">
<h2>Game Over</h2>
<div class="score-container">
<div class="score-item">
<i class="fas fa-star"></i>
<p>Your score: <span id="finalScore"></span></p>
</div>
<div class="score-item">
<i class="fas fa-level-up-alt"></i>
<p>Level reached: <span id="finalLevel"></span></p>
</div>
</div>
<button id="playAgainButton" class="big-button">Play Again</button>
</div>
</div>
<div id="profilePage" class="page">
<div class="profile-container">
<div class="profile-header">
<i class="fas fa-user-circle"></i>
<h2 id="profileUsername"></h2>
</div>
<div class="profile-stats">
<div class="stat-card">
<i class="fas fa-gamepad"></i>
<p>Games Played</p>
<span id="gamesPlayed"></span>
</div>
<div class="stat-card">
<i class="fas fa-trophy"></i>
<p>Highest Score</p>
<span id="highestScore"></span>
</div>
<div class="stat-card">
<i class="fas fa-chart-line"></i>
<p>Average Score</p>
<span id="averageScore"></span>
</div>
<div class="stat-card">
<i class="fas fa-level-up-alt"></i>
<p>Highest Level</p>
<span id="highestLevel"></span>
</div>
</div>
<div class="recent-scores">
<h3>Recent Scores</h3>
<ul id="recentScores">
<li><span class="score-value">0</span></li>
<li><span class="score-value">0</span></li>
<li><span class="score-value">0</span></li>
<li><span class="score-value">0</span></li>
<li><span class="score-value">0</span></li>
</ul>
</div>
</div>
</div>
<div id="leaderboardPage" class="page">
<h2>Leaderboard</h2>
<table id="leaderboardTable">
<thead>
<tr>
<th>Rank</th>
<th>Username</th>
<th>Highest Score</th>
<th>Highest Level</th>
</tr>
</thead>
<tbody id="leaderboardBody"></tbody>
</table>
</div>
</div>
<script src="script.js"></script>
</body>
</html>