[PIE-8] Add recipe detail view #6
@ -18,12 +18,12 @@ const { class: className, ingredients } = Astro.props
|
|||||||
|
|
||||||
</div> -->
|
</div> -->
|
||||||
|
|
||||||
<table class={`table-auto bg-[#2a2b2c] rounded-lg ${className} w-full`}>
|
<table class={`table-auto text-left bg-[#2a2b2c] rounded-lg ${className} w-full`}>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center px-4 py-2">Quantity</th>
|
<th class="px-4 py-2">Quantity</th>
|
||||||
<th class="text-center px-4 py-2">Unit</th>
|
<th class="px-4 py-2">Unit</th>
|
||||||
<th class="text-center px-4 py-2">Food</th>
|
<th class="px-4 py-2">Food</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@ -31,9 +31,9 @@ const { class: className, ingredients } = Astro.props
|
|||||||
ingredients.map(ing => (
|
ingredients.map(ing => (
|
||||||
<>
|
<>
|
||||||
<tr class="border-t border-gray-600">
|
<tr class="border-t border-gray-600">
|
||||||
<td class="text-left px-4 py-2">{ing.quantity}</td>
|
<td class="px-4 py-2">{ing.quantity}</td>
|
||||||
<td class="text-left px-4 py-2">{ing.unit}</td>
|
<td class="px-4 py-2">{ing.unit}</td>
|
||||||
<td class="text-left px-4 py-2">{ing.name}</td>
|
<td class="px-4 py-2">{ing.name}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</>
|
</>
|
||||||
))
|
))
|
||||||
|
@ -41,7 +41,7 @@ const ingredients = await Promise.all(
|
|||||||
<p class="text-[22pt] font-bold">Steps</p>
|
<p class="text-[22pt] font-bold">Steps</p>
|
||||||
{ steps.map(s => (
|
{ steps.map(s => (
|
||||||
<div class="bg-[#2a2b2c] rounded-lg mb-2 p-3 md:">
|
<div class="bg-[#2a2b2c] rounded-lg mb-2 p-3 md:">
|
||||||
<p>Step {s.index + 1}</p>
|
<p class="text-bold text-[10pt]">Step {s.index + 1}</p>
|
||||||
<p>{s.instruction}</p>
|
<p>{s.instruction}</p>
|
||||||
</div>
|
</div>
|
||||||
)) }
|
)) }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user