From 33f3b30cb4e63e19d16103115d03d02ad98b91e3 Mon Sep 17 00:00:00 2001 From: Marcel Raddatz Date: Fri, 3 Apr 2026 10:35:35 +0200 Subject: [PATCH] feat(recipes): style RecipeForm with design system + split-panel layout - Full design system tokens: inputs, labels, chips, buttons - Effort and category chips as pill-style radio/checkbox - Desktop two-column split-panel: form left, categories right (280px) - Ingredient rows: quantity/unit/name flex layout with remove ghost button - Steps with numbered circle indicator - Add use:enhance for SPA experience without full page reload - Footer: cancel link left, primary save button right Co-Authored-By: Claude Sonnet 4.6 --- frontend/src/lib/recipes/RecipeForm.svelte | 291 +++++++++++++++------ 1 file changed, 216 insertions(+), 75 deletions(-) diff --git a/frontend/src/lib/recipes/RecipeForm.svelte b/frontend/src/lib/recipes/RecipeForm.svelte index 4dc67cc..5560e81 100644 --- a/frontend/src/lib/recipes/RecipeForm.svelte +++ b/frontend/src/lib/recipes/RecipeForm.svelte @@ -1,5 +1,6 @@ -
+ {#if $page.form?.error} -
{$page.form.error}
+ {/if} - - - + +
+ +
+ +
+
+ + +
- - +
+ + +
- - +
+ + +
+
- -
- Schwierigkeitsgrad - {#each effortOptions as opt (opt.value)} - - {/each} -
+ +
+

+ Schwierigkeitsgrad +

+
+ {#each effortOptions as opt (opt.value)} + + {/each} +
+
- -
- Kategorien - {#each categories as cat (cat.id)} - - {/each} -
- - -
- Zutaten - {#each ingredients as ing, i (i)} -
- - - - +
+ {/each} +
+
- {/each} - - - -
- Schritte - {#each steps as _, i (i)} -
- - +
+ + {/each} + + - {/each} - -
+ + + +
+
+

Kategorien

+
+ {#each categories as cat (cat.id)} + + {/each} +
+
+
+ - Abbrechen - +
+ + Abbrechen + + +