From d7f6ca6b0a6d02dec67ffdda65b411d25bbca963 Mon Sep 17 00:00:00 2001 From: Web Spinner Bot Date: Thu, 23 Nov 2023 07:57:18 +0000 Subject: [PATCH] [Web Spinner] Add New Authentication Page for Login and Account Creation --- app/login-page.tsx | 68 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 app/login-page.tsx diff --git a/app/login-page.tsx b/app/login-page.tsx new file mode 100644 index 0000000..016c76a --- /dev/null +++ b/app/login-page.tsx @@ -0,0 +1,68 @@ +import React, { useState } from 'react'; +import Link from 'next/link'; +import { Button } from '@/components/ui/button'; + +const LoginPage: React.FC = () => { + const [username, setUsername] = useState(''); + const [password, setPassword] = useState(''); + + const handleLogin = (e: React.FormEvent) => { + e.preventDefault(); + // Handle login logic here + console.log('Login with:', username, password); + }; + + return ( +
+
+
+ {/* Logo component or image here */} +
+
+
+ + setUsername(e.target.value)} + /> +
+
+ + setPassword(e.target.value)} + /> +
+
+ +
+
+
+ + + Create a new account + + +
+
+
+ ); +}; + +export default LoginPage;