structables/templates/category.html
snowcatridge10 31f9bf6c2b first commit
2023-06-01 17:25:13 -04:00

55 lines
No EOL
1.6 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>{{ data[0] }} - Indestructables</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
{% include "style.html" %}
<link rel="icon" type="image/png" href="{{ url_for('static', filename='img/favicon.png') }}">
</head>
<body>
{% include "header.html" %}
<center>
<h1>{{ data[0] }}</h1>
<div class="channel-list">
{% for channel in data[1] %}
<div style="display:inline-block">
<a href="{{ channel[0] }}" style="position:relative;text-align:center;color:white;">
<img src="{{ channel[2] }}" alt="{{ channel[1] }}" style="display:inline-block;max-width:200px;">
<p style="position:absolute;bottom:0px;left:4px;font-weight:thin;">{{ channel[1] }}</p>
</a>
</div>
{% endfor %}
</div>
<h2><a href="{{ data[4] }}projects/">Featured Projects</a></h2>
<div class="project-list">
{% for ible in data[2] %}
<div class="ible-list-item">
<a href="{{ ible[0] }}">
<img src="{{ ible[1] }}" alt="{{ ible[2] }}">
<br>
<span><b>{{ ible[2] }}</b></span>
</a>
<span>by <a href="{{ ible[4] }}">{{ ible[3] }}</a></span>
<span>in <a href="{{ ible[6] }}">{{ ible[5] }}</a></span>
<br>
<span>{{ ible[7] }} Views&nbsp;&nbsp;</span>
<span>{{ ible[8] }} Favorites</span>
</div>
{% endfor %}
</div>
<h2><a href="/contest/">Contests</a></h2>
<div style="display:inline-block;">
{% for contest in data[3] %}
<a href="{{ contest[0] }}" style="color:#bbc2cf;">
<img src="{{ contest[1] }}" alt="{{ contest[2] }}" style="max-width:400px;">
</a>
{% endfor %}
</div>
</center>
{% include "footer.html" %}
</body>
</html>