50 lines
1.9 KiB
HTML
50 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Global Counter</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=Outfit:wght@300;500;700&display=swap" rel="stylesheet">
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<div class="app-container">
|
|
<header>
|
|
<div class="logo">✨ Global Counter</div>
|
|
<a href="/admin.html" class="admin-link">Admin Dashboard</a>
|
|
</header>
|
|
|
|
<main>
|
|
<div class="counter-cardglass">
|
|
<h1 id="counter-display">Loading...</h1>
|
|
<p class="label">Total Global Clicks</p>
|
|
</div>
|
|
|
|
<div class="controls-container">
|
|
<div class="input-group">
|
|
<label for="username">Your Name</label>
|
|
<input type="text" id="username" placeholder="Enter your name..." autocomplete="off">
|
|
</div>
|
|
|
|
<div class="input-group">
|
|
<label for="quote">Leave a Quote (Optional)</label>
|
|
<input type="text" id="quote" placeholder="Say something..." autocomplete="off">
|
|
</div>
|
|
|
|
<button id="increment-btn" class="primary-btn">
|
|
<span class="btn-text">+1 Increment</span>
|
|
<span class="btn-shine"></span>
|
|
</button>
|
|
<div id="error-message" class="error-toast hidden"></div>
|
|
<div id="timer-display" class="timer hidden">Wait 30s</div>
|
|
</div>
|
|
</main>
|
|
</div>
|
|
|
|
<script src="/socket.io/socket.io.js"></script>
|
|
<script src="client.js"></script>
|
|
</body>
|
|
</html>
|