cooked/templates/recipies/show.html

52 lines
2.4 KiB
HTML
Raw Normal View History

2024-10-22 15:18:23 +02:00
{% extends "base.html" %}
{% block content %}
2024-10-23 16:02:21 +02:00
<main class="px-16 py-md:col-span-3">
2024-10-22 15:18:23 +02:00
<div class="flex justify-center md:justify-end">
<a href="/sign-in" class="btn text-primary border-primary md:border-2 hover:shadow-lg transition ease-out duration-300">Login</a>
</div>
2024-10-23 16:02:21 +02:00
<div class="sm:ml-auto sm:mr-auto sm:rounded-3xl">
<div class="sm:mx-auto text-center">
<img src={{ recipe.image_url.clone().unwrap_or_default() }} alt="{{recipe.title}}" class="sm:rounded-xl">
2024-10-22 15:18:23 +02:00
</div>
<div class="pl-[1.7rem] mt-8 sm:p-0 sm:mt-9">
<h1 class="font-young-serif text-[37px] text-stone-700 leading-10 mb-7 sm:text-stone-800">{{ recipe.title }}</h1>
<p class="text-[17px] pr-[15px] font-outfit-regular text-stone-500 sm:text-base sm:p-0">
{{ recipe.summary.clone().unwrap_or_default() }}
</p>
</div>
<div class="pr-7 border-bottom border-b-[2px] ml-auto mr-auto w-[20rem] pb-6 sm:w-auto">
<p class="Title mb-5">Ingredients</p>
<ul class="list-disc ml-6 marker:text-rose-900">
{% for ingeredient in ingeredients %}
<li class="paragraph pl-3 mb-2"><span class="mr-2">{{ ingeredient.qty }}</span><span>{{ ingeredient.name }}</span></li>
{% endfor %}
</ul>
</div>
<div class="border-bottom marker:text-rose-900 marker:font-outfit-semibold border-b-[2px] ml-auto mr-auto w-[20.2rem] pb-4 mt-8 sm:w-auto">
<p class="Title mb-5">Instructions</p>
<ol class="list-decimal ml-6">
{% for step in steps %}
<li class="font-outfit-regular text-stone-500 text-[17px] mb-3 pl-3 text-base">
{{ step.body }}
<div>{{ step.hint.clone().unwrap_or_default() }}</div>
</li>
{% endfor %}
</ol>
</div>
2024-10-23 16:02:21 +02:00
<div class="border-bottom marker:text-rose-900 marker:font-outfit-semibold border-b-[2px] ml-auto mr-auto w-[20.2rem] pb-4 mt-8 sm:w-auto">
<p class="Title mb-5">Tags</p>
<ol class="list-disc ml-6">
{% for tag in tags %}
<li class="font-outfit-regular text-stone-500 text-[17px] mb-3 pl-3 text-base">
<div>{{ tag.name }}</div>
</li>
{% endfor %}
</ol>
</div>
2024-10-22 15:18:23 +02:00
</div>
</main>
{% endblock %}