design update
This commit is contained in:
parent
4709dab695
commit
9f01631597
@ -27,6 +27,8 @@
|
|||||||
--input-border-default: #e0e3e7;
|
--input-border-default: #e0e3e7;
|
||||||
--input-border-hover: #b2bac2;
|
--input-border-hover: #b2bac2;
|
||||||
|
|
||||||
|
--dashboard-bg: #eef2f6; /* #EEF2F6 */
|
||||||
|
|
||||||
// ========== Font Family ==========
|
// ========== Font Family ==========
|
||||||
--font_primary: "roboto", sans-serif;
|
--font_primary: "roboto", sans-serif;
|
||||||
// ========== Font Weight ==========
|
// ========== Font Weight ==========
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import styles from "./page.module.scss";
|
import styles from "./page.module.scss";
|
||||||
import ResponsiveDrawer from "@/components/wrapper/dashboardWrapper";
|
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
return <main className={styles.main}>fdhdhfh</main>;
|
return <main className={styles.main}>fdhdhfh</main>;
|
||||||
|
10
src/components/wrapper/DashboardWrapper.module.scss
Normal file
10
src/components/wrapper/DashboardWrapper.module.scss
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
@use "@/theme/sass/helper" as *;
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
width: 100%;
|
||||||
|
max-height: 50px;
|
||||||
|
object-fit: contain;
|
||||||
|
}
|
||||||
|
.dashboard_main {
|
||||||
|
background: var(--dashboard-bg);
|
||||||
|
}
|
@ -4,7 +4,6 @@ import * as React from "react";
|
|||||||
import AppBar from "@mui/material/AppBar";
|
import AppBar from "@mui/material/AppBar";
|
||||||
import Box from "@mui/material/Box";
|
import Box from "@mui/material/Box";
|
||||||
import CssBaseline from "@mui/material/CssBaseline";
|
import CssBaseline from "@mui/material/CssBaseline";
|
||||||
import Divider from "@mui/material/Divider";
|
|
||||||
import Drawer from "@mui/material/Drawer";
|
import Drawer from "@mui/material/Drawer";
|
||||||
import IconButton from "@mui/material/IconButton";
|
import IconButton from "@mui/material/IconButton";
|
||||||
import InboxIcon from "@mui/icons-material/MoveToInbox";
|
import InboxIcon from "@mui/icons-material/MoveToInbox";
|
||||||
@ -18,8 +17,10 @@ import MenuIcon from "@mui/icons-material/Menu";
|
|||||||
import Toolbar from "@mui/material/Toolbar";
|
import Toolbar from "@mui/material/Toolbar";
|
||||||
import Typography from "@mui/material/Typography";
|
import Typography from "@mui/material/Typography";
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
|
import { UTILITY_CONSTANT } from "@/utilities/utilityConstant";
|
||||||
|
import styles from "./DashboardWrapper.module.scss";
|
||||||
|
|
||||||
const drawerWidth = 240;
|
const drawerWidth = 260;
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
window?: () => Window;
|
window?: () => Window;
|
||||||
@ -49,9 +50,15 @@ export default function DashboardWrapper(props: Props) {
|
|||||||
|
|
||||||
const drawer = (
|
const drawer = (
|
||||||
<>
|
<>
|
||||||
<Toolbar />
|
<Toolbar>
|
||||||
|
<img
|
||||||
|
src={UTILITY_CONSTANT.IMAGES.AUTH.HEADER_LOG}
|
||||||
|
alt="Logo"
|
||||||
|
className={styles.logo}
|
||||||
|
/>
|
||||||
|
</Toolbar>
|
||||||
{/* <Divider /> */}
|
{/* <Divider /> */}
|
||||||
<List>
|
<List sx={{ padding: "0", paddingInline: "18px" }}>
|
||||||
{["Project Table"].map((text, index) => (
|
{["Project Table"].map((text, index) => (
|
||||||
<ListItem key={text} disablePadding>
|
<ListItem key={text} disablePadding>
|
||||||
<ListItemButton>
|
<ListItemButton>
|
||||||
@ -70,7 +77,12 @@ export default function DashboardWrapper(props: Props) {
|
|||||||
window !== undefined ? () => window().document.body : undefined;
|
window !== undefined ? () => window().document.body : undefined;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box sx={{ display: "flex" }} width={"100%"} height={"100%"}>
|
<Box
|
||||||
|
sx={{ display: "flex" }}
|
||||||
|
width={"100%"}
|
||||||
|
height={"100%"}
|
||||||
|
className={styles.dashboard_main}
|
||||||
|
>
|
||||||
<CssBaseline />
|
<CssBaseline />
|
||||||
<AppBar
|
<AppBar
|
||||||
position="fixed"
|
position="fixed"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user