CHORE: Updated styling on stats page and fixed test failure

This commit is contained in:
Luke Else 2024-02-12 21:44:40 +00:00
parent cc9aaff6e1
commit 7f77dcdd02
3 changed files with 7 additions and 11 deletions

View File

@ -24,6 +24,7 @@ h2 {
.input-form-row { .input-form-row {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-evenly;
gap: 1em 1em; gap: 1em 1em;
} }

View File

@ -6,16 +6,11 @@
<div> <div>
<canvas id="myChart" width="800px" height="500px"></canvas> <canvas id="myChart" width="800px" height="500px"></canvas>
<br > <br >
<form method="GET" action='' id="timeframe_form"> <div class="input-form-row">
<div class="input-form-row"> <a href="?prev_days=7">1 Week</a>
<input type="radio" class="hidden" id="7days" name='prev_days' value=7> <a href="?prev_days=14">2 Weeks</a>
<label for="7days">1 Week</label><br> <a href="?prev_days=31">1 Month</a>
<input type="radio" class="hidden" id="14days" name="prev_days" value=14> </div>
<label for="14days">2 Weeks</label><br>
<input type="radio" class="hidden" id="1month" name="prev_days" value=31>
<label for="1month">1 Month</label>
</div>
</form>
</div> </div>
<div> <div>
<p><b>Age:</b> {{data['age']}}</p> <p><b>Age:</b> {{data['age']}}</p>