2024-03-03 12:43:35 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<title>Responsive Grid</title>
|
|
|
|
<style>
|
|
|
|
body {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
font-family: Arial, sans-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grid-container {
|
|
|
|
display: grid;
|
|
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
2024-03-03 13:46:34 +01:00
|
|
|
gap: 10px;
|
|
|
|
padding: 10px;
|
2024-03-03 12:43:35 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.grid-item {
|
|
|
|
border: 1px solid #ccc;
|
2024-03-03 13:46:34 +01:00
|
|
|
padding: 10px;
|
2024-03-03 12:43:35 +01:00
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.grid-item img {
|
|
|
|
max-width: 100%;
|
|
|
|
height: auto;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div class="grid-container">
|
|
|
|
|
|
|
|
{% for i in set_list %}
|
|
|
|
|
|
|
|
<div class="grid-item">
|
2024-03-03 13:46:34 +01:00
|
|
|
<center><img src="/static/sets/{{ i['set_num'] }}/cover.jpg" style="height: 150px; width: auto;" alt="Image"></center>
|
2024-03-03 12:43:35 +01:00
|
|
|
<h2>{{ i['name'] }}</h2>
|
2024-03-03 13:46:34 +01:00
|
|
|
<p>
|
|
|
|
<b>Set:</b> {{ i['set_num'] }}
|
|
|
|
<br>
|
|
|
|
<b>Year:</b> {{ i['year'] }}
|
|
|
|
<br>
|
|
|
|
<b>Parts:</b> {{ i['num_parts'] }}
|
|
|
|
<br>
|
|
|
|
<b>Inventory:</b> <a href="/{{ i['set_num'] }}">Link</a></p>
|
2024-03-03 12:43:35 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|