адаптивность для тарифов и страницы пользователей
This commit is contained in:
parent
5d147cdf1e
commit
0d687779eb
@ -36,8 +36,7 @@ const Contractor: React.FC<MWProps> = ({ openModal }) => {
|
|||||||
onClick={ () => openModal(3, 1) }
|
onClick={ () => openModal(3, 1) }
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "320px",
|
padding: '11px 65px',
|
||||||
height: "82px",
|
|
||||||
fontWeight: "normal",
|
fontWeight: "normal",
|
||||||
fontSize: "17px",
|
fontSize: "17px",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
@ -51,8 +50,7 @@ const Contractor: React.FC<MWProps> = ({ openModal }) => {
|
|||||||
onClick={ () => openModal(3, 1) }
|
onClick={ () => openModal(3, 1) }
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "320px",
|
padding: '11px 65px',
|
||||||
height: "82px",
|
|
||||||
fontWeight: "normal",
|
fontWeight: "normal",
|
||||||
fontSize: "17px",
|
fontSize: "17px",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
@ -65,8 +63,7 @@ const Contractor: React.FC<MWProps> = ({ openModal }) => {
|
|||||||
variant = "contained"
|
variant = "contained"
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "320px",
|
padding: '11px 65px',
|
||||||
height: "52px",
|
|
||||||
fontWeight: "normal",
|
fontWeight: "normal",
|
||||||
fontSize: "17px",
|
fontSize: "17px",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
|
@ -305,7 +305,7 @@ console.log(amount)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Box style={{ width: "100%" }}>
|
<Box style={{ width: "93%" }}>
|
||||||
<Box style={{ height: 400 }}>
|
<Box style={{ height: 400 }}>
|
||||||
<DataGrid
|
<DataGrid
|
||||||
checkboxSelection={true}
|
checkboxSelection={true}
|
||||||
@ -348,12 +348,13 @@ console.log(amount)
|
|||||||
onClick={ () => openModal() }
|
onClick={ () => openModal() }
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "320px",
|
padding: "6px 30px",
|
||||||
height: "42px",
|
|
||||||
fontWeight: "normal",
|
fontWeight: "normal",
|
||||||
fontSize: "17px",
|
fontSize: "17px",
|
||||||
marginTop: "45px",
|
marginTop: "45px",
|
||||||
marginBottom: "15px",
|
marginBottom: "15px",
|
||||||
|
maxWidth: '320px',
|
||||||
|
width: '100%',
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
backgroundColor: theme.palette.grayMedium.main
|
backgroundColor: theme.palette.grayMedium.main
|
||||||
}
|
}
|
||||||
@ -366,8 +367,7 @@ console.log(amount)
|
|||||||
onClick={ () => handleToBasket() }
|
onClick={ () => handleToBasket() }
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "320px",
|
padding: "6px 69px",
|
||||||
height: "42px",
|
|
||||||
fontWeight: "normal",
|
fontWeight: "normal",
|
||||||
fontSize: "17px",
|
fontSize: "17px",
|
||||||
marginBottom: "95px",
|
marginBottom: "95px",
|
||||||
@ -387,7 +387,8 @@ console.log(amount)
|
|||||||
marginBottom: "45px",
|
marginBottom: "45px",
|
||||||
}}>
|
}}>
|
||||||
<Box sx={{
|
<Box sx={{
|
||||||
width: "480px",
|
maxWidth: "480px",
|
||||||
|
width: '100%',
|
||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: "space-between",
|
justifyContent: "space-between",
|
||||||
}}>
|
}}>
|
||||||
@ -488,7 +489,8 @@ console.log(amount)
|
|||||||
display: "flex",
|
display: "flex",
|
||||||
marginTop: "15px",
|
marginTop: "15px",
|
||||||
marginBottom: "15px",
|
marginBottom: "15px",
|
||||||
width: "350px",
|
maxWidth: "350px",
|
||||||
|
width: '100%',
|
||||||
justifyContent: "space-between"
|
justifyContent: "space-between"
|
||||||
}}>
|
}}>
|
||||||
<FormControlLabel control={
|
<FormControlLabel control={
|
||||||
@ -526,7 +528,9 @@ console.log(amount)
|
|||||||
|
|
||||||
<List sx={{
|
<List sx={{
|
||||||
border: "1px solid",
|
border: "1px solid",
|
||||||
borderColor: theme.palette.secondary.main
|
borderColor: theme.palette.secondary.main,
|
||||||
|
maxWidth: '745px',
|
||||||
|
width: '100%',
|
||||||
}}>
|
}}>
|
||||||
<ListItem>
|
<ListItem>
|
||||||
<ListItemAvatar>
|
<ListItemAvatar>
|
||||||
@ -539,15 +543,28 @@ console.log(amount)
|
|||||||
</ListItemAvatar>
|
</ListItemAvatar>
|
||||||
<ListItemText
|
<ListItemText
|
||||||
primary="Название"
|
primary="Название"
|
||||||
sx={{ textAlign: "center", minWidth: "250px", maxWidth: "250px" }}
|
sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
// minWidth: "250px",
|
||||||
|
maxWidth: "250px",
|
||||||
|
padding: '0 10px'
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
<ListItemText
|
<ListItemText
|
||||||
primary="Цена"
|
primary="Цена"
|
||||||
sx={{ textAlign: "center", minWidth: "200px", maxWidth: "200px" }}
|
sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
// minWidth: "200px",
|
||||||
|
padding: '0 10px',
|
||||||
|
maxWidth: "200px" }}
|
||||||
/>
|
/>
|
||||||
<ListItemText
|
<ListItemText
|
||||||
primary="Скидки"
|
primary="Скидки"
|
||||||
sx={{ textAlign: "center", minWidth: "200px", maxWidth: "400px" }}
|
sx={{
|
||||||
|
textAlign: "center",
|
||||||
|
// minWidth: "200px",
|
||||||
|
padding: '0 10px',
|
||||||
|
maxWidth: "400px" }}
|
||||||
/>
|
/>
|
||||||
<IconButton edge="end" aria-label="delete">
|
<IconButton edge="end" aria-label="delete">
|
||||||
<DeleteIcon sx={{
|
<DeleteIcon sx={{
|
||||||
|
@ -36,8 +36,7 @@ const Quiz: React.FC<MWProps> = ({ openModal }) => {
|
|||||||
onClick={ () => openModal(2, 1) }
|
onClick={ () => openModal(2, 1) }
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "320px",
|
padding: "11px 43px",
|
||||||
height: "52px",
|
|
||||||
fontWeight: "normal",
|
fontWeight: "normal",
|
||||||
fontSize: "17px",
|
fontSize: "17px",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
@ -51,8 +50,7 @@ const Quiz: React.FC<MWProps> = ({ openModal }) => {
|
|||||||
onClick={ () => openModal(2, 0) }
|
onClick={ () => openModal(2, 0) }
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "320px",
|
padding: '11px 43px',
|
||||||
height: "52px",
|
|
||||||
fontWeight: "normal",
|
fontWeight: "normal",
|
||||||
fontSize: "17px",
|
fontSize: "17px",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
@ -65,8 +63,7 @@ const Quiz: React.FC<MWProps> = ({ openModal }) => {
|
|||||||
variant = "contained"
|
variant = "contained"
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "320px",
|
padding: '11px 43px',
|
||||||
height: "52px",
|
|
||||||
fontWeight: "normal",
|
fontWeight: "normal",
|
||||||
fontSize: "17px",
|
fontSize: "17px",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
|
@ -36,10 +36,9 @@ const Templater: React.FC<MWProps> = ({ openModal }) => {
|
|||||||
onClick={ () => openModal(1, 1) }
|
onClick={ () => openModal(1, 1) }
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "320px",
|
|
||||||
height: "52px",
|
|
||||||
fontWeight: "normal",
|
fontWeight: "normal",
|
||||||
fontSize: "17px",
|
fontSize: "17px",
|
||||||
|
padding: '11px 25px',
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
backgroundColor: theme.palette.grayMedium.main
|
backgroundColor: theme.palette.grayMedium.main
|
||||||
}
|
}
|
||||||
@ -51,8 +50,7 @@ const Templater: React.FC<MWProps> = ({ openModal }) => {
|
|||||||
onClick={ () => openModal(1, 0) }
|
onClick={ () => openModal(1, 0) }
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "320px",
|
padding: '11px 25px',
|
||||||
height: "52px",
|
|
||||||
fontWeight: "normal",
|
fontWeight: "normal",
|
||||||
fontSize: "17px",
|
fontSize: "17px",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
@ -66,8 +64,7 @@ const Templater: React.FC<MWProps> = ({ openModal }) => {
|
|||||||
onClick={ () => openModal(1, 2) }
|
onClick={ () => openModal(1, 2) }
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "320px",
|
padding: '11px 25px',
|
||||||
height: "52px",
|
|
||||||
fontWeight: "normal",
|
fontWeight: "normal",
|
||||||
fontSize: "17px",
|
fontSize: "17px",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
@ -80,8 +77,7 @@ const Templater: React.FC<MWProps> = ({ openModal }) => {
|
|||||||
variant = "contained"
|
variant = "contained"
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "320px",
|
padding: '11px 25px',
|
||||||
height: "52px",
|
|
||||||
fontWeight: "normal",
|
fontWeight: "normal",
|
||||||
fontSize: "17px",
|
fontSize: "17px",
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
|
@ -64,8 +64,7 @@ const Users: React.FC = () => {
|
|||||||
variant="text"
|
variant="text"
|
||||||
onClick={ () => navigate("/modalAdmin") }
|
onClick={ () => navigate("/modalAdmin") }
|
||||||
sx={{
|
sx={{
|
||||||
width: "90%",
|
width: "84%",
|
||||||
height: "60px",
|
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
@ -84,7 +83,7 @@ const Users: React.FC = () => {
|
|||||||
|
|
||||||
|
|
||||||
<Accordion sx={{
|
<Accordion sx={{
|
||||||
width: "90%",
|
width: "84%",
|
||||||
backgroundColor: theme.palette.content.main
|
backgroundColor: theme.palette.content.main
|
||||||
}} expanded={ accordionState }>
|
}} expanded={ accordionState }>
|
||||||
<AccordionSummary
|
<AccordionSummary
|
||||||
@ -256,18 +255,27 @@ const Users: React.FC = () => {
|
|||||||
color: theme.palette.secondary.main
|
color: theme.palette.secondary.main
|
||||||
} }}
|
} }}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Box
|
||||||
variant = "text"
|
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.content.main,
|
display: 'flex',
|
||||||
color: theme.palette.secondary.main,
|
justifyContent: 'center',
|
||||||
width: "20%",
|
maxWidth: '317px',
|
||||||
"&:hover": {
|
width: '100%'
|
||||||
backgroundColor: theme.palette.content.main
|
}}
|
||||||
}
|
>
|
||||||
}}>
|
<Button
|
||||||
НАЙТИ
|
variant = "text"
|
||||||
</Button>
|
sx={{
|
||||||
|
backgroundColor: theme.palette.content.main,
|
||||||
|
color: theme.palette.secondary.main,
|
||||||
|
// width: "20%",
|
||||||
|
"&:hover": {
|
||||||
|
backgroundColor: theme.palette.content.main
|
||||||
|
}
|
||||||
|
}}>
|
||||||
|
НАЙТИ
|
||||||
|
</Button>
|
||||||
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Box sx={{ display: "flex" }}>
|
<Box sx={{ display: "flex" }}>
|
||||||
@ -291,18 +299,27 @@ const Users: React.FC = () => {
|
|||||||
color: theme.palette.secondary.main
|
color: theme.palette.secondary.main
|
||||||
} }}
|
} }}
|
||||||
/>
|
/>
|
||||||
<Button
|
<Box
|
||||||
variant = "text"
|
sx={{
|
||||||
sx={{
|
display: 'flex',
|
||||||
backgroundColor: theme.palette.content.main,
|
justifyContent: 'center',
|
||||||
color: theme.palette.secondary.main,
|
maxWidth: '317px',
|
||||||
width: "20%",
|
width: '100%'
|
||||||
"&:hover": {
|
}}
|
||||||
backgroundColor: theme.palette.content.main
|
>
|
||||||
}
|
<Button
|
||||||
}}>
|
variant = "text"
|
||||||
СБРОСИТЬ
|
sx={{
|
||||||
</Button>
|
backgroundColor: theme.palette.content.main,
|
||||||
|
color: theme.palette.secondary.main,
|
||||||
|
width: "20%",
|
||||||
|
"&:hover": {
|
||||||
|
backgroundColor: theme.palette.content.main
|
||||||
|
}
|
||||||
|
}}>
|
||||||
|
СБРОСИТЬ
|
||||||
|
</Button>
|
||||||
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ const Content: React.FC<MWProps> = ({ section }) => {
|
|||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
overflow: "auto",
|
overflow: "auto",
|
||||||
overflowY: "auto",
|
overflowY: "auto",
|
||||||
padding: "60px"
|
padding: "60px 0"
|
||||||
}}>
|
}}>
|
||||||
|
|
||||||
{ componentsArray[ section ] }
|
{ componentsArray[ section ] }
|
||||||
|
@ -11,11 +11,13 @@ const Header: React.FC = () => {
|
|||||||
<Box sx={{
|
<Box sx={{
|
||||||
backgroundColor: theme.palette.menu.main,
|
backgroundColor: theme.palette.menu.main,
|
||||||
width: "100%",
|
width: "100%",
|
||||||
height: "85px",
|
minHeight: "85px",
|
||||||
borderBottom: "1px solid",
|
borderBottom: "1px solid",
|
||||||
borderColor: theme.palette.grayDark.main,
|
borderColor: theme.palette.grayDark.main,
|
||||||
display: "flex",
|
display: "flex",
|
||||||
justifyContent: "space-between"
|
justifyContent: "space-between",
|
||||||
|
flexWrap: 'wrap',
|
||||||
|
paddingLeft: '5px'
|
||||||
}}>
|
}}>
|
||||||
<Box sx={{
|
<Box sx={{
|
||||||
width: "150px",
|
width: "150px",
|
||||||
@ -32,7 +34,7 @@ const Header: React.FC = () => {
|
|||||||
<Typography
|
<Typography
|
||||||
variant="h6"
|
variant="h6"
|
||||||
sx={{
|
sx={{
|
||||||
width: "230px",
|
maxWidth: "230px",
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
@ -44,12 +46,12 @@ const Header: React.FC = () => {
|
|||||||
</Typography>
|
</Typography>
|
||||||
|
|
||||||
<Box sx={{
|
<Box sx={{
|
||||||
width: "85px",
|
|
||||||
display: "flex",
|
display: "flex",
|
||||||
flexDirection: "column",
|
flexDirection: "column",
|
||||||
justifyContent: "center",
|
justifyContent: "center",
|
||||||
alignItems: "center",
|
alignItems: "center",
|
||||||
cursor: "pointer"
|
cursor: "pointer",
|
||||||
|
padding: '0 31px'
|
||||||
}}>
|
}}>
|
||||||
<ExitToAppOutlinedIcon sx={{
|
<ExitToAppOutlinedIcon sx={{
|
||||||
color: theme.palette.golden.main,
|
color: theme.palette.golden.main,
|
||||||
|
@ -71,11 +71,9 @@ const Authorization: React.FC = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
variant = "contained"
|
variant = "enter"
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.content.main,
|
backgroundColor: theme.palette.content.main,
|
||||||
width: "50%",
|
|
||||||
height: "62px",
|
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
backgroundColor: theme.palette.menu.main
|
backgroundColor: theme.palette.menu.main
|
||||||
}
|
}
|
||||||
@ -99,11 +97,9 @@ const Authorization: React.FC = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
variant = "contained"
|
variant = "enter"
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.content.main,
|
backgroundColor: theme.palette.content.main,
|
||||||
width: "50%",
|
|
||||||
height: "62px",
|
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
backgroundColor: theme.palette.menu.main
|
backgroundColor: theme.palette.menu.main
|
||||||
}
|
}
|
||||||
@ -127,11 +123,9 @@ const Authorization: React.FC = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
variant = "contained"
|
variant = "enter"
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.content.main,
|
backgroundColor: theme.palette.content.main,
|
||||||
width: "50%",
|
|
||||||
height: "62px",
|
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
backgroundColor: theme.palette.menu.main
|
backgroundColor: theme.palette.menu.main
|
||||||
}
|
}
|
||||||
@ -155,11 +149,9 @@ const Authorization: React.FC = () => {
|
|||||||
</Box>
|
</Box>
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
variant = "contained"
|
variant = "enter"
|
||||||
sx={{
|
sx={{
|
||||||
backgroundColor: theme.palette.content.main,
|
backgroundColor: theme.palette.content.main,
|
||||||
width: "50%",
|
|
||||||
height: "62px",
|
|
||||||
"&:hover": {
|
"&:hover": {
|
||||||
backgroundColor: theme.palette.menu.main
|
backgroundColor: theme.palette.menu.main
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user