Add /games page and add checkboxes for subscribing to games

This commit is contained in:
2024-07-04 05:36:30 +02:00
parent fb1f7c4983
commit 474e2b5bff
8 changed files with 72 additions and 1 deletions

View File

@ -18,7 +18,6 @@
</div>
</div>
</div>
<!-- Games Column -->
<div class="col-lg-9">
{% for game in games %}
<div class="card mb-4 shadow-sm" id="game-{{ game.game_id }}">
@ -36,6 +35,18 @@
<h2 class="card-title h5">
<a href="{{ game.twitch_url }}" class="text-decoration-none">{{ game.display_name }}</a>
</h2>
<div class="mt-auto">
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="new">
<label class="form-check-label" for="new">
Notify when new drop is found on <a href="https://www.twitch.tv/drops/campaigns">Twitch</a>
</label>
</div>
<div class="form-check form-switch">
<input class="form-check-input" type="checkbox" role="switch" id="live">
<label class="form-check-label" for="live">Notify when a drop starts</label>
</div>
</div>
{% for campaign in game.campaigns %}
{% if not forloop.first %}<br>{% endif %}
<div class="mt-3">