Skip to content

Commit

Permalink
Refactor authentication structure by removing individual login and si…
Browse files Browse the repository at this point in the history
…gnup pages, and consolidating functionality into a unified Auth component. Update Header component to link to the new authentication page.
  • Loading branch information
upayanmazumder committed Nov 28, 2024
1 parent 5939c6e commit ab2ae4b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 22 deletions.
4 changes: 2 additions & 2 deletions app/src/app/auth/login/page.js → app/src/app/auth/page.js
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down
13 changes: 0 additions & 13 deletions app/src/app/auth/signup/page.js

This file was deleted.

10 changes: 3 additions & 7 deletions app/src/components/header/header.js
Original file line number Diff line number Diff line change
@@ -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 = () => {
Expand Down Expand Up @@ -31,13 +31,9 @@ const Header = () => {
<FaDiscord className={styles.iconStyle} />
Discord
</a>
<a href="/auth/signup" className={styles.button}> {/* Signup button */}
<FaUserPlus className={styles.iconStyle} />
Signup
</a>
<a href="/auth/login" className={styles.button}> {/* Login button */}
<a href="/auth" className={styles.button}>
<FaSignInAlt className={styles.iconStyle} />
Login
Authenticate
</a>
</div>
</div>
Expand Down

0 comments on commit ab2ae4b

Please sign in to comment.