css and adding cancel button to editor
This commit is contained in:
parent
f1711831f7
commit
0eec7cf58e
5 changed files with 102 additions and 71 deletions
|
|
@ -28,8 +28,8 @@ export default function RecipeDetailView() {
|
|||
)}
|
||||
|
||||
{/* Ingredients */}
|
||||
<h2 className="section-heading">Ingredients</h2>
|
||||
<ul className="list-disc pl-6">
|
||||
<h2 className="section-heading">Zutaten</h2>
|
||||
<ul className="default-list-item">
|
||||
{recipe.ingredients.map((ing, i) => (
|
||||
<li key={i}>
|
||||
{ing.amount} {ing.unit ?? ""} {ing.name}
|
||||
|
|
@ -38,22 +38,22 @@ export default function RecipeDetailView() {
|
|||
</ul>
|
||||
|
||||
{/* Instructions */}
|
||||
<h2 className="section-heading">Instructions</h2>
|
||||
<h2 className="section-heading">Zubereitung</h2>
|
||||
<p className="mb-6">{recipe.instructions}</p>
|
||||
|
||||
{/* Action buttons */}
|
||||
<div className="flex gap-8">
|
||||
<div className="button-group">
|
||||
<Link
|
||||
to={`/recipe/${recipe.id}/edit`}
|
||||
className="primary-button"
|
||||
>
|
||||
Edit
|
||||
Bearbeiten
|
||||
</Link>
|
||||
<Link
|
||||
to="/"
|
||||
className="default-button"
|
||||
>
|
||||
Back
|
||||
Zurueck
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue