cooked/templates/recipies/show.html

84 lines
3.3 KiB
HTML
Raw Normal View History

2024-10-30 13:15:01 +01:00
{% extends "base.jinja" %}
2024-10-22 15:18:23 +02:00
{% block content %}
2024-10-25 17:13:01 +02:00
<main class="m-4 flex flex-col gap-4 w-full">
2024-10-30 13:15:01 +01:00
{% include "../top_bar.jinja" %}
2024-10-25 17:13:01 +02:00
<div class="sm:rounded-3xl w-full flex flex-col gap-4">
<div class="text-center w-full">
2024-10-27 20:23:37 +01:00
<img src={{ recipe.image_url.clone() }} alt="{{recipe.title}}" class="rounded-xl w-40 md:w-3/4 ml-auto mr-auto">
2024-10-22 15:18:23 +02:00
</div>
2024-10-25 17:13:01 +02:00
<div class="flex flex-col gap-7">
<h1 class="font-young-serif text-desktop-heading-l text-stone-700 sm:text-stone-800 text-center md:text-left">
{{ recipe.title }}
</h1>
<p class="font-outfit-regular text-stone-500 sm:text-base">
2024-10-22 15:18:23 +02:00
{{ recipe.summary.clone().unwrap_or_default() }}
</p>
</div>
2024-10-25 17:13:01 +02:00
<div class="divider"></div>
<div class="flex flex-col gap-7">
<p class="text-desktop-heading-m">
Ingredients
</p>
<ul class="list-disc marker:text-rose-900 list-inside flex flex-col gap-3">
2024-10-22 15:18:23 +02:00
{% for ingeredient in ingeredients %}
2024-10-25 17:13:01 +02:00
<li class="paragraph">
<span class="mr-1">
{{ ingeredient.qty }}
</span>
<span class="mr-4">
{{ ingeredient.unit }}
</span>
<span>
{{ ingeredient.name }}
</span>
</li>
2024-10-22 15:18:23 +02:00
{% endfor %}
</ul>
</div>
2024-10-25 17:13:01 +02:00
<div class="divider"></div>
<div class="marker:text-rose-900 marker:font-outfit-semibold flex flex-col gap-7">
<p class="text-desktop-heading-m">
Instructions
</p>
<ol class="list-decimal list-inside flex flex-col gap-3">
2024-10-22 15:18:23 +02:00
{% for step in steps %}
2024-10-30 13:15:01 +01:00
<li class="font-outfit-regular text-stone-500 text-base">
2024-10-22 15:18:23 +02:00
{{ step.body }}
<div>{{ step.hint.clone().unwrap_or_default() }}</div>
</li>
{% endfor %}
</ol>
</div>
2024-10-25 17:13:01 +02:00
<div class="divider"></div>
<div class="marker:text-rose-900 marker:font-outfit-semibold flex flex-col gap-7">
<p class="text-desktop-heading-m">
Tags
</p>
2024-10-30 13:15:01 +01:00
<div class="flex gap-4">
2024-10-25 17:13:01 +02:00
{% for tag in tags %}
<a class="bg-gray-300 dark:bg-gray-700 text-base text-gray-700 dark:text-white py-2 px-4 rounded-full font-bold hover:bg-gray-400 dark:hover:bg-gray-600 flex justify-center items-center">
{{ tag.name }}
</a>
{% endfor %}
</div>
</div>
<div class="divider"></div>
<div class="marker:text-rose-900 marker:font-outfit-semibold flex flex-col gap-7">
<p class="text-desktop-heading-m">
Ingredients
</p>
2024-10-30 13:15:01 +01:00
<div class="flex gap-4">
2024-10-25 17:13:01 +02:00
{% for ingeredient in ingeredients %}
<a class="bg-gray-300 dark:bg-gray-700 text-base text-gray-700 dark:text-white py-2 px-4 rounded-full font-bold hover:bg-gray-400 dark:hover:bg-gray-600 flex justify-center items-center">
{{ ingeredient.name }}
</a>
{% endfor %}
</div>
2024-10-23 16:02:21 +02:00
</div>
2024-10-22 15:18:23 +02:00
</div>
</main>
{% endblock %}