number instruction steps in detail view
This commit is contained in:
parent
e94be51f3e
commit
646bd573cf
2 changed files with 18 additions and 1 deletions
|
|
@ -77,5 +77,9 @@
|
||||||
.ingredient-group-card {
|
.ingredient-group-card {
|
||||||
@apply py-4 border-b border-gray-400;
|
@apply py-4 border-b border-gray-400;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.enumeration-indicator{
|
||||||
|
@apply flex-shrink-0 w-7 h-7 rounded-full bg-blue-300 text-white flex items-center justify-center
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -123,13 +123,26 @@ export default function RecipeDetailPage() {
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{/* Instructions - @todo add reasonable list delegate component*/}
|
{/* Instructions - @todo add reasonable list delegate component*/}
|
||||||
<h2 className="section-heading">Zubereitung</h2>
|
{/*<h2 className="section-heading">Zubereitung</h2>
|
||||||
<ol className="default-list mb-6">
|
<ol className="default-list mb-6">
|
||||||
{recipe.instructionStepList.map((step,j) =>(
|
{recipe.instructionStepList.map((step,j) =>(
|
||||||
<li key={j}>
|
<li key={j}>
|
||||||
{step.text}
|
{step.text}
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
|
</ol>*/}
|
||||||
|
<ol className="space-y-4">
|
||||||
|
{recipe.instructionStepList.map((step, j) => (
|
||||||
|
<li key={j} className="flex items-start gap-4">
|
||||||
|
{/* Step number circle */}
|
||||||
|
<div className="enumeration-indicator">
|
||||||
|
{j + 1}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* Step text */}
|
||||||
|
<p className="leading-relaxed">{step.text}</p>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
{/* Action buttons */}
|
{/* Action buttons */}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue