|
1 | 1 | import { useEffect, useState } from 'react' |
2 | 2 |
|
3 | | -const BOOT_STEPS = [ |
4 | | - 'Initializing E·MUX kernel bridge...', |
5 | | - 'Loading MUX_Ai neural core...', |
| 3 | +const STEPS = [ |
| 4 | + 'Loading kernel bridge...', |
| 5 | + 'Initializing MUX_AI core (Gemini 2.0)...', |
6 | 6 | 'Mounting hardware abstraction layer...', |
7 | | - 'Spawning PTY daemon...', |
8 | | - 'Calibrating telemetry engine...', |
9 | | - 'E·MUX ready.', |
| 7 | + 'Spawning PTY daemon → /dev/pts/0', |
| 8 | + 'Connecting hardware interfaces...', |
| 9 | + 'E·MUX v27.0 — Ready.', |
10 | 10 | ] |
11 | 11 |
|
12 | 12 | export default function BootScreen() { |
13 | 13 | const [step, setStep] = useState(0) |
14 | | - const [progress, setProgress] = useState(0) |
| 14 | + const [pct, setPct] = useState(0) |
15 | 15 |
|
16 | 16 | useEffect(() => { |
17 | | - const interval = setInterval(() => { |
| 17 | + const id = setInterval(() => { |
18 | 18 | setStep(s => { |
19 | | - const next = Math.min(s + 1, BOOT_STEPS.length - 1) |
20 | | - setProgress(Math.round((next / (BOOT_STEPS.length - 1)) * 100)) |
21 | | - return next |
| 19 | + const n = Math.min(s + 1, STEPS.length - 1) |
| 20 | + setPct(Math.round((n / (STEPS.length - 1)) * 100)) |
| 21 | + return n |
22 | 22 | }) |
23 | | - }, 480) |
24 | | - return () => clearInterval(interval) |
| 23 | + }, 500) |
| 24 | + return () => clearInterval(id) |
25 | 25 | }, []) |
26 | 26 |
|
27 | 27 | return ( |
28 | | - <div className="boot-screen"> |
29 | | - <div className="boot-logo"> |
30 | | - <div className="boot-logo-mark">E·M</div> |
| 28 | + <div className="boot"> |
| 29 | + <div className="boot-logo-wrap"> |
| 30 | + <img src="/emux-logo.png" alt="E·MUX Logo" className="boot-logo-img" /> |
31 | 31 | <div className="boot-name">E · M U X</div> |
32 | | - <div className="boot-subtitle">God-Mode ECE Terminal — v27.0</div> |
| 32 | + <div className="boot-tagline">God-Mode ECE Terminal · v27.0</div> |
33 | 33 | </div> |
34 | | - <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: '12px' }}> |
35 | | - <div className="boot-progress-track"> |
36 | | - <div className="boot-progress-fill" style={{ width: `${progress}%` }} /> |
| 34 | + <div style={{ display: 'flex', flexDirection: 'column', alignItems: 'center', gap: 10 }}> |
| 35 | + <div className="boot-track"> |
| 36 | + <div className="boot-fill" style={{ width: `${pct}%` }} /> |
37 | 37 | </div> |
38 | | - <div className="boot-log">{BOOT_STEPS[step]}</div> |
| 38 | + <div className="boot-msg">{STEPS[step]}</div> |
39 | 39 | </div> |
40 | 40 | </div> |
41 | 41 | ) |
|
0 commit comments