final home desing

This commit is contained in:
JakeBreath
2026-08-05 17:40:33 -05:00
parent cf78128284
commit 344cb524e3
5 changed files with 186 additions and 24 deletions
+32 -18
View File
@@ -78,26 +78,40 @@
</div>
</div>
<div class="home-section">
<div class="home-section-header">
<h2>Latest packs</h2>
<a href="{% url 'library:browse' %}" class="home-section-link">View all <i class="fas fa-arrow-right"></i></a>
</div>
<div class="pack-grid">
{% for project in latest_projects %}
{% include 'library/_project_card.html' %}
{% empty %}
<div class="pack-card pack-card-empty">
<div class="pack-card-thumb">
<i class="fas fa-box-open"></i>
</div>
<div class="pack-card-body">
<h3>No packs yet</h3>
<p class="pack-card-desc">Be the first to share a pack.</p>
{% for row in home_rows %}
<div class="home-cat-row">
{% for section in row %}
<div class="home-cat-block">
<div class="home-section-header">
<h2>{{ section.label }}</h2>
<a href="{% url 'library:browse' %}?category={{ section.value }}" class="home-section-link">View all <i class="fas fa-arrow-right"></i></a>
</div>
<div class="home-cat-cols">
<div class="home-cat-col">
<h3 class="home-cat-head"><i class="fas fa-fire"></i> Popular</h3>
<div class="pack-row-list">
{% for project in section.popular %}
{% include 'library/_project_card_row.html' %}
{% empty %}
<p class="empty-hint">None yet.</p>
{% endfor %}
</div>
</div>
{% endfor %}
<div class="home-cat-divider" role="separator"></div>
<div class="home-cat-col">
<h3 class="home-cat-head"><i class="fas fa-clock"></i> Recent</h3>
<div class="pack-row-list">
{% for project in section.recent %}
{% include 'library/_project_card_row.html' %}
{% empty %}
<p class="empty-hint">None yet.</p>
{% endfor %}
</div>
</div>
</div>
</div>
{% if not forloop.last %}<div class="home-cat-row-divider" role="separator"></div>{% endif %}
{% endfor %}
</div>
{% endfor %}
{% endblock %}