cooked/templates/search.jinja

39 lines
1.3 KiB
Plaintext
Raw Normal View History

2024-10-30 13:15:01 +01:00
{% extends "base.jinja" %}
2024-10-28 14:59:33 +01:00
{% block content %}
2024-10-30 13:15:01 +01:00
<main class="md:col-span-3 flex flex-col gap-4 m-4 md:w-full">
2024-10-28 14:59:33 +01:00
{{ TopBar::new(session)|safe }}
<header class="flex flex-col gap-2">
<h2 class="text-gray-600 text-6xl font-semibold text-center">Search</h2>
</header>
<div class="flex flex-col gap-8">
<div class="flex flex-wrap gap-8 justify-center">
<form action="/search" method="post">
2024-10-30 13:15:01 +01:00
<label for="q" class="flex gap-4">
<span>Find:</span>
<input name="q" class="input input-search border border-solid border-gray-200 rounded-lg" type="search" id="q" value="{{query}}" />
</label>
2024-10-28 14:59:33 +01:00
</form>
</div>
</div>
<div class="flex flex-col gap-8">
<div class="flex flex-wrap gap-8 justify-center">
{% for recipe in recipies %}
{{ recipe|safe }}
{% endfor %}
</div>
<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>
</div>
</main>
{% endblock %}