From 83612f29c4c8bbdc1015014806a999ed6f74a3b4 Mon Sep 17 00:00:00 2001 From: mawkone Date: Mon, 8 Jun 2026 11:47:01 -0700 Subject: [PATCH] design: implement 3-column horizontal side-by-side layout picker with minimal cards (illustrations only, no description/radio text) --- .../_onboarding/onboarding-entrepreneur.tsx | 7 +- .../_onboarding/onboarding-primitives.tsx | 173 +++++++++++------- 2 files changed, 111 insertions(+), 69 deletions(-) diff --git a/vibn-frontend/_onboarding/onboarding-entrepreneur.tsx b/vibn-frontend/_onboarding/onboarding-entrepreneur.tsx index 5e864f7..3384627 100644 --- a/vibn-frontend/_onboarding/onboarding-entrepreneur.tsx +++ b/vibn-frontend/_onboarding/onboarding-entrepreneur.tsx @@ -1394,7 +1394,8 @@ function EntrepStyle({ productType, value, onChange }) { }))} value={value} onChange={onChange} - columns={styles.length === 3 ? 1 : 2} + columns={styles.length === 3 ? 3 : 2} + minimal /> ); @@ -1583,7 +1584,9 @@ export function EntrepreneurPath({ current={step + 2} total={5} /> - + {body} ; value?: string; onChange?: (id: string) => void; columns?: number; + minimal?: boolean; }) { return (
{options.map((opt) => { const active = value === opt.id; + const hasIllustration = !!opt.illustration; + return (
)} - - - {opt.label} - - {opt.desc && ( + {opt.icon && !minimal && ( - {opt.desc} + {opt.icon} )} - - - {active && ( - - - + {opt.label} + + {opt.desc && !minimal && ( + + {opt.desc} + + )} + + {!minimal && ( + + {active && ( + + )} + )} - + ); })}