2025-06-30 12:48:25 +08:00

54 lines
2.0 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

'use client';
import { useState, useCallback } from 'react';
import './style/login.css';
import VantaHaloBackground from '@/components/vanta-halo-background';
export default function Login() {
const [isLoaded, setIsLoaded] = useState(false);
const handleBackgroundLoaded = useCallback(() => {
setIsLoaded(true);
}, []);
return (
<div className="main-container login-page relative">
{/* logo Movie Flow */}
<div className='login-logo'>
<span className="logo-heart">Movie Flow</span>
</div>
<div className="left-panel">
<VantaHaloBackground onLoaded={handleBackgroundLoaded} />
</div>
<div className={`right-panel ${isLoaded ? 'fade-in' : 'invisible'}`}>
<div className="auth-container">
<div className="auth-header">
<h2></h2>
<p>访</p>
</div>
<form className="">
<div className="mb-3">
<label className="form-label"></label>
<input placeholder="电子邮箱地址" required className="form-control" type="email" defaultValue="" />
</div>
<div className="mb-3">
<label className="form-label"></label>
<input placeholder="密码" required className="form-control" type="password" defaultValue="" />
<div className="d-flex justify-content-end mt-1">
<a className="auth-link small" href="/forgot-password" data-discover="true"></a>
</div>
</div>
<button type="submit" className="w-full mt-4 btn btn-primary"></button>
<div className="text-center mt-3">
<p style={{ color: "rgba(255, 255, 255, 0.6)" }}>
<a className="auth-link" href="/signup" data-discover="true"></a>
</p>
</div>
</form>
</div>
</div>
</div>
);
}