2023-12-04 16:19:57 +00:00
|
|
|
import { Box, Divider } from "@mui/material"
|
|
|
|
import SidebarElement from "./SidebarElement"
|
2024-02-02 12:07:47 +00:00
|
|
|
import { ArrowBack, Home, Logout, Newspaper, Person, TableChartOutlined, Event } from "@mui/icons-material"
|
2023-12-04 16:19:57 +00:00
|
|
|
|
|
|
|
function Sidebar() {
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Box sx={{
|
|
|
|
width: "250px",
|
|
|
|
height: "100vh",
|
|
|
|
position: "fixed",
|
|
|
|
top: "0",
|
|
|
|
left: "0",
|
|
|
|
|
2024-02-02 12:07:47 +00:00
|
|
|
backgroundColor: "#121212",
|
2023-12-04 16:19:57 +00:00
|
|
|
boxShadow: "0 0 10px #00000055",
|
|
|
|
|
|
|
|
zIndex: 1000,
|
|
|
|
|
|
|
|
display: "flex",
|
|
|
|
flexDirection: "column",
|
|
|
|
justifyContent: "flex-start",
|
|
|
|
alignItems: "center",
|
|
|
|
|
|
|
|
py: "10px",
|
|
|
|
}}>
|
|
|
|
<img src="/logo.png" alt="logo" style={{
|
|
|
|
width: "80%",
|
|
|
|
marginBottom: "10px",
|
|
|
|
}} />
|
|
|
|
|
|
|
|
<Divider sx={{
|
|
|
|
width: "100%",
|
|
|
|
height: "1px",
|
|
|
|
|
|
|
|
mb: "5px",
|
|
|
|
}} />
|
|
|
|
|
|
|
|
<Box sx={{
|
|
|
|
width: "100%",
|
2023-12-04 23:00:08 +00:00
|
|
|
height: "100%",
|
2023-12-04 16:19:57 +00:00
|
|
|
|
|
|
|
display: "flex",
|
|
|
|
flexDirection: "column",
|
|
|
|
justifyContent: "center",
|
|
|
|
alignItems: "center",
|
|
|
|
gap: "2px",
|
|
|
|
}}>
|
|
|
|
<SidebarElement Title="Dashboard" Icon={Home} Path="/admin/dashboard" />
|
2024-02-02 12:07:47 +00:00
|
|
|
<SidebarElement Title="Daten import" Icon={TableChartOutlined} Path="/admin/import" />
|
|
|
|
<SidebarElement Title="Kalender" Icon={Event} Path="/admin/Kalender" />
|
2023-12-04 16:19:57 +00:00
|
|
|
<SidebarElement Title="Benutzer" Icon={Person} Path="/admin/benutzer" />
|
2023-12-04 23:00:08 +00:00
|
|
|
|
|
|
|
<SidebarElement Title="Zur Website" Icon={ArrowBack} Path="/" sx={{
|
|
|
|
mt: "auto",
|
|
|
|
}} />
|
|
|
|
<SidebarElement Title="Logout" Icon={Logout} Path="/admin/logout" />
|
2023-12-04 16:19:57 +00:00
|
|
|
</Box>
|
|
|
|
</Box>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
export default Sidebar
|