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 {
display: flex;
flex-direction: row;
justify-content: space-evenly;
gap: 1em 1em;
}

View File

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