diff --git a/app/forgot-password/page.tsx b/app/forgot-password/page.tsx new file mode 100644 index 00000000..dfa00e92 --- /dev/null +++ b/app/forgot-password/page.tsx @@ -0,0 +1,7 @@ +"use client"; + +import React, { useState } from "react"; + +export default function Page() { + return
FORGOTPASSWORD
; +} diff --git a/app/login/page.tsx b/app/login/page.tsx new file mode 100644 index 00000000..8df17f96 --- /dev/null +++ b/app/login/page.tsx @@ -0,0 +1,75 @@ +"use client"; + +import React, { useState } from "react"; +import Link from "next/link"; +import { useRouter } from "next/navigation"; + +export default function Page() { + const [email, setEmail] = useState(""); + const [password, setPassword] = useState(""); + const router = useRouter(); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + console.log("Login attempt:", { email, password }); + + // TODO: Replace with real authentication + if (email === "test" && password === "1234") { + router.push("/dashboard"); + } else { + alert("Invalid email or password"); + } + }; + + return ( +
+
+ {/* Title */} +

+ login +

+ + {/* Email */} + setEmail(e.target.value)} + className="mb-4 w-full rounded-full border px-4 py-2 focus:ring-2 focus:outline-none" + /> + + {/* Password */} + setPassword(e.target.value)} + className="mb-4 w-full rounded-full border px-4 py-2 focus:ring-2 focus:outline-none" + /> + +
+ {/* Forgot Password */} + + Forgot Password? + + + {/* Login Button */} + +
+ + {/* Sign up Link */} +
+ No account?{" "} + + Sign up! + +
+
+
+ ); +} diff --git a/app/sign-up/page.tsx b/app/sign-up/page.tsx new file mode 100644 index 00000000..b0a46a96 --- /dev/null +++ b/app/sign-up/page.tsx @@ -0,0 +1,88 @@ +"use client"; + +import React, { useState } from "react"; +import Link from "next/link"; +import { useRouter } from "next/navigation"; + +export default function Page() { + const [email, setEmail] = useState(""); + const [password, setPassword] = useState(""); + const [confirmPassword, setConfirmPassword] = useState(""); + const router = useRouter(); + + const handleSubmit = (e: React.FormEvent) => { + e.preventDefault(); + console.log("Sign up attempt:", { + email, + password, + confirmPassword, + }); + + // TODO: Replace with real sign up information + if ( + email === "test" && + password === "1234" && + confirmPassword === password + ) { + router.push("/dashboard"); + } else { + alert("WOMP WOMP NO ACCOUNT FOR YOU"); + } + }; + + return ( +
+
+ {/* Title */} +

+ sign up +

+ + {/* Email */} + setEmail(e.target.value)} + className="mb-4 w-full rounded-full border px-4 py-2 focus:ring-2 focus:outline-none" + /> + + {/* Password */} + setPassword(e.target.value)} + className="mb-4 w-full rounded-full border px-4 py-2 focus:ring-2 focus:outline-none" + /> + + {/* Retype Password */} + setConfirmPassword(e.target.value)} + className="mb-4 w-full rounded-full border px-4 py-2 focus:ring-2 focus:outline-none" + /> + + {/* Sign Up Button */} +
+ +
+ + {/* Login Link */} +
+ Already have an account?{" "} + + Login! + +
+
+
+ ); +} diff --git a/app/ui/components/hamburger-menu.tsx b/app/ui/components/hamburger-menu.tsx index 736f5f79..cf941f53 100644 --- a/app/ui/components/hamburger-menu.tsx +++ b/app/ui/components/hamburger-menu.tsx @@ -66,7 +66,7 @@ export default function HamburgerMenu() {
  • - + Login/Signup