From ab2ae4bf8a5e90a93647248cec0296f3ae3980e2 Mon Sep 17 00:00:00 2001 From: upayanmazumder Date: Fri, 29 Nov 2024 02:45:44 +0530 Subject: [PATCH] Refactor authentication structure by removing individual login and signup pages, and consolidating functionality into a unified Auth component. Update Header component to link to the new authentication page. --- app/src/app/auth/{login => }/page.js | 4 ++-- app/src/app/auth/signup/page.js | 13 ------------- app/src/components/header/header.js | 10 +++------- 3 files changed, 5 insertions(+), 22 deletions(-) rename app/src/app/auth/{login => }/page.js (64%) delete mode 100644 app/src/app/auth/signup/page.js diff --git a/app/src/app/auth/login/page.js b/app/src/app/auth/page.js similarity index 64% rename from app/src/app/auth/login/page.js rename to app/src/app/auth/page.js index 447dbbf..a3fe80c 100644 --- a/app/src/app/auth/login/page.js +++ b/app/src/app/auth/page.js @@ -1,6 +1,6 @@ -import styles from "../../page.module.css"; +import styles from "../page.module.css"; -import Auth from "../../../components/auth/auth" +import Auth from "../../components/auth/auth" export default function Home() { return ( diff --git a/app/src/app/auth/signup/page.js b/app/src/app/auth/signup/page.js deleted file mode 100644 index 447dbbf..0000000 --- a/app/src/app/auth/signup/page.js +++ /dev/null @@ -1,13 +0,0 @@ -import styles from "../../page.module.css"; - -import Auth from "../../../components/auth/auth" - -export default function Home() { - return ( -
-
- -
-
- ); -} diff --git a/app/src/components/header/header.js b/app/src/components/header/header.js index 16b5709..7f70d3a 100644 --- a/app/src/components/header/header.js +++ b/app/src/components/header/header.js @@ -1,5 +1,5 @@ import React from 'react'; -import { FaGithub, FaLink, FaDiscord, FaCloud, FaUserPlus, FaSignInAlt } from 'react-icons/fa'; // Import FaSignInAlt for the login button +import { FaGithub, FaLink, FaDiscord, FaCloud, FaSignInAlt } from 'react-icons/fa'; import styles from './header.module.css'; const Header = () => { @@ -31,13 +31,9 @@ const Header = () => { Discord - {/* Signup button */} - - Signup - - {/* Login button */} + - Login + Authenticate