Last change
on this file was bc20307, checked in by Tasevski2 <39170279+Tasevski2@…>, 3 years ago |
Push before video
|
-
Property mode
set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | import styled from 'styled-components';
|
---|
2 | import Grid from '@mui/material/Grid';
|
---|
3 | import { Typography } from '@mui/material';
|
---|
4 | import { LineProgressBar } from '@frogress/line';
|
---|
5 | import { mobile_max_width } from '../../../../config/utilities';
|
---|
6 |
|
---|
7 | export const ParkingZoneWrapper = styled(Grid)`
|
---|
8 | height: 350px;
|
---|
9 |
|
---|
10 | @media (max-width: ${mobile_max_width}px) {
|
---|
11 | padding-left: 15px !important;
|
---|
12 | padding-right: 15px;
|
---|
13 | }
|
---|
14 | `;
|
---|
15 |
|
---|
16 | export const Container = styled.div`
|
---|
17 | display: flex;
|
---|
18 | flex-direction: column;
|
---|
19 | align-items: center;
|
---|
20 | width: 100%;
|
---|
21 | height: 100%;
|
---|
22 | box-shadow: 15px 15px 10px ${(props) => props.theme.palette.background.shadow};
|
---|
23 | background-color: ${(props) => props.theme.palette.background.white};
|
---|
24 | :hover {
|
---|
25 | opacity: 0.8;
|
---|
26 | cursor: pointer;
|
---|
27 | }
|
---|
28 | position: relative;
|
---|
29 | `;
|
---|
30 |
|
---|
31 | export const ZoneName = styled(Typography).attrs({
|
---|
32 | variant: 'h2',
|
---|
33 | })`
|
---|
34 | font-size: 2rem;
|
---|
35 | font-weight: 600;
|
---|
36 | margin-top: 30px;
|
---|
37 | text-align: center;
|
---|
38 | `;
|
---|
39 |
|
---|
40 | export const InfoWrapper = styled.div`
|
---|
41 | width: 100%;
|
---|
42 | margin-top: 20px;
|
---|
43 | display: flex;
|
---|
44 | flex-direction: column;
|
---|
45 | align-items: center;
|
---|
46 | `;
|
---|
47 |
|
---|
48 | export const Label = styled(Typography).attrs({
|
---|
49 | variant: 'h4',
|
---|
50 | })`
|
---|
51 | font-size: 1rem;
|
---|
52 | margin-bottom: 5px;
|
---|
53 | `;
|
---|
54 |
|
---|
55 | export const Value = styled(Typography).attrs({
|
---|
56 | variant: 'h3',
|
---|
57 | })`
|
---|
58 | font-size: 1.25rem;
|
---|
59 | font-weight: 600;
|
---|
60 | margin-top: 5px;
|
---|
61 | `;
|
---|
62 |
|
---|
63 | export const ProgressBar = styled(LineProgressBar).attrs((props) => ({
|
---|
64 | stripe: true,
|
---|
65 | progressColor: props.theme.palette.primary.main,
|
---|
66 | height: '30px',
|
---|
67 | }))`
|
---|
68 | position: absolute;
|
---|
69 | bottom: 5px;
|
---|
70 | `;
|
---|
71 |
|
---|
72 | export const ProgressBarLabel = styled.p`
|
---|
73 | margin: 0 0 0 42.5%;
|
---|
74 | line-height: 30px;
|
---|
75 | position: absolute;
|
---|
76 | font-weight: 500;
|
---|
77 | `;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.