Formatting

This commit is contained in:
FrederikBaerentsen 2024-03-03 07:46:34 -05:00
parent 276f48e4a3
commit 2fe522de1e

View File

@ -14,13 +14,13 @@
.grid-container { .grid-container {
display: grid; display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 20px; gap: 10px;
padding: 20px; padding: 10px;
} }
.grid-item { .grid-item {
border: 1px solid #ccc; border: 1px solid #ccc;
padding: 20px; padding: 10px;
box-sizing: border-box; box-sizing: border-box;
} }
@ -38,12 +38,16 @@
{% for i in set_list %} {% for i in set_list %}
<div class="grid-item"> <div class="grid-item">
<img src="/static/sets/{{ i['set_num'] }}/cover.jpg" style="height: 150px; width: auto;" alt="Image"> <center><img src="/static/sets/{{ i['set_num'] }}/cover.jpg" style="height: 150px; width: auto;" alt="Image"></center>
<h2>{{ i['name'] }}</h2> <h2>{{ i['name'] }}</h2>
<p>Set: {{ i['set_num'] }}</p> <p>
<p>Year: {{ i['year'] }}</p> <b>Set:</b> {{ i['set_num'] }}
<p>Parts: {{ i['num_parts'] }}</p> <br>
<p>Inventory: <a href="/{{ i['set_num'] }}">Link</a></p> <b>Year:</b> {{ i['year'] }}
<br>
<b>Parts:</b> {{ i['num_parts'] }}
<br>
<b>Inventory:</b> <a href="/{{ i['set_num'] }}">Link</a></p>
</div> </div>
{% endfor %} {% endfor %}