Skip to content

Commit

Permalink
update auth routes
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryJeager committed Apr 25, 2024
1 parent 0a5d219 commit 4254aad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions app/auth/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const Login = () => {
return (
// Render login form if user is not authenticated
sessionStatus !== "authenticated" && (
<div className="flex flex-col justify-start min-h-screen">
<div className="flex flex-col justify-start lg:min-h-screen">
<div className="flex flex-col justify-stretch gap-[1rem] items-start p-4 sm:px-24">
<div className="flex flex-col justify-center items-center mb-4 mx-auto">
<h1 className="text-4xl text-center font-bold mb-2 text-[#000000]">
Expand Down Expand Up @@ -120,11 +120,11 @@ const Login = () => {
</button>
{/* Or register link */}
{/* <div className="w-full flex flex-row justify-center items-center text-gray-500 mt-4">- OR -</div> */}
{/* <Link
className="block text-center text-blue-500 hover:underline mt-2 text-lg"
href="/signup">
<Link
className="block text-center mx-auto text-blue-500 hover:underline mt-2 text-lg"
href="/auth/signup">
Register Here
</Link> */}
</Link>
</div>
</div>
)
Expand Down
6 changes: 3 additions & 3 deletions app/auth/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Signup = () => {
}
if (res.status === 200) {
setError("");
router.push("/login");
router.push("/auth/login");
}
} catch (error) {
setError("Error, try again");
Expand All @@ -55,7 +55,7 @@ const Signup = () => {
};

return (
<div className="flex flex-col justify-start items-center min-h-screen">
<div className="flex flex-col justify-start items-center lg:min-h-screen">
<div className="flex flex-col justify-stretch items-center p-4 sm:px-24">
<div className="flex flex-col mb-8">
<h1 className="text-[2.5rem] text-center font-bold mb-4 text-[#000000]">
Expand Down Expand Up @@ -111,7 +111,7 @@ const Signup = () => {
</form>
<div className="w-full flex flex-row justify-center items-center text-gray-500 pb-4">- or -</div>
<button className="w-full border-2 border-blue-600 py-2 rounded-lg bg-white text-lg text-[#0B195B] hover:border-[#0B195B]">Continue with Google</button>
<Link href="/login" className="block text-center text-blue-500 hover:underline mt-2 text-lg">
<Link href="/auth/login" className="block text-center text-blue-500 hover:underline mt-2 text-lg">
Login with an existing account
</Link>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ const Navbar = () => {
/>
</svg>
</Link>
<Link href="/login">
<Link href="/">
<span>Overview</span>
</Link>
<Link href="/signup">
<Link href="/">
<span>Pricing</span>
</Link>
</li>
<li className=" hidden md:flex transition-all ">
<Link href="/signup">
<Link href="/auth/signup">
<Button text="Sign Up" />
</Link>
</li>
Expand Down

0 comments on commit 4254aad

Please sign in to comment.