[3a58bd6] | 1 | import styled from 'styled-components';
|
---|
| 2 | import Grid from '@mui/material/Grid';
|
---|
| 3 | import Add from '@mui/icons-material/Add';
|
---|
| 4 | import { Typography, Divider } from '@mui/material';
|
---|
| 5 | import ArrowDownwardIcon from '@mui/icons-material/ArrowDownward';
|
---|
| 6 | import ArrowUpwardIcon from '@mui/icons-material/ArrowUpward';
|
---|
| 7 | import ClearIcon from '@mui/icons-material/Clear';
|
---|
| 8 | import { ParkingZoneWrapper, Container } from './ParkingZoneCard/styles';
|
---|
| 9 |
|
---|
| 10 | export const FiltersWrapper = styled.div`
|
---|
| 11 | margin-bottom: 10px;
|
---|
| 12 | text-align: center;
|
---|
| 13 | display: flex;
|
---|
| 14 | flex-direction: row;
|
---|
| 15 | justify-content: space-between;
|
---|
| 16 | align-items: center;
|
---|
| 17 | padding: 10px 175px;
|
---|
| 18 | `;
|
---|
| 19 |
|
---|
| 20 | export const SortingArrowsWrapper = styled.div`
|
---|
| 21 | display: flex;
|
---|
| 22 | flex-direction: row;
|
---|
| 23 | align-items: center;
|
---|
| 24 | position: relative;
|
---|
| 25 | `;
|
---|
| 26 |
|
---|
| 27 | export const ArrowDown = styled(ArrowDownwardIcon).attrs({})`
|
---|
| 28 | font-size: 2rem;
|
---|
| 29 | color: ${(props) => (props.selected ? props.theme.palette.primary.main : '')};
|
---|
| 30 | :hover {
|
---|
| 31 | cursor: pointer;
|
---|
| 32 | color: ${(props) => props.theme.palette.primary.main};
|
---|
| 33 | }
|
---|
| 34 | `;
|
---|
| 35 |
|
---|
| 36 | export const ArrowUp = styled(ArrowUpwardIcon).attrs({})`
|
---|
| 37 | margin: 0 10px 0 15px;
|
---|
| 38 | font-size: 2rem;
|
---|
| 39 | color: ${(props) => (props.selected ? props.theme.palette.primary.main : '')};
|
---|
| 40 | :hover {
|
---|
| 41 | cursor: pointer;
|
---|
| 42 | color: ${(props) => props.theme.palette.primary.main};
|
---|
| 43 | }
|
---|
| 44 | `;
|
---|
| 45 |
|
---|
| 46 | export const ClearSortIcon = styled(ClearIcon).attrs({})`
|
---|
| 47 | color: ${(props) => props.theme.palette.error.main};
|
---|
| 48 | position: absolute;
|
---|
| 49 | right: 0;
|
---|
| 50 | font-size: 2rem;
|
---|
| 51 | right: -50px;
|
---|
| 52 | :hover {
|
---|
| 53 | cursor: pointer;
|
---|
| 54 | }
|
---|
| 55 | `;
|
---|
| 56 |
|
---|
| 57 | export const DividerUnderFilters = styled(Divider).attrs({
|
---|
| 58 | variant: 'middle',
|
---|
| 59 | sx: {
|
---|
| 60 | margin: '0 160px',
|
---|
| 61 | borderWidth: '2px',
|
---|
| 62 | borderBottomWidth: 'thin',
|
---|
| 63 | },
|
---|
| 64 | })``;
|
---|
| 65 |
|
---|
| 66 | export const SortByTitle = styled(Typography).attrs((props) => ({
|
---|
| 67 | fontSize: '1rem',
|
---|
| 68 | fontWeight: '600',
|
---|
| 69 | margin: 0,
|
---|
| 70 | color: `${props.theme.palette.primary.main}`,
|
---|
| 71 | }))``;
|
---|
| 72 |
|
---|
| 73 | export const ParkingName = styled(Typography).attrs((props) => ({
|
---|
| 74 | fontSize: '2rem',
|
---|
| 75 | fontWeight: '600',
|
---|
| 76 | margin: 0,
|
---|
| 77 | color: `${props.theme.palette.primary.main}`,
|
---|
| 78 | }))``;
|
---|
| 79 |
|
---|
| 80 | export const ParkingZonesWrapper = styled(Grid)`
|
---|
| 81 | margin: 0;
|
---|
| 82 | height: 100%;
|
---|
| 83 | width: 100%;
|
---|
| 84 | padding: 0 40px 0 0;
|
---|
| 85 | `;
|
---|
| 86 |
|
---|
| 87 | export const AddParkingZoneCard = styled(ParkingZoneWrapper)``;
|
---|
| 88 |
|
---|
| 89 | export const AddItem = styled(Container)`
|
---|
| 90 | display: flex;
|
---|
| 91 | align-items: center;
|
---|
| 92 | justify-content: middle;
|
---|
| 93 | `;
|
---|
| 94 |
|
---|
| 95 | export const AddIcon = styled(Add).attrs({
|
---|
| 96 | sx: {
|
---|
| 97 | fontWeight: 500,
|
---|
| 98 | },
|
---|
| 99 | })`
|
---|
| 100 | width: 100%;
|
---|
| 101 | height: 100%;
|
---|
| 102 | color: ${(props) => props.theme.palette.primary.main};
|
---|
| 103 | `;
|
---|