structables/templates/category.html

42 lines
1.4 KiB
HTML
Raw Normal View History

{% extends "base.html" %}
2023-06-01 21:25:13 +00:00
{% block content %}
2023-06-01 21:25:13 +00:00
<center>
<h1>{{ title }}</h1>
2023-06-01 21:25:13 +00:00
<div class="channel-list">
{% for channel in channels %}
2023-06-01 21:25:13 +00:00
<div style="display:inline-block">
<a href="{{ channel.link }}" style="position:relative;text-align:center;color:white;">
<img src="{{ channel.img }}" alt="{{ channel.title }}" style="display:inline-block;max-width:200px;">
<p style="position:absolute;bottom:0px;left:4px;font-weight:thin;">{{ channel.title }}</p>
2023-06-01 21:25:13 +00:00
</a>
</div>
{% endfor %}
</div>
<h2><a href="{{ path }}projects/">Featured Projects</a></h2>
2023-06-01 21:25:13 +00:00
<div class="project-list">
{% for ible in ibles %}
2023-06-01 21:25:13 +00:00
<div class="ible-list-item">
<a href="{{ ible.link }}">
<img src="{{ ible.img }}" alt="{{ ible.title }}">
2023-06-01 21:25:13 +00:00
<br>
<span><b>{{ ible.title }}</b></span>
2023-06-01 21:25:13 +00:00
</a>
<span>by <a href="{{ ible.author_link }}">{{ ible.author }}</a></span>
<span>in <a href="{{ ible.channel_link }}">{{ ible.channel }}</a></span>
2023-06-01 21:25:13 +00:00
<br>
<span>{{ ible.views }} Views&nbsp;&nbsp;</span>
<span>{{ ible.favorites }} Favorites</span>
2023-06-01 21:25:13 +00:00
</div>
{% endfor %}
</div>
<h2><a href="/contest/">Contests</a></h2>
<div style="display:inline-block;">
{% for contest in contests %}
<a href="{{ contest.link }}" style="color:#bbc2cf;">
<img src="{{ contest.img }}" alt="{{ contest.title }}" style="max-width:400px;">
2023-06-01 21:25:13 +00:00
</a>
{% endfor %}
</div>
</center>
{% endblock %}