Create index.html
Browse files- index.html +52 -0
index.html
ADDED
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>π Student Scores Leaderboard (FastAPI)</title>
|
7 |
+
<link rel="stylesheet" href="/static/style.css">
|
8 |
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
9 |
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
10 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap" rel="stylesheet">
|
11 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css">
|
12 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
13 |
+
</head>
|
14 |
+
<body>
|
15 |
+
<div class="container">
|
16 |
+
<header>
|
17 |
+
<h1>π Student Scores Leaderboard</h1>
|
18 |
+
<p>Top performers in the Agents Course Unit 4 Challenge (Served via FastAPI)</p>
|
19 |
+
<div id="last-updated">Loading...</div>
|
20 |
+
</header>
|
21 |
+
|
22 |
+
<div class="leaderboard-header">
|
23 |
+
<div class="rank">Rank</div>
|
24 |
+
<div class="username">Username</div>
|
25 |
+
<div class="score">Score</div>
|
26 |
+
<div class="timestamp">Timestamp</div>
|
27 |
+
<div class="code-action">Code</div>
|
28 |
+
</div>
|
29 |
+
|
30 |
+
<div id="leaderboard-body">
|
31 |
+
<div id="loading-indicator">
|
32 |
+
<div class="spinner"></div>
|
33 |
+
Loading leaderboard data...
|
34 |
+
</div>
|
35 |
+
</div>
|
36 |
+
|
37 |
+
<footer>
|
38 |
+
Keep learning, stay awesome π€ | Auto-refreshing every 60s
|
39 |
+
</footer>
|
40 |
+
</div>
|
41 |
+
|
42 |
+
<div id="code-modal" class="modal">
|
43 |
+
<div class="modal-content">
|
44 |
+
<span class="close-button">×</span>
|
45 |
+
<h2 id="modal-username">Code for User</h2>
|
46 |
+
<pre><code id="modal-code" class="language-python"></code></pre>
|
47 |
+
</div>
|
48 |
+
</div>
|
49 |
+
|
50 |
+
<script src="/static/script.js"></script>
|
51 |
+
</body>
|
52 |
+
</html>
|