Browse Source

design update

master
Amit Roy 6 months ago
parent
commit
9f01631597
4 changed files with 29 additions and 6 deletions
  1. +2
    -0
      src/app/globals.scss
  2. +0
    -1
      src/app/page.tsx
  3. +10
    -0
      src/components/wrapper/DashboardWrapper.module.scss
  4. +17
    -5
      src/components/wrapper/dashboardWrapper.tsx

+ 2
- 0
src/app/globals.scss View File

@ -27,6 +27,8 @@
--input-border-default: #e0e3e7;
--input-border-hover: #b2bac2;
--dashboard-bg: #eef2f6; /* #EEF2F6 */
// ========== Font Family ==========
--font_primary: "roboto", sans-serif;
// ========== Font Weight ==========


+ 0
- 1
src/app/page.tsx View File

@ -1,6 +1,5 @@
import Image from "next/image";
import styles from "./page.module.scss";
import ResponsiveDrawer from "@/components/wrapper/dashboardWrapper";
export default function Home() {
return <main className={styles.main}>fdhdhfh</main>;


+ 10
- 0
src/components/wrapper/DashboardWrapper.module.scss View 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);
}

+ 17
- 5
src/components/wrapper/dashboardWrapper.tsx View File

@ -4,7 +4,6 @@ import * as React from "react";
import AppBar from "@mui/material/AppBar";
import Box from "@mui/material/Box";
import CssBaseline from "@mui/material/CssBaseline";
import Divider from "@mui/material/Divider";
import Drawer from "@mui/material/Drawer";
import IconButton from "@mui/material/IconButton";
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 Typography from "@mui/material/Typography";
import { useState } from "react";
import { UTILITY_CONSTANT } from "@/utilities/utilityConstant";
import styles from "./DashboardWrapper.module.scss";
const drawerWidth = 240;
const drawerWidth = 260;
interface Props {
window?: () => Window;
@ -49,9 +50,15 @@ export default function DashboardWrapper(props: Props) {
const drawer = (
<>
<Toolbar />
<Toolbar>
<img
src={UTILITY_CONSTANT.IMAGES.AUTH.HEADER_LOG}
alt="Logo"
className={styles.logo}
/>
</Toolbar>
{/* <Divider /> */}
<List>
<List sx={{ padding: "0", paddingInline: "18px" }}>
{["Project Table"].map((text, index) => (
<ListItem key={text} disablePadding>
<ListItemButton>
@ -70,7 +77,12 @@ export default function DashboardWrapper(props: Props) {
window !== undefined ? () => window().document.body : undefined;
return (
<Box sx={{ display: "flex" }} width={"100%"} height={"100%"}>
<Box
sx={{ display: "flex" }}
width={"100%"}
height={"100%"}
className={styles.dashboard_main}
>
<CssBaseline />
<AppBar
position="fixed"


Loading…
Cancel
Save