1.4 KiB · text History 25c4237
{% extends "root.html" %}

{% block content %}
{% if user %}
<div class="space-y-6">
  <div class="flex items-end justify-between gap-3 flex-wrap">
    <div>
      <p class="font-mono text-xs uppercase tracking-[0.25em] text-accent">{{ app_name }}</p>
      <h1 class="text-3xl font-bold tracking-tight">Where are we eating?</h1>
    </div>
    <a href="/areas/new" class="btn btn-ghost btn-sm"><i class="fas fa-plus"></i> New area</a>
  </div>
  {% include "areas/_cards.html" %}
</div>
{% else %}
<section class="py-16 sm:py-24 text-center">
  <p class="font-mono text-xs uppercase tracking-[0.25em] text-accent mb-4">{{ app_name }}</p>
  <h1 class="text-4xl sm:text-6xl font-bold tracking-tight">Not there again.</h1>
  <p class="text-base-content/70 text-lg sm:text-xl mt-6 max-w-2xl mx-auto leading-relaxed">
    Pin the places you eat on a map, say how you feel about each one
    (always, positive, neutral, or never), and let lunch pick itself
    from what the group likes and where you haven't been lately.
  </p>
  <div class="flex justify-center gap-3 mt-8 flex-wrap">
    {% if registration_open %}
      <a href="/register" class="btn btn-primary">Get started</a>
    {% else %}
      <span class="btn btn-disabled" title="Registration is invite-only">Get started · invite-only</span>
    {% endif %}
    <a href="/login" class="btn btn-ghost">Log in</a>
  </div>
</section>
{% endif %}
{% endblock %}