From 5d86550382651a7154c4569acf6abe785cc668b5 Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Sun, 19 Nov 2023 19:47:37 +0700 Subject: [PATCH] Modifying signup page. --- .../components/authentication/SignUpPage.jsx | 210 ++++++++++++------ 1 file changed, 137 insertions(+), 73 deletions(-) diff --git a/frontend/src/components/authentication/SignUpPage.jsx b/frontend/src/components/authentication/SignUpPage.jsx index 28eb1c2..06f3ce0 100644 --- a/frontend/src/components/authentication/SignUpPage.jsx +++ b/frontend/src/components/authentication/SignUpPage.jsx @@ -1,7 +1,6 @@ import React, { useState } from "react"; import { useNavigate } from "react-router-dom"; import axiosapi from "../../api/AuthenticationApi"; - import Avatar from "@mui/material/Avatar"; import Button from "@mui/material/Button"; import CssBaseline from "@mui/material/CssBaseline"; @@ -13,8 +12,9 @@ import Grid from "@mui/material/Grid"; import Box from "@mui/material/Box"; import LockOutlinedIcon from "@mui/icons-material/LockOutlined"; import Typography from "@mui/material/Typography"; -import Container from "@mui/material/Container"; -import { createTheme, ThemeProvider } from "@mui/material/styles"; +import { useCallback } from "react"; +import Particles from "react-tsparticles"; +import { loadFull } from "tsparticles"; function Copyright(props) { return ( @@ -29,7 +29,6 @@ function Copyright(props) { ); } -const defaultTheme = createTheme(); export default function SignUp() { const Navigate = useNavigate(); @@ -62,82 +61,147 @@ export default function SignUp() { const { name, value } = e.target; setFormData({ ...formData, [name]: value }); }; + { + /* Particles Loader*/ + } + const particlesInit = useCallback(async (engine) => { + console.log(engine); + await loadFull(engine); + }, []); + + const particlesLoaded = useCallback(async (container) => { + console.log(container); + }, []); + return ( - - - - - - - +
+ {/* Particles Container */} +
+ +
+
+
+ {/* Register Form */} Sign up - - - - - - - - - - - - - } - label="I want to receive inspiration, marketing promotions and updates via email." - /> - - +
+ + + + } + label="I want to receive inspiration, marketing promotions and updates via email." + /> - - - - Already have an account? Sign in - - - - - - - - + {/* Already have an account? */} + + +
+
+
); + }