-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathIndex.html
More file actions
71 lines (64 loc) · 2.41 KB
/
Index.html
File metadata and controls
71 lines (64 loc) · 2.41 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Snake Evolution</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/svg+xml" href="https://img.icons8.com/fluency/48/snake.png">
<script src="https://www.gstatic.com/firebasejs/9.6.10/firebase-app-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.6.10/firebase-auth-compat.js"></script>
<script src="https://www.gstatic.com/firebasejs/9.6.10/firebase-firestore-compat.js"></script>
</head>
<body>
<nav id="navbar">
<span id="logo"><img src="https://img.icons8.com/fluency/32/snake.png" alt="Logo" style="vertical-align:middle;">
Snake Evolution</span>
<div id="profile-block">
<button id="profile-toggle" style="display:none">
<img id="profile-pic" src="https://i.imgur.com/LN8kHtP.png" alt="profile">
<span id="profile-name"></span>
</button>
<button id="login-btn" class="auth-btn">
<img src="https://img.icons8.com/color/32/000000/google-logo.png" />
Login
</button>
<div id="profile-menu">
<div id="profile-details">
<img id="profile-pic-menu" src="https://i.imgur.com/LN8kHtP.png" alt="profile">
<div>
<div id="menu-username"></div>
<div id="menu-email"></div>
</div>
</div>
<button id="showLeaderboardBtn" class="menu-btn">Leaderboard</button>
<button id="logoutBtn" class="menu-btn">Logout</button>
</div>
</div>
</nav>
<main>
<section id="game-area">
<canvas id="gameBoard" width="400" height="400"></canvas>
<div id="game-stats">
<span id="scoreBox">Score: <span id="score">0</span></span>
<span id="bestScoreBox"> </span>
<span id="evoBox"></span>
</div>
<div class="button-row">
<button id="startBtn" class="game-btn">Start</button>
<button id="pauseBtn" class="game-btn" disabled>Pause</button>
<button id="resetBtn" class="game-btn" disabled>Reset</button>
</div>
<div id="guest-message"></div>
<section id="leaderboard-section" style="display:none;">
<h3>Leaderboard</h3>
<div id="leaderboard"></div>
</section>
</section>
</main>
<footer>
<span>Made with 🐍 | 2025</span>
</footer>
<script src="script.js"></script>
</body>
</html>