{% extends "root.html" %}
{# Landing, Focus (src/handlers/landing.rs): categories on the left, the
latest topics as tiles on the right, full width. A tile opens the reader
(`&topic=<id>`), which steps through this same latest list. #}
{% block width %}w-full max-w-none{% endblock %}
{% block main_class %}px-3 py-3 sm:px-4 lg:px-5{% endblock %}
{% block content %}
<div class="grid min-h-[calc(100dvh-5.5rem)] grid-cols-1 gap-4 text-left lg:grid-cols-[18rem_minmax(0,1fr)]" id="landing">
{% set all_href = "/c/?view=focus" %}
{% include "forum/_landing_categories.html" %}
<section id="landing-latest" aria-label="Latest topics"
class="min-w-0 space-y-4 rounded-box border border-primary/40 bg-base-200/40 p-4">
<div class="flex flex-wrap items-center justify-between gap-2">
<h1 class="text-2xl font-bold">Latest</h1>
{% set toggle_base = "/" %}{% set view_mode = "focus" %}
{% include "forum/_view_toggle.html" %}
</div>
{% if topics %}
<div class="grid grid-cols-[repeat(auto-fill,minmax(17rem,1fr))] gap-3">
{% for t in topics %}{% include "forum/_topic_tile.html" %}{% endfor %}
</div>
{% else %}
<p class="rounded-box border border-dashed border-base-300 p-6 text-center text-sm opacity-60">No topics yet.</p>
{% endif %}
</section>
{% include "forum/_reader.html" %}
</div>
{% endblock %}
neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions running · Badges · Packages
⭐
Log in to mark this repository.
1.3 KiB · text
History
644543b