Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions src/app/Flash.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,34 @@ function Stepper({ steps, currentStep, onStepClick }) {
}

// Landing page component

function VideoWalkthrough() {
const [isOpen, setIsOpen] = useState(false)
if (!isOpen) {
return (
<button
onClick={() => setIsOpen(true)}
style={{marginTop: '16px', padding: '8px 24px', fontSize: '14px', color: '#888', border: '1px solid #444', borderRadius: '8px', background: 'transparent', cursor: 'pointer'}}
>
▶ Watch the walkthrough
</button>
)
}
return (
<div
style={{position: 'fixed', inset: 0, background: 'rgba(0,0,0,0.8)', display: 'flex', alignItems: 'center', justifyContent: 'center', zIndex: 50}}
onClick={() => setIsOpen(false)}
>
<div style={{width: '80%', maxWidth: '800px', aspectRatio: '16/9', background: '#111', borderRadius: '12px', overflow: 'hidden', display: 'flex', alignItems: 'center', justifyContent: 'center'}}>
<div style={{color: '#666', fontSize: '18px'}}>
<p style={{margin: 0}}>Video walkthrough — coming soon</p>
<p style={{fontSize: '14px', marginTop: '8px'}}>Click anywhere to close</p>
</div>
</div>
</div>
)
}

function LandingPage({ onStart }) {
return (
<div className="wizard-screen flex flex-col items-center justify-center h-full gap-8 p-8">
Expand All @@ -359,6 +387,7 @@ function LandingPage({ onStart }) {
>
Start
</button>
<VideoWalkthrough />
</div>
)
}
Expand Down
Loading