From e5c19c27442c2c43296c84dd45ec819f82adfe0a Mon Sep 17 00:00:00 2001 From: Daniel Cojocea Date: Tue, 27 Aug 2024 20:11:59 -0400 Subject: [PATCH] Refactored pages styling 1/? --- Client/src/Components/Inputs/Field/index.jsx | 9 +- Client/src/Components/Sidebar/index.jsx | 5 ++ .../TabPanels/Account/PasswordPanel.jsx | 15 +++- .../TabPanels/Account/ProfilePanel.jsx | 71 +++++++++++----- .../TabPanels/Account/TeamPanel.jsx | 56 ++++++++----- Client/src/Layouts/HomeLayout/index.css | 16 +--- Client/src/Pages/Account/index.css | 14 ---- Client/src/Pages/Account/index.jsx | 22 ++--- Client/src/Pages/Auth/CheckEmail.jsx | 47 +++++++---- Client/src/Pages/Auth/ForgotPassword.jsx | 42 ++++++---- Client/src/Pages/Auth/Login.jsx | 77 ++++++++++++----- .../src/Pages/Auth/NewPasswordConfirmed.jsx | 43 ++++++---- Client/src/Pages/Auth/Register/Register.jsx | 83 +++++++++++++------ Client/src/Pages/Auth/SetNewPassword.jsx | 43 ++++++---- Client/src/Pages/Auth/index.css | 10 --- Client/src/Pages/Maintenance/index.jsx | 21 ++++- Client/src/Pages/PageSpeed/index.jsx | 16 +++- Client/src/Pages/Status/index.jsx | 21 ++++- 18 files changed, 404 insertions(+), 207 deletions(-) diff --git a/Client/src/Components/Inputs/Field/index.jsx b/Client/src/Components/Inputs/Field/index.jsx index 12ecc8775..c993f1bbf 100644 --- a/Client/src/Components/Inputs/Field/index.jsx +++ b/Client/src/Components/Inputs/Field/index.jsx @@ -1,4 +1,5 @@ import PropTypes from "prop-types"; +import { forwardRef, useState } from "react"; import { useTheme } from "@emotion/react"; import { IconButton, @@ -9,10 +10,7 @@ import { } from "@mui/material"; import VisibilityOff from "@mui/icons-material/VisibilityOff"; import Visibility from "@mui/icons-material/Visibility"; -import ContentCopyIcon from "@mui/icons-material/ContentCopy"; -import Button from "../../Button"; import "./index.css"; -import { forwardRef, useState } from "react"; /** * @param {Object} props @@ -119,6 +117,11 @@ const Field = forwardRef( onChange={onChange} disabled={disabled} inputRef={ref} + inputProps={{ + sx: { + color: theme.palette.text.secondary, + }, + }} sx={ type === "url" ? { diff --git a/Client/src/Components/Sidebar/index.jsx b/Client/src/Components/Sidebar/index.jsx index 96d2fbd75..a79de47df 100644 --- a/Client/src/Components/Sidebar/index.jsx +++ b/Client/src/Components/Sidebar/index.jsx @@ -124,8 +124,13 @@ function Sidebar() { { }; return ( - + @@ -165,9 +172,9 @@ const PasswordPanel = () => { loadingText="Saving..." disabled={Object.keys(errors).length !== 0 && true} sx={{ - paddingX: theme.gap.large, + paddingX: theme.spacing(12), width: "fit-content", - mt: theme.gap.xl, + mt: theme.spacing(20), }} /> diff --git a/Client/src/Components/TabPanels/Account/ProfilePanel.jsx b/Client/src/Components/TabPanels/Account/ProfilePanel.jsx index 7d18b48c5..732919085 100644 --- a/Client/src/Components/TabPanels/Account/ProfilePanel.jsx +++ b/Client/src/Components/TabPanels/Account/ProfilePanel.jsx @@ -216,13 +216,20 @@ const ProfilePanel = () => { const isModalOpen = (name) => isOpen === name; return ( - + @@ -295,7 +302,7 @@ const ProfilePanel = () => { label="Update" onClick={openPictureModal} sx={{ - color: theme.palette.primary.main, + color: theme.palette.common.main, }} /> @@ -303,7 +310,9 @@ const ProfilePanel = () => { -