From a051f964bb7e7df621b150ec9de459f164363d2f Mon Sep 17 00:00:00 2001 From: Abhishek Dhatrak Date: Fri, 20 Mar 2026 21:37:21 +0530 Subject: [PATCH 1/2] Enhance LeftSection UI with gradient, hover effects, and animations --- frontend/src/Pages/Authentication.tsx | 41 ++++++++++++++++----------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/frontend/src/Pages/Authentication.tsx b/frontend/src/Pages/Authentication.tsx index dd66c7d1..c5d87b00 100644 --- a/frontend/src/Pages/Authentication.tsx +++ b/frontend/src/Pages/Authentication.tsx @@ -6,31 +6,40 @@ import DebateCover from '../assets/DebateCover4.svg'; import { ThemeToggle } from '@/components/ThemeToggle'; const LeftSection = () => ( -
-
- - - {/* SVG Content */} - +
+ + {/* Logo */} +
+ Arguehub
+ + {/* Image */}
- Debate Cover -
-
-
-

- "We cannot solve our problems with the same thinking we used when we created them." -

-
Albert Einstein
-
+ Debate Cover
+ + {/* Quote */} +
+

+ "We cannot solve our problems with the same thinking we used when we created them." +

+
— Albert Einstein
+
); - interface RightSectionProps { authMode: 'login' | 'signup' | 'otpVerification' | 'forgotPassword' | 'resetPassword'; toggleAuthMode: () => void; From 7c467f6b83331caa611347b23aa96a893f3d5b85 Mon Sep 17 00:00:00 2001 From: Abhishek Dhatrak Date: Sat, 21 Mar 2026 23:02:57 +0530 Subject: [PATCH 2/2] fix: remove unrelated auth UI changes --- frontend/src/Pages/Home.tsx | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/frontend/src/Pages/Home.tsx b/frontend/src/Pages/Home.tsx index 7a9e1272..c5087922 100644 --- a/frontend/src/Pages/Home.tsx +++ b/frontend/src/Pages/Home.tsx @@ -1,4 +1,4 @@ -import React, { useContext } from "react"; +import React, { useContext, useState } from "react"; import { Button } from "@/components/ui/button"; import { useNavigate } from "react-router-dom"; import { AuthContext } from "@/context/authContext"; @@ -6,10 +6,11 @@ import DebateCover from "../assets/DebateCover4.svg"; import { RiRobot2Fill } from "react-icons/ri"; import { FaHandshakeSimpleSlash } from "react-icons/fa6"; import AOSSIELogo from "@/assets/aossie.png"; - const Home: React.FC = () => { const navigate = useNavigate(); const authContext = useContext(AuthContext); + const [loading, setLoading] = useState(null); + const delay = (ms: number) => new Promise(res => setTimeout(res, ms)); const signupHandler = () => { navigate('/auth', { state: { isSignUp: true } }); @@ -19,20 +20,32 @@ const Home: React.FC = () => { navigate('/auth', { state: { isSignUp: false } }); }; - const handlePlayDebateClick = () => { + const handlePlayDebateClick = async () => { + setLoading("online"); + + await delay(800); + if (authContext?.isAuthenticated) { - navigate('/game'); + navigate('/game'); } else { navigate('/auth', { state: { isSignUp: false } }); } + + setLoading(null); }; - const handlePlayBotClick = () => { + const handlePlayBotClick = async () => { + setLoading("bot"); + + await delay(800); + if (authContext?.isAuthenticated) { - navigate('/bot-selection'); // Navigate to bot selection page + navigate('/bot-selection'); } else { - navigate('/auth', { state: { isSignUp: false } }); // Navigate to login page if not authenticated + navigate('/auth', { state: { isSignUp: false } }); } + + setLoading(null); }; const logoutHandler = () =>{