diff --git a/package.json b/package.json index 00f07ac..8449a9a 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "version": "0.0.0", "type": "module", "scripts": { - "dev": "vite", + "dev": "vite --host", "build": "tsc -b && vite build", "lint": "eslint .", "preview": "vite preview" diff --git a/src/App.tsx b/src/App.tsx index e26f07d..1de0b5a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,15 +1,54 @@ -import { useState } from 'react' -import './App.css' -import { Outlet } from 'react-router-dom' +import { Drawer, Grid2, List, ListItem, ListItemText } from "@mui/material"; +import { Link, Outlet } from "react-router-dom"; -function App() { - const [count, setCount] = useState(0) +export default function App () { + return( + <> + + +
+
+ logo +

Welcome to React

+
+
+
    +
  • Home
  • +
  • Reglamentos
  • +
  • About
  • +
+
+
+ {/* + + + + Home + + + + + About + + + + + Contact + + + + + Faq + + + + */} +
+ + + +
- return ( - <> - - - ) -} - -export default App + + ) +} \ No newline at end of file diff --git a/src/components/layout/Layout.tsx b/src/components/layout/Layout.tsx index 5032aca..b071eef 100644 --- a/src/components/layout/Layout.tsx +++ b/src/components/layout/Layout.tsx @@ -1,16 +1,82 @@ -import { Box, AppBar, Toolbar, IconButton, Typography, Button, Grid } from "@mui/material"; +import { AppBar, Box, Button, Divider, Drawer, Grid2, IconButton, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Toolbar, Typography } from "@mui/material"; +import { Link, Outlet } from "react-router-dom"; import MenuIcon from '@mui/icons-material/Menu'; -import { Outlet } from "react-router-dom"; +import React from "react"; +import InboxIcon from '@mui/icons-material/MoveToInbox'; +import MailIcon from '@mui/icons-material/Mail'; + + + export default function Layout () { + // const classes = useStyles(); + // const theme = useTheme(); + const [open, setOpen] = React.useState(false); + + const onMenuClick = (event: MouseEvent): void => { + const newState = !open; + console.log(`>> State: ${newState}`); + setOpen(newState) + } + const DrawerList = ( + + + {['Inbox', 'Starred', 'Send email', 'Drafts'].map((text, index) => ( + + + + {index % 2 === 0 ? : } + + + + + ))} + + + + {['All mail', 'Trash', 'Spam'].map((text, index) => ( + + + + {index % 2 === 0 ? : } + + + + + ))} + + + ); + return( - - - + + + + + + + + + Compendium Arcana + + + + + + {DrawerList} + + + + + + ) -} \ No newline at end of file +} +