998 B · text History 644543b
{% extends "root.html" %}
{# Landing, Classic (src/handlers/landing.rs): categories on the left, the
   latest topics everywhere the viewer can see on the right. The full
   categories page is /c/. #}
{% block width %}max-w-7xl{% endblock %}
{% block content %}
<div class="grid grid-cols-1 gap-6 text-left lg:grid-cols-[18rem_minmax(0,1fr)]">
  {% set all_href = "/c/" %}
  {% include "forum/_landing_categories.html" %}

  <section id="landing-latest" aria-label="Latest topics" class="min-w-0 space-y-3">
    <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 = "classic" %}
      {% include "forum/_view_toggle.html" %}
    </div>
    {% if topics %}
      {% include "forum/_topic_list.html" %}
    {% 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>
</div>
{% endblock %}