cooked/templates/index.html

29 lines
824 B
HTML
Raw Normal View History

2024-10-22 15:18:20 +02:00
{% extends "base.html" %}
2024-10-22 11:18:39 +02:00
2024-10-22 15:18:20 +02:00
{% block content %}
2024-10-25 17:13:01 +02:00
<main class="md:col-span-3 flex flex-col gap-4 m-4">
2024-10-27 20:23:37 +01:00
{{ TopBar::new(session)|safe }}
2024-10-22 15:18:20 +02:00
2024-10-25 17:13:01 +02:00
<header class="flex flex-col gap-2">
<h2 class="text-gray-600 text-6xl font-semibold text-center">Recipes</h2>
2024-10-22 15:18:20 +02:00
</header>
2024-10-25 17:13:01 +02:00
<div class="flex flex-col gap-8">
<div class="flex flex-wrap gap-8 justify-center">
2024-10-22 15:18:20 +02:00
{% for recipe in recipies %}
{{ recipe|safe }}
{% endfor %}
</div>
2024-10-27 20:23:37 +01:00
<div class="flex gap-4 flex-wrap">
{% match count %}
{% when 0 %}
{% when _ %}
{% for page in 0..count %}
<a class="btn" href="/?page={{page}}">{{page}}</a>
{% endfor %}
{% endmatch %}
</div>
2024-10-22 11:18:39 +02:00
</div>
2024-10-22 15:18:20 +02:00
</main>
{% endblock %}