HealthAI-Chef / templates /recipe.html
kikomiko's picture
init
96f6720
<!DOCTYPE html>
<html>
<head>
<style>
body {
font-family: 'Arial', sans-serif;
line-height: 1.6;
margin: 0;
padding: 20px;
}
h1 {
color: #333;
font-size: 2.5em;
margin-bottom: 1em;
text-align: center;
}
h2 {
color: #555;
font-size: 1.8em;
margin-top: 0.5em;
margin-bottom: 1em;
}
h3 {
color: #666;
font-size: 1.2em;
margin-bottom: 0.5em;
}
ul, ol {
padding-left: 30px;
}
li {
margin-bottom: 0.5em;
}
p {
margin-bottom: 1em;
}
strong {
font-weight: bold;
}
a {
color: #007bff; /* Blue link color */
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.recipe-container {
border: 1px solid #ddd;
padding: 20px;
margin-bottom: 2em;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
border-radius: 5px;
}
</style>
</head>
<body>
<div class="recipe-container">
<h2>{{ recipe.name }}</h2>
<p><strong>Meal suggestion:</strong> {{ recipe.meal_type }}</p>
<h3>Ingredients:</h3>
<ul>
{% for ingredient in recipe.ingredients %}
<li>{{ ingredient }}</li>
{% endfor %}
</ul>
<h3>Instructions:</h3>
<ol>
{% for instruction in recipe.instructions %}
<li>{{ instruction }}</li>
{% endfor %}
</ol>
{% if recipe.serves %}
<p><strong>Serves:</strong> {{ recipe.serves }}</p>
{% endif %}
{% if recipe.notes %}
<p><strong>Notes:</strong> {{ recipe.notes }}</p>
{% endif %}
{% if recipe.disclaimer %}
<p><strong>Disclaimer:</strong> {{ recipe.disclaimer }}</p>
{% endif %}
</div>
</body>
</html>