Display multiple charts per row, reduce overall chart size

This commit is contained in:
Chris Wilson
2022-04-13 23:46:15 -04:00
committed by KonoTyran
parent 249972c7fd
commit 66921499ad
3 changed files with 33 additions and 11 deletions

View File

@@ -1,8 +1,9 @@
{% extends 'pageWrapper.html' %}
{% block head %}
<title>Statistics</title>
<title>Archipelago Game Statistics</title>
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename="styles/markdown.css") }}" />
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename="styles/stats.css") }}" />
{{ css_resources|indent(4)|safe }}
{{ js_resources|indent(4)|safe }}
{{ chart_data|indent(4)|safe }}
@@ -11,11 +12,17 @@
{% block body %}
{% include 'header/grassFlowersHeader.html' %}
<div id="stats" class="markdown">
<h1>Stats</h1>
{% for chart in charts %}
{{ chart|indent(12)|safe }}
<h1>Archipelago Game Statistics</h1>
<h5>
The data on this page is updated hourly.
</h5>
<div id="charts-wrapper">
{% for index in range(chart_count) %}
<div class="chart-container">
{{ charts[index]|indent(12)|safe }}
</div>
{% endfor %}
</div>
</div>
{% endblock %}