BrickTracker/templates/frontpage.html
2024-03-03 07:46:34 -05:00

58 lines
1.0 KiB
HTML

<!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));
gap: 10px;
padding: 10px;
}
.grid-item {
border: 1px solid #ccc;
padding: 10px;
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">
<center><img src="/static/sets/{{ i['set_num'] }}/cover.jpg" style="height: 150px; width: auto;" alt="Image"></center>
<h2>{{ i['name'] }}</h2>
<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>
</div>
{% endfor %}
</div>
</body>
</html>