Switch to version 1: remove src/app/login/page.tsx

This commit is contained in:
2026-03-06 21:43:26 +00:00
parent 9e002aff62
commit f27c6debcc

View File

@@ -1,42 +0,0 @@
"use client";
import { useState } from "react";
export default function LoginPage() {
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");
const handleLogin = async (e: React.FormEvent) => {
e.preventDefault();
try {
console.log("Logging in with:", email, password);
} catch (err) {
console.log("Login failed");
}
};
return (
<div className="min-h-screen flex items-center justify-center">
<form onSubmit={handleLogin} className="w-full max-w-md">
<h1 className="text-2xl font-bold mb-6">Login</h1>
<input
type="email"
value={email}
onChange={(e) => setEmail(e.target.value)}
placeholder="Email"
className="w-full p-2 mb-4 border rounded"
/>
<input
type="password"
value={password}
onChange={(e) => setPassword(e.target.value)}
placeholder="Password"
className="w-full p-2 mb-4 border rounded"
/>
<button type="submit" className="w-full p-2 bg-blue-500 text-white rounded">
Login
</button>
</form>
</div>
);
}