source: sources/client/src/components/user/MyProfile/styles.js

Last change on this file was bc20307, checked in by Tasevski2 <39170279+Tasevski2@…>, 2 years ago

Push before video

  • Property mode set to 100644
File size: 3.7 KB
Line 
1import styled from 'styled-components';
2import { Button } from '@mui/material';
3import PhoneI from '@mui/icons-material/Phone';
4import TextField from '@mui/material/TextField';
5import PersonI from '@mui/icons-material/Person';
6import LockI from '@mui/icons-material/Lock';
7import EditI from '@mui/icons-material/Edit';
8import CancelI from '@mui/icons-material/Cancel';
9import SaveI from '@mui/icons-material/Save';
10import LockOpenI from '@mui/icons-material/LockOpen';
11
12export const Wrapper = styled.div`
13 text-align: center;
14`;
15
16export const CredentialsWrapper = styled.div`
17 display: flex;
18 flex-direction: column;
19 align-items: center;
20 padding: 0 25px 15px 25px;
21`;
22
23export const Input = styled(TextField).attrs({
24 fullWidth: true,
25 sx: {
26 marginTop: '20px',
27 },
28})`
29 > div {
30 padding-left: 10px;
31 }
32 input {
33 color: white !important;
34 font-size: 1.2rem;
35 padding-left: 10px;
36
37 ::placeholder {
38 opacity: 0.6;
39 }
40 :disabled {
41 -webkit-text-fill-color: white;
42 }
43 }
44 fieldset {
45 border: 0;
46 border-bottom: 4px solid white ;
47 border-radius: 25px;
48 padding: 0 10px;
49 }
50`;
51
52export const LockIcon = styled(LockI).attrs({
53 sx: {
54 fontSize: '2rem',
55 color: 'white',
56 },
57})``;
58
59export const LockOpenIcon = styled(LockOpenI).attrs({
60 sx: {
61 fontSize: '2rem',
62 color: 'white',
63 },
64})``;
65
66export const PersonIcon = styled(PersonI).attrs({
67 sx: {
68 fontSize: '2rem',
69 color: 'white',
70 },
71})``;
72
73export const PhoneIcon = styled(PhoneI).attrs({
74 sx: {
75 fontSize: '2rem',
76 color: 'white',
77 },
78})``;
79
80const EditIcon = styled(EditI).attrs({
81 sx: {
82 width: '1.5rem',
83 height: '100%'
84 }
85})``;
86
87const CancelIcon = styled(CancelI).attrs({
88 sx: {
89 width: '1.5rem',
90 height: '100%',
91 },
92})``;
93
94const SaveIcon = styled(SaveI).attrs({
95 sx: {
96 width: '1.5rem',
97 height: '100%',
98 },
99})``;
100
101export const SaveButton = styled(Button).attrs((props) => ({
102 variant: 'contained',
103 size: 'large',
104 sx: {
105 width: '40%',
106 backgroundColor: 'white',
107 },
108 startIcon: <SaveIcon />,
109}))`
110 color: ${(props) => props.theme.palette.primary.main};
111 box-shadow: 5px 5px 10px ${(props) => props.theme.palette.background.shadow};
112 border-radius: 15px;
113 font-size: 1.2rem;
114 font-weight: 600;
115 :hover {
116 background-color: ${(props) => props.theme.palette.background.whiteSmoke};
117 }
118`;
119
120export const CancelButton = styled(Button).attrs((props) => ({
121 variant: 'contained',
122 size: 'large',
123 sx: {
124 width: '35%',
125 backgroundColor: 'white',
126 },
127 startIcon: <CancelIcon />,
128}))`
129 color: ${(props) => props.theme.palette.error.main};
130 box-shadow: 5px 5px 10px ${(props) => props.theme.palette.background.shadow};
131 border-radius: 15px;
132 font-size: 1rem;
133 font-weight: 600;
134 :hover {
135 background-color: ${(props) => props.theme.palette.background.whiteSmoke};
136 }
137`;
138
139export const EditButton = styled(Button).attrs((props) => ({
140 variant: 'contained',
141 size: 'large',
142 startIcon: <EditIcon />,
143 sx: {
144 width: '40%',
145 backgroundColor: 'white',
146 },
147}))`
148 margin-top: 5vh;
149 box-shadow: 5px 5px 10px ${(props) => props.theme.palette.background.shadow};
150 color: ${(props) => props.theme.palette.third.main};
151 border-radius: 15px;
152 font-size: 1.2rem;
153 font-weight: 600;
154 :hover {
155 background-color: ${(props) =>
156 props.theme.palette.background.whiteSmoke};
157 }
158`;
159
160export const FullNameWrapper = styled.div`
161 display: flex;
162 flex-direction: row;
163 justify-content: space-between;
164 width: 100%;
165`;
166
167export const ButtonsWrapper = styled.div`
168 margin-top: 5vh;
169 display: flex;
170 flex-direction: row;
171 justify-content: space-between;
172 padding: 0 25px;
173`;
Note: See TracBrowser for help on using the repository browser.