From 0b268881a12a850da4133b79ecadef6b5c66e262 Mon Sep 17 00:00:00 2001 From: DanielS Date: Fri, 10 Jul 2026 10:52:07 +0200 Subject: [PATCH] style(wizard): dock stepper in step 3 and make summary card sticky top-[20vh] --- shop/components/order-wizard.tsx | 62 ++++++++++++++++++++++---------- 1 file changed, 43 insertions(+), 19 deletions(-) diff --git a/shop/components/order-wizard.tsx b/shop/components/order-wizard.tsx index 3a8b0d8..41b7252 100644 --- a/shop/components/order-wizard.tsx +++ b/shop/components/order-wizard.tsx @@ -703,26 +703,28 @@ export function OrderWizard({ return (
{/* Progress Stepper */} -
-
-
- {[1, 2, 3, 4].map(s => ( -
-
= s - ? 'bg-primary text-white scale-110 shadow-[0_0_15px_rgba(59,130,246,0.5)]' - : 'bg-slate-800 text-slate-400' - }`} - > - {step > s ? : s} + {step !== 3 && ( +
+
+
+ {[1, 2, 3, 4].map(s => ( +
+
= s + ? 'bg-primary text-white scale-110 shadow-[0_0_15px_rgba(59,130,246,0.5)]' + : 'bg-slate-800 text-slate-400' + }`} + > + {step > s ? : s} +
+ = s ? 'text-primary' : 'text-slate-500'}`}> + {s === 1 ? 'Kunde' : s === 2 ? 'Modell' : s === 3 ? 'Software' : 'Abschluss'} +
- = s ? 'text-primary' : 'text-slate-500'}`}> - {s === 1 ? 'Kunde' : s === 2 ? 'Modell' : s === 3 ? 'Software' : 'Abschluss'} - -
- ))} + ))} +
-
+ )} {/* ───── Schritt 1: Endkunde wählen / anlegen ───── */} @@ -1025,6 +1027,28 @@ export function OrderWizard({
{/* Left: Category sections */}
+ {/* Progress Stepper docked above Software wählen */} +
+
+
+ {[1, 2, 3, 4].map(s => ( +
+
= s + ? 'bg-primary text-white scale-110 shadow-[0_0_15px_rgba(59,130,246,0.5)]' + : 'bg-slate-800 text-slate-400' + }`} + > + {step > s ? : s} +
+ = s ? 'text-primary' : 'text-slate-500'}`}> + {s === 1 ? 'Kunde' : s === 2 ? 'Modell' : s === 3 ? 'Software' : 'Abschluss'} + +
+ ))} +
+
+ @@ -1280,7 +1304,7 @@ export function OrderWizard({ {/* Right: Summary */}
- + Zusammenfassung