diff --git a/src/client/src/components/Appbar.js b/src/client/src/components/Appbar.js deleted file mode 100644 index b6f439f..0000000 --- a/src/client/src/components/Appbar.js +++ /dev/null @@ -1,68 +0,0 @@ -import * as React from "react"; -import { BrowserRouter as Router, Link, Route, Routes, History } from "react-router-dom"; -import { AppBar, Typography, Toolbar, CssBaseline, Box, Button, IconButton, Grid, Menu, MenuItem } from "@mui/material" -import MenuIcon from '@mui/icons-material/Menu'; -import logo from "./../Asura2222.png"; - -export default function Appbar(props) { - const [auth, setAuth] = React.useState(true); - const [anchorEl, setAnchorEl] = React.useState(null); - - const handleMenu = (event) => { - setAnchorEl(event.currentTarget); - }; - - const handleClose = () => { - setAnchorEl(null); - }; - - return ( - <> - - - - - - - - Tournament logo - - - - - Home - - - - -

{props.pageTitle || ""}

-
- - - - - - - - Logout - - - - - Account - - - - - History - - - - -
-
-
-
- - ); -} \ No newline at end of file diff --git a/src/client/src/components/AsuraBar.js b/src/client/src/components/AsuraBar.js new file mode 100644 index 0000000..d1678b9 --- /dev/null +++ b/src/client/src/components/AsuraBar.js @@ -0,0 +1,81 @@ +import * as React from "react"; +import { BrowserRouter as Router, Link, Route, Routes, History } from "react-router-dom"; +import { AppBar, Typography, Toolbar, CssBaseline, Box, Button, IconButton, Grid, Menu, MenuItem, Container } from "@mui/material" +import MenuIcon from '@mui/icons-material/Menu'; +import AccountCircleIcon from '@mui/icons-material/AccountCircle'; +import HistoryIcon from '@mui/icons-material/History'; +import LogoutIcon from '@mui/icons-material/Logout'; +import logo from "./../Asura2222.png"; + +function loggedInMenu() { + const [anchorEl, setAnchorEl] = React.useState(null); + const open = Boolean(anchorEl); + const handleClick = (event) => { + setAnchorEl(event.currentTarget); + }; + const handleClose = () => { + setAnchorEl(null); + }; + return ( + <> + + + + + + + + + + ); +} + +function notLoggedInButton() { + return ( + <> + + + + + ); +} + +export default function Appbar(props) { + const isLoggedIn = true; + + return ( + <> + + + + + + + + + Tournament logo + + { props.pageTitle !== "Asura Tournaments" && + + + Home + + + } + + + +

{props.pageTitle || ""}

+
+ + { isLoggedIn ? : } + +
+
+
+
+ + ); +} \ No newline at end of file