From 25811848b5e2eede0c4cfb1e1bcb653a9948b882 Mon Sep 17 00:00:00 2001 From: Ahnaf An Nafee Date: Mon, 28 Feb 2022 14:24:39 -0500 Subject: [PATCH] fixed tab styling --- components/CustomTab.js | 30 ++++--------- components/SignIn.js | 99 ++++++++++++++++++++--------------------- components/SignUp.js | 6 ++- pages/authenticate.js | 7 ++- pages/index.js | 57 +----------------------- styles/global.css | 5 +-- 6 files changed, 70 insertions(+), 134 deletions(-) diff --git a/components/CustomTab.js b/components/CustomTab.js index 66194f4..1c6e0b6 100644 --- a/components/CustomTab.js +++ b/components/CustomTab.js @@ -5,48 +5,34 @@ import TabPanelUnstyled from "@mui/base/TabPanelUnstyled"; import { buttonUnstyledClasses } from "@mui/base/ButtonUnstyled"; import TabUnstyled, { tabUnstyledClasses } from "@mui/base/TabUnstyled"; -const blue = { - 50: "#F0F7FF", - 100: "#C2E0FF", - 200: "#80BFFF", - 300: "#66B2FF", - 400: "#3399FF", - 500: "#007FFF", - 600: "#0072E5", - 700: "#0059B2", - 800: "#004C99", - 900: "#003A75", -}; - export const CustomTab = styled(TabUnstyled)` - font-family: IBM Plex Sans, sans-serif; + font-family: Poppins, sans-serif; color: white; cursor: pointer; font-size: 0.875rem; font-weight: bold; background-color: transparent; width: 100%; - padding: 12px 16px; - margin: 6px 6px; + padding: 10px 12px; + margin: 4px 4px; border: none; - border-radius: 5px; + border-radius: 4px; display: flex; justify-content: center; &:hover { - background-color: ${blue[400]}; + background-color: #3d3d3d; } &:focus { color: #fff; border-radius: 3px; - outline: 2px solid ${blue[200]}; outline-offset: 2px; } &.${tabUnstyledClasses.selected} { - background-color: ${blue[50]}; - color: ${blue[600]}; + background-color: #fff; + color: #0f0f0f; } &.${buttonUnstyledClasses.disabled} { @@ -63,7 +49,7 @@ export const CustomTabPanel = styled(TabPanelUnstyled)` export const CustomTabsList = styled(TabsListUnstyled)` min-width: 320px; - background-color: ${blue[500]}; + background-color: #0f0f0f; border-radius: 8px; margin-bottom: 16px; display: flex; diff --git a/components/SignIn.js b/components/SignIn.js index d8e4072..296994e 100644 --- a/components/SignIn.js +++ b/components/SignIn.js @@ -13,24 +13,6 @@ import Typography from "@mui/material/Typography"; import Container from "@mui/material/Container"; import { createTheme, ThemeProvider } from "@mui/material/styles"; -function Copyright(props) { - return ( - - {"Copyright © "} - - Your Website - {" "} - {new Date().getFullYear()} - {"."} - - ); -} - const theme = createTheme(); export default function SignIn() { @@ -46,44 +28,59 @@ export default function SignIn() { return ( - + - - - +
+ + +
+ +
diff --git a/components/SignUp.js b/components/SignUp.js index 27fa0dd..2b3364d 100644 --- a/components/SignUp.js +++ b/components/SignUp.js @@ -48,7 +48,11 @@ export default function SignUp() { return ( - + + Authenticate - Bookworm diff --git a/pages/index.js b/pages/index.js index 2d56e1c..4f67998 100644 --- a/pages/index.js +++ b/pages/index.js @@ -8,68 +8,15 @@ export default function Home() { return (