Skip to content

Commit

Permalink
I like this better
Browse files Browse the repository at this point in the history
  • Loading branch information
BrennanB committed Jul 21, 2024
1 parent 2c3ee03 commit 7c18bf3
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions ranked/templates/ranked/ranked_home.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,23 @@ <h1 class="display-4 fw-bold text-white">Ranked Leaderboards</h1>

<!-- Game Modes Section -->
<div class="container my-5">
{% for game, gamemodes in games.items %}
<div class="row mb-4">
<div class="col-12">
<h2 class="text-white text-center mb-3">{{ game }}</h2>
</div>
{% for gamemode in gamemodes %}
<div class="row">
{% for game, gamemodes in games.items %}
<div class="col-12 col-md-4 mb-4">
<div class="card bg-dark text-white shadow-lg h-100">
<div class="card-body text-center">
<h3 class="card-title">{{ gamemode.name }}</h3>
<a href="/ranked/{{ gamemode.short_code }}/" class="btn btn-outline-light mt-3">
View Leaderboard
</a>
<h3 class="card-title">{{ game }}</h3>
<div class="mt-4">
{% for gamemode in gamemodes %}
<a href="/ranked/{{ gamemode.short_code }}/" class="btn btn-outline-light mb-2">
{{ gamemode.name }}
</a>
{% endfor %}
</div>
</div>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</div>
{% endblock %}

0 comments on commit 7c18bf3

Please sign in to comment.