{% extends "base.html" %} {% block title %}Collections{% endblock %} {% block styles %} .collection-grid { display: grid; grid-template-columns: repeat(auto-fill, 200px); gap: 1.25rem; margin-bottom: 2rem; } .collection-card { border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: box-shadow 0.15s; } .collection-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); } .collection-card-image { aspect-ratio: 3/4; background: var(--cream); overflow: hidden; } .collection-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; } .collection-card-image-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--rule); font-size: 2rem; } .collection-card-body { padding: 0.6rem 0.75rem 0.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.2rem; } .collection-card-name { font-family: var(--serif-display); font-size: 0.9rem; font-weight: 600; } .collection-card-meta { font-size: 0.78rem; color: var(--muted); } .new-collection-form { border-top: 1px solid var(--rule); padding-top: 1.5rem; max-width: 560px; } .field-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; align-items: end; margin-bottom: 0.75rem; } @media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } } .field { display: flex; flex-direction: column; gap: 0.3rem; } .field label { font-family: var(--serif-body); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); } .field input, .field select { font-family: var(--serif-body); font-size: 0.9rem; padding: 0.4rem 0.6rem; border: 1px solid rgba(42,77,58,0.25); border-radius: 2px; background: #fff; color: inherit; width: 100%; } .field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; } {% endblock %} {% block content %} Collections {{ collections|length }} collection{{ 's' if collections|length != 1 }} {% if collections %} {% for c in collections %} {% if c.hero_image %} {% else %} ◻ {% endif %} {{ c.name }} {% if c.vendor %}{{ c.vendor }} · {% endif %} {{ c.owned_count }} piece{{ 's' if c.owned_count != 1 }} {% endfor %} {% else %} No collections yet. {% endif %} {# ── New collection ──────────────────────────────────────────── #} New Collection Name Vendor — none — {% for v in vendors %} {{ v }} {% endfor %} Website Create {% endblock %}
No collections yet.