From 010fae221cfdaa173e58bc507670f9deddbe600d Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 12 May 2021 18:35:24 +0200 Subject: [PATCH] Start to build main screen --- src/ui/routes/MainRoute.tsx | 148 +++++++++++++++++++++++++++++++++++- 1 file changed, 144 insertions(+), 4 deletions(-) diff --git a/src/ui/routes/MainRoute.tsx b/src/ui/routes/MainRoute.tsx index 15ca18e..7eb007f 100644 --- a/src/ui/routes/MainRoute.tsx +++ b/src/ui/routes/MainRoute.tsx @@ -4,14 +4,154 @@ * @author Pierre Hubert */ -import { Route, BrowserRouter as Router, Switch } from "react-router-dom"; +import { + AppBar, + Badge, + Divider, + IconButton, + List, + ListItem, + ListItemIcon, + ListItemText, + makeStyles, + Paper, + Toolbar, + Typography, +} from "@material-ui/core"; +import DraftsIcon from "@material-ui/icons/Drafts"; +import InboxIcon from "@material-ui/icons/Inbox"; +import NotificationsIcon from "@material-ui/icons/Notifications"; +import React from "react"; +import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; + +const drawerWidth = 240; + +const useStyles = makeStyles((theme) => ({ + root: { + display: "flex", + }, + toolbar: { + paddingRight: 24, // keep right padding when drawer closed + }, + toolbarIcon: { + display: "flex", + alignItems: "center", + justifyContent: "flex-end", + padding: "0 8px", + ...theme.mixins.toolbar, + }, + appBar: { + zIndex: theme.zIndex.drawer + 1, + marginLeft: drawerWidth, + width: `100%`, + color: "white", + }, + menuButton: { + marginRight: 36, + }, + menuButtonHidden: { + display: "none", + }, + title: { + flexGrow: 1, + }, + appBarSpacer: theme.mixins.toolbar, + content: { + flexGrow: 1, + height: "100vh", + overflow: "auto", + }, + container: { + paddingTop: theme.spacing(4), + paddingBottom: theme.spacing(4), + }, + paper: { + padding: theme.spacing(2), + display: "flex", + overflow: "auto", + flexDirection: "column", + }, + fixedHeight: { + height: 240, + }, +})); + +function Menu() { + const classes = useStyles(); + + return ( +
+ + + + + + + + + + + + + + + + + + + + +
+ ); +} export function MainRoute() { + const classes = useStyles(); return ( - - Not found - + + + + Comunic Admin + + + + + + + + +
+ + + + +
+ + +

yes

+

yes

+

yes

+

yes

+

yes

Not found +
+
+
+
); }