ActivityTrackerWeb/templates/index2.html
2025-04-20 11:21:24 +02:00

41 lines
1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Activity Tracker</title>
<link rel="stylesheet" href="/static/style.css" />
</head>
<body>
<div class="container">
<header>
<h1>Che stai Affà</h1>
</header>
<section id="current">
<h2>{{ user }} Current Activity:</h2>
<div id="current-activity" class="highlight">Loading...</div>
</section>
<section id="select">
<h2>Select Existing Activity:</h2>
<ul id="activity-list"></ul>
</section>
<section id="new">
<h2>Or Add a New One:</h2>
<input type="text" id="new-activity" placeholder="Type activity..." />
<button onclick="addNewActivity()">Add & Select</button>
</section>
<footer>
<p>Connected via WebSocket | All changes sync in real-time</p>
</footer>
</div>
<script>
let user = "{{ user }}"
</script>
<script src="/static/script.js"></script>
</body>
</html>