diff --git a/src/App.tsx b/src/App.tsx index 77692a5..cd47e13 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,18 +1,17 @@ import { useMemo } from "react"; +import loadable from "@loadable/component"; +import { Capacitor } from "@capacitor/core"; import { Routes, Route } from "react-router-dom"; import { useTernaryDarkMode } from "usehooks-ts"; -import { createTheme, ThemeProvider } from "@mui/material/styles"; -import { Capacitor } from "@capacitor/core"; import { StatusBar, Style } from "@capacitor/status-bar"; -import loadable from "@loadable/component"; +import { createTheme, ThemeProvider } from "@mui/material/styles"; -import Seperator from "./components/Seperator"; +import Loading from "./components/Loading"; import { PrivateRoute, MenuAppBar } from "./components"; import { getDesignTokens } from "./utils/getDesignToken"; import { AccountMenuProvider, DrawerProvider } from "./context"; import NotesCategoryProvider from "./context/NotesCategoryProvider"; -import Loading from "./components/Loading"; const HomePage = loadable(() => import("./pages/Home")); const SignInPage = loadable(() => import("./pages/SignIn")); @@ -47,30 +46,28 @@ function App() { - - - - - - } /> - - - } - /> - } />} - /> - } />} - /> - - - + + + + + } /> + + + } + /> + } />} + /> + } />} + /> + + diff --git a/src/components/MenuAppBar.tsx b/src/components/MenuAppBar.tsx index 999bd9c..ca4a894 100644 --- a/src/components/MenuAppBar.tsx +++ b/src/components/MenuAppBar.tsx @@ -15,7 +15,7 @@ function MenuAppBar() { const { isDrawerOpen, setDrawerIsOpen } = useDrawer(); return ( - + {user && ( diff --git a/src/components/Seperator.tsx b/src/components/Seperator.tsx index 3410b5a..20041e6 100644 --- a/src/components/Seperator.tsx +++ b/src/components/Seperator.tsx @@ -1,5 +1,5 @@ function Seperator(props: { children: React.ReactNode }) { - return
{props.children}
; + return
{props.children}
; } export default Seperator; diff --git a/src/index.css b/src/index.css index 693cbe6..b506ca8 100644 --- a/src/index.css +++ b/src/index.css @@ -1,20 +1,25 @@ @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap"); body { - margin: 0; - padding: 0; - box-sizing: border-box; + margin: 0; + padding: 0; + box-sizing: border-box; + height: 100vh; +} + +#root { + height: 100vh; } .container { - display: grid; - place-items: center; - width: 100%; - height: 100vh; - background: #000000; + display: grid; + place-items: center; + width: 100%; + height: 100vh; + background: #000000; } .animation-container { - background: #000000; - max-width: 512px; + background: #000000; + max-width: 512px; } diff --git a/src/pages/SignIn.tsx b/src/pages/SignIn.tsx index fa8917d..da8ef74 100644 --- a/src/pages/SignIn.tsx +++ b/src/pages/SignIn.tsx @@ -128,7 +128,7 @@ export default function SignIn() { )} - + )} - + {"Already have an account? Sign In"}