// Process page — three switchable layouts via Tweaks. // 'timeline' — vertical timeline // 'horizontal' — interactive horizontal step bar // 'cards' — numbered cards grid const ProcessTimeline = () => { const { isMobile } = useBreakpoint(); const pad = isMobile ? '32px 20px 64px' : '40px 80px 100px'; const iconSize = isMobile ? 48 : 64; return ( {PROCESS_STEPS.map(s => ( Step {s.n} · {s.duration} {s.title} {s.body} ))} ); }; const ProcessHorizontal = () => { const { isMobile } = useBreakpoint(); const [active, setActive] = React.useState(0); // On mobile, horizontal step bar is hard to use — render as a timeline instead. if (isMobile) return ; return ( {PROCESS_STEPS.map((s, i) => ( setActive(i)} style={{ background: 'transparent', border: 0, cursor: 'pointer', padding: 0, display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 10, position: 'relative', zIndex: 1, }}> Step {s.n} {s.title} ))} Step {PROCESS_STEPS[active].n} · {PROCESS_STEPS[active].duration} {PROCESS_STEPS[active].title} {PROCESS_STEPS[active].body} ); }; const ProcessCards = () => { const { isMobile, isTablet } = useBreakpoint(); const cols = isMobile ? '1fr' : isTablet ? 'repeat(2, 1fr)' : 'repeat(3, 1fr)'; const pad = isMobile ? '32px 20px 64px' : '40px 80px 100px'; return ( {PROCESS_STEPS.map(s => ( {s.n} {s.title} {s.duration} {s.body} ))} ); }; const ProcessPage = ({ layout, onNavigate }) => { const { isMobile } = useBreakpoint(); const heroPad = isMobile ? '100px 20px 40px' : '160px 60px 56px'; return ( <> How it works A clear path from your home country to your US nursing career. Most nurses complete the journey in 12–18 months. Nucleus pays for prep, files your visa, and supports you the whole way. {layout === 'horizontal' ? : layout === 'cards' ? : } Ready to take the first step? Apply in 15 minutes. Free, no obligation, in English or Spanish. onNavigate('apply')} style={{ background: 'var(--cta-primary-bg)', color: 'var(--cta-primary-fg)', padding: '14px 30px', borderRadius: 1000, border: 0, cursor: 'pointer', fontFamily: 'var(--font-sans)', fontWeight: 600, fontSize: 16, width: isMobile ? '100%' : 'auto', }}>Start my application → > ); }; window.ProcessPage = ProcessPage;
{s.body}
{PROCESS_STEPS[active].body}
{s.duration}
Most nurses complete the journey in 12–18 months. Nucleus pays for prep, files your visa, and supports you the whole way.
Apply in 15 minutes. Free, no obligation, in English or Spanish.