From d827f5b8a2857098c513360eca5890ee381fa096 Mon Sep 17 00:00:00 2001 From: Pattadon Date: Thu, 23 Nov 2023 14:40:47 +0700 Subject: [PATCH] Refactor login and signup pages, add floating particles component --- frontend/src/components/FlaotingParticles.jsx | 9 +------ .../components/authentication/LoginPage.jsx | 27 +++++++++++++------ .../components/authentication/SignUpPage.jsx | 14 +++++++--- .../components/landingPage/LandingPage.jsx | 17 +++++++----- 4 files changed, 41 insertions(+), 26 deletions(-) diff --git a/frontend/src/components/FlaotingParticles.jsx b/frontend/src/components/FlaotingParticles.jsx index c6d103a..e621f55 100644 --- a/frontend/src/components/FlaotingParticles.jsx +++ b/frontend/src/components/FlaotingParticles.jsx @@ -8,14 +8,7 @@ export function FloatingParticles() { }, []); return ( -
+
- -
+ +
+ {/* Particles Container */} + + {/* Login Box */}
@@ -78,7 +85,8 @@ export function LoginPage() { xmlns="http://www.w3.org/2000/svg" className="stroke-current shrink-0 h-6 w-6" fill="none" - viewBox="0 0 24 24"> + viewBox="0 0 24 24" + >
{/* Login Button */} -
OR
{/* Login with Google Button */} -
-
- -
); diff --git a/frontend/src/components/authentication/SignUpPage.jsx b/frontend/src/components/authentication/SignUpPage.jsx index 08628e8..0492412 100644 --- a/frontend/src/components/authentication/SignUpPage.jsx +++ b/frontend/src/components/authentication/SignUpPage.jsx @@ -5,6 +5,7 @@ import { useGoogleLogin } from "@react-oauth/google"; import { NavPreLogin } from "../navigations/NavPreLogin"; import { useAuth } from "src/hooks/AuthHooks"; import { createUser, googleLogin } from "src/api/AuthenticationApi"; +import { FloatingParticles } from "../FlaotingParticles"; export function SignUp() { const Navigate = useNavigate(); @@ -76,9 +77,13 @@ export function SignUp() { return (
- +
- {/* ... (other code) */} +
{/* Register Form */} @@ -136,7 +141,10 @@ export function SignUp() {
OR
{/* Login with Google Button */} - diff --git a/frontend/src/components/landingPage/LandingPage.jsx b/frontend/src/components/landingPage/LandingPage.jsx index e26a44a..1b0bd9e 100644 --- a/frontend/src/components/landingPage/LandingPage.jsx +++ b/frontend/src/components/landingPage/LandingPage.jsx @@ -2,13 +2,10 @@ import { FloatingParticles } from "../FlaotingParticles"; export function LandingPage() { return ( -
+
{/* Particles Container */} {/* Navbar */} -
-
-
@@ -24,12 +21,18 @@ export function LandingPage() { -

Unleash productivity with our personal task and project management.

+

+ Unleash productivity with our personal task and project + management. +