Os Lock Screen
Os Lock Screen
window.addEventListener('resize', handleResize);
handleResize();
return () => window.removeEventListener('resize', handleResize);
}, []);
// Password handler
const handlePasswordSubmit = (e) => {
e.preventDefault();
if (password === '1818') { // Hardcoded password
setShowPasswordInput(false);
setPassword('');
setError('');
console.log('System unlocked');
} else {
setError('Incorrect password');
setPassword('');
}
};
// Splash screen
if (bootPhase === 'splash') {
return (
<div
className="flex items-center justify-center bg-white"
style={{ width: '100vw', height: '100vh' }}
>
<h1 className="text-4xl md:text-6xl font-bold text-black">XPINE</h1>
</div>
);
}
// Main lockscreen
return (
<div
className="relative overflow-hidden"
style={{
width: '100vw',
height: '100vh',
backgroundImage: 'url(/beach-wallpaper.jpg)',
backgroundSize: 'cover',
backgroundPosition: 'center',
backgroundRepeat: 'no-repeat',
}}
>
{/* Background overlay */}
<div className="absolute inset-0 bg-black/10" />