From 3331a787ef1393e6891035b8044cb5a29f19f884 Mon Sep 17 00:00:00 2001 From: Web Spinner Bot Date: Thu, 23 Nov 2023 07:12:13 +0000 Subject: [PATCH] [Web Spinner] Add New Authentication Page for Login and Account Creation --- app/login.tsx | 74 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 app/login.tsx diff --git a/app/login.tsx b/app/login.tsx new file mode 100644 index 0000000..129caca --- /dev/null +++ b/app/login.tsx @@ -0,0 +1,74 @@ +import React, { useState } from 'react'; +import { MainNav } from '@/components/main-nav'; + +const LoginPage = () => { + const [username, setUsername] = useState(''); + const [password, setPassword] = useState(''); + + const handleLogin = (e: React.FormEvent) => { + e.preventDefault(); + // TODO: Implement login logic + }; + + const handleCreateAccount = () => { + // TODO: Implement navigation to account creation + }; + + return ( + <> + +
+

Login or Create an Account

+
+
+ + setUsername(e.target.value)} + /> +
+
+ + setPassword(e.target.value)} + /> +
+
+ +
+
+
+ +
+
+ + ); +}; + +export default LoginPage;