adminFront/src/pages/dashboard/Header/index.tsx

66 lines
1.6 KiB
TypeScript
Raw Normal View History

2022-09-08 17:21:17 +00:00
import * as React from "react";
import { Box, Typography } from "@mui/material";
2022-09-20 14:35:49 +00:00
import theme from "../../../theme";
2022-09-08 17:21:17 +00:00
import ExitToAppOutlinedIcon from '@mui/icons-material/ExitToAppOutlined';
2022-09-20 14:35:49 +00:00
import Logo from "../../Logo";
2022-09-08 17:21:17 +00:00
const Header: React.FC = () => {
return (
<React.Fragment>
<Box sx={{
2022-09-09 13:54:49 +00:00
backgroundColor: theme.palette.menu.main,
2022-09-08 17:21:17 +00:00
width: "100%",
minHeight: "85px",
2022-09-08 17:21:17 +00:00
display: "flex",
justifyContent: "space-between",
flexWrap: 'wrap',
paddingLeft: '5px'
2022-09-08 17:21:17 +00:00
}}>
<Box sx={{
width: "150px",
display: "flex",
justifyContent: "right",
alignItems: "center"
}}>
<Logo />
</Box>
<Box sx={{
display: "flex"
}}>
<Typography
variant="h6"
sx={{
maxWidth: "230px",
2022-09-08 17:21:17 +00:00
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
fontWeight: "normal"
}}
>
Добро пожаловать, Администратор сервиса
</Typography>
<Box sx={{
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
cursor: "pointer",
padding: '0 31px'
2022-09-08 17:21:17 +00:00
}}>
<ExitToAppOutlinedIcon sx={{
2022-09-09 13:54:49 +00:00
color: theme.palette.golden.main,
2022-09-08 17:21:17 +00:00
transform: "scale(1.3)"
}} />
</Box>
</Box>
</Box>
</React.Fragment>
);
}
export default Header;