From 0f6407434530034c666a588637a02ded591a1ca6 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Sun, 19 Nov 2023 14:50:39 +0800 Subject: [PATCH] Added initial popup sidebar --- src/App.tsx | 2 +- src/Components/Header/Header.tsx | 34 +++++++++- src/Components/SidebarModal/SidebarModal.tsx | 65 ++++++++++++++++++++ src/Pages/LandingPage/LandingPage.tsx | 4 +- src/styles.tsx | 10 +-- 5 files changed, 104 insertions(+), 11 deletions(-) create mode 100644 src/Components/SidebarModal/SidebarModal.tsx diff --git a/src/App.tsx b/src/App.tsx index 471ad7c..d25be6c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -30,8 +30,8 @@ export default function App() { -

{props.label}

+
+ { + SetSidebarOpen(true); + }} + /> +
+

+ {props.label} +

+
+ SetSidebarOpen(false)}> + +
); } diff --git a/src/Components/SidebarModal/SidebarModal.tsx b/src/Components/SidebarModal/SidebarModal.tsx new file mode 100644 index 0000000..0a2d4ed --- /dev/null +++ b/src/Components/SidebarModal/SidebarModal.tsx @@ -0,0 +1,65 @@ +import styles, { colors } from "../../styles"; +import AccountCircleIcon from "@mui/icons-material/AccountCircle"; +import HomeIcon from "@mui/icons-material/Home"; +export default function SidebarModal() { + return ( +
+
+ +

+ Placeholder Name +

+
+
+
+ +

+ Dashboard +

+
+
+ ); +} diff --git a/src/Pages/LandingPage/LandingPage.tsx b/src/Pages/LandingPage/LandingPage.tsx index c68e5f0..eee369c 100644 --- a/src/Pages/LandingPage/LandingPage.tsx +++ b/src/Pages/LandingPage/LandingPage.tsx @@ -74,7 +74,7 @@ export default function LandingPage() { modal position={"top center"} contentStyle={{ - width: "30vw", + width: "512px", borderRadius: 16, borderColor: "grey", borderStyle: "solid", @@ -93,7 +93,7 @@ export default function LandingPage() { modal position={"top center"} contentStyle={{ - width: "30vw", + width: "512px", borderRadius: 16, borderColor: "grey", borderStyle: "solid", diff --git a/src/styles.tsx b/src/styles.tsx index 61d5b75..4a8f257 100644 --- a/src/styles.tsx +++ b/src/styles.tsx @@ -42,19 +42,19 @@ const styles: { [key: string]: React.CSSProperties } = { fontWeight: "bold", }, text_XL: { - fontSize: "clamp(2rem, 4rem, 8rem)", + fontSize: "clamp(2rem, 3rem, 8rem)", }, text_L: { - fontSize: "clamp(1.5rem, 3rem, 6rem)", + fontSize: "clamp(1.5rem, 2rem, 6rem)", }, text_M: { - fontSize: "clamp(1rem, 2rem, 4rem)", + fontSize: "clamp(1rem, 1rem, 4rem)", }, text_S: { - fontSize: "clamp(0.5rem, 1rem, 2rem)", + fontSize: "clamp(0.6rem, 0.8rem, 1rem)", }, text_XS: { - fontSize: "clamp(0.2rem, 0.5rem, 1rem)", + fontSize: "clamp(0.5rem, 0.6rem, 0.8rem)", }, flex_row: { display: "flex",