// Prodz — Onboarding. Minimal required fields (role, city), progressive // enrichment after (brief §2.5 / §3.1). Bilingual; language is chosen first. function Onboarding({ onComplete }) { const { L, lang, setLang } = useL(); const { Button } = window.ProdzDesignSystem_d0b87b; const [step, setStep] = useStateS(0); // 0 = welcome, 1..4 = fields const [role, setRole] = useStateS(null); const [city, setCity] = useStateS(null); const [cityQ, setCityQ] = useStateS(''); const [interests, setInterests] = useStateS([]); const [goal, setGoal] = useStateS(null); const TOTAL = 4; const finish = () => onComplete({ role, city, interests, goal }); // ---- Welcome / language ---- if (step === 0) { return (
{L('Portfolio, opportunità e collaborazioni in un solo posto. Costruisci il profilo in un minuto.', 'Portfolio, opportunities and collaborations in one place. Build your profile in a minute.')}
{step === 1 && L('Il tuo ruolo principale. Personalizza feed e Shoutouts.', 'Your primary role. It tunes your feed and Shoutouts.')} {step === 2 && L('Per connetterti con chi lavora vicino a te.', 'To connect you with people working nearby.')} {step === 3 && L('Scegli almeno 3. Affina le opportunità che vedi.', 'Pick at least 3. It sharpens the opportunities you see.')} {step === 4 && L('Ci aiuta a darti la versione giusta della piattaforma.', 'Helps us give you the right version of the platform.')}
{/* STEP 1 — role */} {step === 1 && (