cricket_app / templates /leaderboards.html
dschandra's picture
Create leaderboards.html
1e45b7a verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Leaderboards</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Leaderboards</h1>
<nav>
<ul>
<li><a href="/">Home</a></li>
<li><a href="/live_scoring">Live Scoring</a></li>
<li><a href="/scorecard">Scorecard</a></li>
<li><a href="/tournament">Organize Tournament</a></li>
<li><a href="/lookup">Lookup</a></li>
</ul>
</nav>
</header>
<main>
<section>
<h2>Top Performers</h2>
<table>
<thead>
<tr>
<th>Player</th>
<th>Points</th>
</tr>
</thead>
<tbody>
{% for player in rankings %}
<tr>
<td>{{ player['player'] }}</td>
<td>{{ player['points'] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</section>
</main>
<footer>
<p>&copy; 2025 Cricket Tournament. All rights reserved.</p>
</footer>
</body>
</html>