@agilemotion/oui-react-js 1.8.36 → 1.8.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/jss/components/authNavbarStyle.jsx +195 -0
- package/dist/assets/jss/components/buttonStyle.jsx +647 -0
- package/dist/assets/jss/components/cardAvatarStyle.jsx +56 -0
- package/dist/assets/jss/components/cardBodyStyle.jsx +56 -0
- package/dist/assets/jss/components/cardFooterStyle.jsx +56 -0
- package/dist/assets/jss/components/cardHeaderStyle.jsx +169 -0
- package/dist/assets/jss/components/cardIconStyle.jsx +30 -0
- package/dist/assets/jss/components/cardStyle.jsx +179 -0
- package/dist/assets/jss/components/cardTextStyle.jsx +29 -0
- package/dist/assets/jss/components/customDropdownStyle.jsx +232 -0
- package/dist/assets/jss/components/customInputStyle.jsx +95 -0
- package/dist/assets/jss/components/dropdownStyle.jsx +124 -0
- package/dist/assets/jss/components/footerStyle.jsx +64 -0
- package/dist/assets/jss/components/headerLinksStyle.jsx +113 -0
- package/dist/assets/jss/components/headerStyle.jsx +82 -0
- package/dist/assets/jss/components/navbarLinksStyle.jsx +155 -0
- package/dist/assets/jss/components/navbarStyle.jsx +94 -0
- package/dist/assets/jss/components/sidebarStyle.jsx +528 -0
- package/dist/assets/jss/components/typographyStyle.jsx +59 -0
- package/dist/assets/jss/rootStyle.jsx +392 -0
- package/dist/assets/jss/views/layoutStyle.jsx +54 -0
- package/dist/assets/jss/views/loginBasicStyle.jsx +67 -0
- package/dist/assets/jss/views/loginBusinessPortalStyle.jsx +69 -0
- package/dist/assets/jss/views/loginStyle.jsx +107 -0
- package/dist/components/facialRecognition/FaceRecognitionComponent.js +31 -3
- package/package.json +6 -9
- package/dist/assets/css/skins.css +0 -129
- package/dist/assets/demo/demo.css +0 -139
- package/dist/assets/img/absa.png +0 -0
- package/dist/assets/img/agilityLogo.jpeg +0 -0
- package/dist/assets/img/anime3.png +0 -0
- package/dist/assets/img/anime6.png +0 -0
- package/dist/assets/img/apple-icon.png +0 -0
- package/dist/assets/img/bg5.jpg +0 -0
- package/dist/assets/img/default-avatar.png +0 -0
- package/dist/assets/img/e-proc.png +0 -0
- package/dist/assets/img/emilyz.jpg +0 -0
- package/dist/assets/img/favicon.png +0 -0
- package/dist/assets/img/flogo.png +0 -0
- package/dist/assets/img/header.jpg +0 -0
- package/dist/assets/img/img_3115.jpg +0 -0
- package/dist/assets/img/james.jpg +0 -0
- package/dist/assets/img/react-logo.png +0 -0
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
const hexToRgb = input => {
|
|
2
|
+
input = input + "";
|
|
3
|
+
input = input.replace("#", "");
|
|
4
|
+
let hexRegex = /[0-9A-Fa-f]/g;
|
|
5
|
+
if (!hexRegex.test(input) || (input.length !== 3 && input.length !== 6)) {
|
|
6
|
+
throw new Error("input is not a valid hex color.");
|
|
7
|
+
}
|
|
8
|
+
if (input.length === 3) {
|
|
9
|
+
let first = input[0];
|
|
10
|
+
let second = input[1];
|
|
11
|
+
let last = input[2];
|
|
12
|
+
input = first + first + second + second + last + last;
|
|
13
|
+
}
|
|
14
|
+
input = input.toUpperCase(input);
|
|
15
|
+
let first = input[0] + input[1];
|
|
16
|
+
let second = input[2] + input[3];
|
|
17
|
+
let last = input[4] + input[5];
|
|
18
|
+
return (
|
|
19
|
+
parseInt(first, 16) +
|
|
20
|
+
", " +
|
|
21
|
+
parseInt(second, 16) +
|
|
22
|
+
", " +
|
|
23
|
+
parseInt(last, 16)
|
|
24
|
+
);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const drawerWidth = 260;
|
|
28
|
+
|
|
29
|
+
const drawerMiniWidth = 80;
|
|
30
|
+
|
|
31
|
+
const transition = {
|
|
32
|
+
transition: "all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)"
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const containerFluid = {
|
|
36
|
+
paddingRight: "15px",
|
|
37
|
+
paddingLeft: "15px",
|
|
38
|
+
marginRight: "auto",
|
|
39
|
+
marginLeft: "auto",
|
|
40
|
+
"&:before,&:after": {
|
|
41
|
+
display: "table",
|
|
42
|
+
content: '" "'
|
|
43
|
+
},
|
|
44
|
+
"&:after": {
|
|
45
|
+
clear: "both"
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
const container = {
|
|
50
|
+
paddingRight: "15px",
|
|
51
|
+
paddingLeft: "15px",
|
|
52
|
+
marginRight: "auto",
|
|
53
|
+
marginLeft: "auto",
|
|
54
|
+
"@media (min-width: 768px)": {
|
|
55
|
+
width: "750px"
|
|
56
|
+
},
|
|
57
|
+
"@media (min-width: 992px)": {
|
|
58
|
+
width: "970px"
|
|
59
|
+
},
|
|
60
|
+
"@media (min-width: 1200px)": {
|
|
61
|
+
width: "1170px"
|
|
62
|
+
},
|
|
63
|
+
"&:before,&:after": {
|
|
64
|
+
display: "table",
|
|
65
|
+
content: '" "'
|
|
66
|
+
},
|
|
67
|
+
"&:after": {
|
|
68
|
+
clear: "both"
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
const defaultFont = {
|
|
73
|
+
fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
|
|
74
|
+
fontWeight: "300",
|
|
75
|
+
lineHeight: "1.5em"
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
const primaryColor = ["#9c27b0", "#ab47bc", "#8e24aa", "#af2cc5", "#7b1fa2"];
|
|
79
|
+
const warningColor = [
|
|
80
|
+
"#ff9800",
|
|
81
|
+
"#ffa726",
|
|
82
|
+
"#fb8c00",
|
|
83
|
+
"#ffa21a",
|
|
84
|
+
"#f57c00",
|
|
85
|
+
"#faf2cc",
|
|
86
|
+
"#fcf8e3"
|
|
87
|
+
];
|
|
88
|
+
const dangerColor = [
|
|
89
|
+
"#f44336",
|
|
90
|
+
"#ef5350",
|
|
91
|
+
"#e53935",
|
|
92
|
+
"#f55a4e",
|
|
93
|
+
"#d32f2f",
|
|
94
|
+
"#ebcccc",
|
|
95
|
+
"#f2dede"
|
|
96
|
+
];
|
|
97
|
+
const successColor = [
|
|
98
|
+
"#4caf50",
|
|
99
|
+
"#66bb6a",
|
|
100
|
+
"#43a047",
|
|
101
|
+
"#5cb860",
|
|
102
|
+
"#388e3c",
|
|
103
|
+
"#d0e9c6",
|
|
104
|
+
"#dff0d8"
|
|
105
|
+
];
|
|
106
|
+
const infoColor = [
|
|
107
|
+
"#00acc1",
|
|
108
|
+
"#26c6da",
|
|
109
|
+
"#00acc1",
|
|
110
|
+
"#00d3ee",
|
|
111
|
+
"#0097a7",
|
|
112
|
+
"#c4e3f3",
|
|
113
|
+
"#d9edf7"
|
|
114
|
+
];
|
|
115
|
+
const roseColor = ["#d4a039", "#000000", "#747474", "#7c7474", "#6c7474"];
|
|
116
|
+
|
|
117
|
+
const agilityColor = ["#d4a039", "#000000", "#747474", "#7c7474", "#6c7474"];
|
|
118
|
+
|
|
119
|
+
const grayColor = [
|
|
120
|
+
"#999",
|
|
121
|
+
"#777",
|
|
122
|
+
"#3C4858",
|
|
123
|
+
"#AAAAAA",
|
|
124
|
+
"#D2D2D2",
|
|
125
|
+
"#DDD",
|
|
126
|
+
"#555555",
|
|
127
|
+
"#333",
|
|
128
|
+
"#eee",
|
|
129
|
+
"#ccc",
|
|
130
|
+
"#e4e4e4",
|
|
131
|
+
"#E5E5E5",
|
|
132
|
+
"#f9f9f9",
|
|
133
|
+
"#f5f5f5",
|
|
134
|
+
"#495057",
|
|
135
|
+
"#e7e7e7",
|
|
136
|
+
"#212121",
|
|
137
|
+
"#c8c8c8",
|
|
138
|
+
"#505050"
|
|
139
|
+
];
|
|
140
|
+
const blackColor = "#000";
|
|
141
|
+
const whiteColor = "#FFF";
|
|
142
|
+
const twitterColor = "#55acee";
|
|
143
|
+
const facebookColor = "#3b5998";
|
|
144
|
+
const googleColor = "#dd4b39";
|
|
145
|
+
const linkedinColor = "#0976b4";
|
|
146
|
+
const pinterestColor = "#cc2127";
|
|
147
|
+
const youtubeColor = "#e52d27";
|
|
148
|
+
const tumblrColor = "#35465c";
|
|
149
|
+
const behanceColor = "#1769ff";
|
|
150
|
+
const dribbbleColor = "#ea4c89";
|
|
151
|
+
const redditColor = "#ff4500";
|
|
152
|
+
|
|
153
|
+
const boxShadow = {
|
|
154
|
+
boxShadow: "0 10px 30px -12px rgba(" +
|
|
155
|
+
hexToRgb(blackColor) +
|
|
156
|
+
", 0.42), 0 4px 25px 0px rgba(" +
|
|
157
|
+
hexToRgb(blackColor) +
|
|
158
|
+
", 0.12), 0 8px 10px -5px rgba(" +
|
|
159
|
+
hexToRgb(blackColor) +
|
|
160
|
+
", 0.2)"
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
const primaryBoxShadow = {
|
|
164
|
+
boxShadow: "0 4px 20px 0 rgba(" +
|
|
165
|
+
hexToRgb(blackColor) +
|
|
166
|
+
",.14), 0 7px 10px -5px rgba(" +
|
|
167
|
+
hexToRgb(primaryColor[0]) +
|
|
168
|
+
",.4)"
|
|
169
|
+
};
|
|
170
|
+
const infoBoxShadow = {
|
|
171
|
+
boxShadow: "0 4px 20px 0 rgba(" +
|
|
172
|
+
hexToRgb(blackColor) +
|
|
173
|
+
",.14), 0 7px 10px -5px rgba(" +
|
|
174
|
+
hexToRgb(infoColor[0]) +
|
|
175
|
+
",.4)"
|
|
176
|
+
};
|
|
177
|
+
const successBoxShadow = {
|
|
178
|
+
boxShadow: "0 4px 20px 0 rgba(" +
|
|
179
|
+
hexToRgb(blackColor) +
|
|
180
|
+
",.14), 0 7px 10px -5px rgba(" +
|
|
181
|
+
hexToRgb(successColor[0]) +
|
|
182
|
+
",.4)"
|
|
183
|
+
};
|
|
184
|
+
const warningBoxShadow = {
|
|
185
|
+
boxShadow: "0 4px 20px 0 rgba(" +
|
|
186
|
+
hexToRgb(blackColor) +
|
|
187
|
+
",.14), 0 7px 10px -5px rgba(" +
|
|
188
|
+
hexToRgb(warningColor[0]) +
|
|
189
|
+
",.4)"
|
|
190
|
+
};
|
|
191
|
+
const dangerBoxShadow = {
|
|
192
|
+
boxShadow: "0 4px 20px 0 rgba(" +
|
|
193
|
+
hexToRgb(blackColor) +
|
|
194
|
+
",.14), 0 7px 10px -5px rgba(" +
|
|
195
|
+
hexToRgb(dangerColor[0]) +
|
|
196
|
+
",.4)"
|
|
197
|
+
};
|
|
198
|
+
const roseBoxShadow = {
|
|
199
|
+
boxShadow: "0 4px 20px 0 rgba(" +
|
|
200
|
+
hexToRgb(blackColor) +
|
|
201
|
+
",.14), 0 7px 10px -5px rgba(" +
|
|
202
|
+
hexToRgb(roseColor[0]) +
|
|
203
|
+
",.4)"
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
const warningCardHeader = {
|
|
207
|
+
background: "linear-gradient(60deg, " + warningColor[1] + ", " + warningColor[2] + ")",
|
|
208
|
+
...warningBoxShadow
|
|
209
|
+
};
|
|
210
|
+
const successCardHeader = {
|
|
211
|
+
background: "linear-gradient(60deg, " + successColor[1] + ", " + successColor[2] + ")",
|
|
212
|
+
...successBoxShadow
|
|
213
|
+
};
|
|
214
|
+
const dangerCardHeader = {
|
|
215
|
+
background: "linear-gradient(60deg, " + dangerColor[1] + ", " + dangerColor[2] + ")",
|
|
216
|
+
...dangerBoxShadow
|
|
217
|
+
};
|
|
218
|
+
const infoCardHeader = {
|
|
219
|
+
background: "linear-gradient(60deg, " + infoColor[1] + ", " + infoColor[2] + ")",
|
|
220
|
+
...infoBoxShadow
|
|
221
|
+
};
|
|
222
|
+
const primaryCardHeader = {
|
|
223
|
+
background: "linear-gradient(60deg, " + primaryColor[1] + ", " + primaryColor[2] + ")",
|
|
224
|
+
...primaryBoxShadow
|
|
225
|
+
};
|
|
226
|
+
const roseCardHeader = {
|
|
227
|
+
background: agilityColor[0],
|
|
228
|
+
...roseBoxShadow
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
const card = {
|
|
232
|
+
display: "inline-block",
|
|
233
|
+
position: "relative",
|
|
234
|
+
width: "100%",
|
|
235
|
+
margin: "25px 0",
|
|
236
|
+
boxShadow: "0 1px 4px 0 rgba(" + hexToRgb(blackColor) + ", 0.14)",
|
|
237
|
+
borderRadius: "6px",
|
|
238
|
+
color: "rgba(" + hexToRgb(blackColor) + ", 0.87)",
|
|
239
|
+
background: whiteColor
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
const cardActions = {
|
|
243
|
+
margin: "0 20px 10px",
|
|
244
|
+
paddingTop: "10px",
|
|
245
|
+
borderTop: "1px solid " + grayColor[8],
|
|
246
|
+
height: "auto",
|
|
247
|
+
...defaultFont
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
const cardHeader = {
|
|
251
|
+
margin: "-20px 15px 0",
|
|
252
|
+
borderRadius: "3px",
|
|
253
|
+
padding: "15px"
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
const defaultBoxShadow = {
|
|
257
|
+
border: "0",
|
|
258
|
+
borderRadius: "3px",
|
|
259
|
+
boxShadow: "0 10px 20px -12px rgba(" +
|
|
260
|
+
hexToRgb(blackColor) +
|
|
261
|
+
", 0.42), 0 3px 20px 0px rgba(" +
|
|
262
|
+
hexToRgb(blackColor) +
|
|
263
|
+
", 0.12), 0 8px 10px -5px rgba(" +
|
|
264
|
+
hexToRgb(blackColor) +
|
|
265
|
+
", 0.2)",
|
|
266
|
+
padding: "10px 0",
|
|
267
|
+
transition: "all 150ms ease 0s"
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
const tooltip = {
|
|
271
|
+
padding: "10px 15px",
|
|
272
|
+
minWidth: "130px",
|
|
273
|
+
color: whiteColor,
|
|
274
|
+
lineHeight: "1.7em",
|
|
275
|
+
background: "rgba(" + hexToRgb(grayColor[6]) + ",0.9)",
|
|
276
|
+
border: "none",
|
|
277
|
+
borderRadius: "3px",
|
|
278
|
+
opacity: "1!important",
|
|
279
|
+
boxShadow: "0 8px 10px 1px rgba(" +
|
|
280
|
+
hexToRgb(blackColor) +
|
|
281
|
+
", 0.14), 0 3px 14px 2px rgba(" +
|
|
282
|
+
hexToRgb(blackColor) +
|
|
283
|
+
", 0.12), 0 5px 5px -3px rgba(" +
|
|
284
|
+
hexToRgb(blackColor) +
|
|
285
|
+
", 0.2)",
|
|
286
|
+
maxWidth: "200px",
|
|
287
|
+
textAlign: "center",
|
|
288
|
+
fontFamily: '"Helvetica Neue",Helvetica,Arial,sans-serif',
|
|
289
|
+
fontSize: "12px",
|
|
290
|
+
fontStyle: "normal",
|
|
291
|
+
fontWeight: "400",
|
|
292
|
+
textShadow: "none",
|
|
293
|
+
textTransform: "none",
|
|
294
|
+
letterSpacing: "normal",
|
|
295
|
+
wordBreak: "normal",
|
|
296
|
+
wordSpacing: "normal",
|
|
297
|
+
wordWrap: "normal",
|
|
298
|
+
whiteSpace: "normal",
|
|
299
|
+
lineBreak: "auto"
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
const title = {
|
|
303
|
+
color: grayColor[2],
|
|
304
|
+
textDecoration: "none",
|
|
305
|
+
fontWeight: "300",
|
|
306
|
+
marginTop: "30px",
|
|
307
|
+
marginBottom: "25px",
|
|
308
|
+
minHeight: "32px",
|
|
309
|
+
fontFamily: "'Roboto', 'Helvetica', 'Arial', sans-serif",
|
|
310
|
+
"& small": {
|
|
311
|
+
color: grayColor[1],
|
|
312
|
+
fontSize: "65%",
|
|
313
|
+
fontWeight: "400",
|
|
314
|
+
lineHeight: "1"
|
|
315
|
+
}
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
const cardTitle = {
|
|
319
|
+
...title,
|
|
320
|
+
marginTop: "0",
|
|
321
|
+
marginBottom: "3px",
|
|
322
|
+
minHeight: "auto",
|
|
323
|
+
"& a": {
|
|
324
|
+
...title,
|
|
325
|
+
marginTop: ".625rem",
|
|
326
|
+
marginBottom: "0.75rem",
|
|
327
|
+
minHeight: "auto"
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
const cardSubtitle = {
|
|
332
|
+
marginTop: "-.375rem"
|
|
333
|
+
};
|
|
334
|
+
|
|
335
|
+
const cardLink = {
|
|
336
|
+
"& + $cardLink": {
|
|
337
|
+
marginLeft: "1.25rem"
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
export {
|
|
342
|
+
hexToRgb,
|
|
343
|
+
//variables
|
|
344
|
+
drawerWidth,
|
|
345
|
+
drawerMiniWidth,
|
|
346
|
+
transition,
|
|
347
|
+
container,
|
|
348
|
+
containerFluid,
|
|
349
|
+
boxShadow,
|
|
350
|
+
card,
|
|
351
|
+
defaultFont,
|
|
352
|
+
primaryColor,
|
|
353
|
+
warningColor,
|
|
354
|
+
dangerColor,
|
|
355
|
+
successColor,
|
|
356
|
+
infoColor,
|
|
357
|
+
roseColor,
|
|
358
|
+
agilityColor,
|
|
359
|
+
grayColor,
|
|
360
|
+
blackColor,
|
|
361
|
+
whiteColor,
|
|
362
|
+
twitterColor,
|
|
363
|
+
facebookColor,
|
|
364
|
+
googleColor,
|
|
365
|
+
linkedinColor,
|
|
366
|
+
pinterestColor,
|
|
367
|
+
youtubeColor,
|
|
368
|
+
tumblrColor,
|
|
369
|
+
behanceColor,
|
|
370
|
+
dribbbleColor,
|
|
371
|
+
redditColor,
|
|
372
|
+
primaryBoxShadow,
|
|
373
|
+
infoBoxShadow,
|
|
374
|
+
successBoxShadow,
|
|
375
|
+
warningBoxShadow,
|
|
376
|
+
dangerBoxShadow,
|
|
377
|
+
roseBoxShadow,
|
|
378
|
+
warningCardHeader,
|
|
379
|
+
successCardHeader,
|
|
380
|
+
dangerCardHeader,
|
|
381
|
+
infoCardHeader,
|
|
382
|
+
primaryCardHeader,
|
|
383
|
+
roseCardHeader,
|
|
384
|
+
cardActions,
|
|
385
|
+
cardHeader,
|
|
386
|
+
defaultBoxShadow,
|
|
387
|
+
tooltip,
|
|
388
|
+
title,
|
|
389
|
+
cardTitle,
|
|
390
|
+
cardSubtitle,
|
|
391
|
+
cardLink
|
|
392
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
drawerWidth,
|
|
3
|
+
drawerMiniWidth,
|
|
4
|
+
transition,
|
|
5
|
+
containerFluid
|
|
6
|
+
} from "../rootStyle";
|
|
7
|
+
|
|
8
|
+
const appStyle = theme => ({
|
|
9
|
+
wrapper: {
|
|
10
|
+
position: "relative",
|
|
11
|
+
top: "0",
|
|
12
|
+
height: "100vh",
|
|
13
|
+
"&:after": {
|
|
14
|
+
display: "table",
|
|
15
|
+
clear: "both",
|
|
16
|
+
content: '" "'
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
mainPanel: {
|
|
20
|
+
transitionProperty: "top, bottom, width",
|
|
21
|
+
transitionDuration: ".2s, .2s, .35s",
|
|
22
|
+
transitionTimingFunction: "linear, linear, ease",
|
|
23
|
+
[theme.breakpoints.up("md")]: {
|
|
24
|
+
width: `calc(100% - ${drawerWidth}px)`
|
|
25
|
+
},
|
|
26
|
+
overflow: "auto",
|
|
27
|
+
position: "relative",
|
|
28
|
+
float: "right",
|
|
29
|
+
...transition,
|
|
30
|
+
maxHeight: "100%",
|
|
31
|
+
width: "100%",
|
|
32
|
+
overflowScrolling: "touch"
|
|
33
|
+
},
|
|
34
|
+
content: {
|
|
35
|
+
marginTop: "70px",
|
|
36
|
+
padding: "30px 15px",
|
|
37
|
+
minHeight: "calc(100vh - 123px)"
|
|
38
|
+
},
|
|
39
|
+
container: { ...containerFluid
|
|
40
|
+
},
|
|
41
|
+
map: {
|
|
42
|
+
marginTop: "70px"
|
|
43
|
+
},
|
|
44
|
+
mainPanelSidebarMini: {
|
|
45
|
+
[theme.breakpoints.up("md")]: {
|
|
46
|
+
width: `calc(100% - ${drawerMiniWidth}px)`
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
mainPanelWithPerfectScrollbar: {
|
|
50
|
+
overflow: "hidden !important"
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export default appStyle;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import {grey400, grey500, white} from "material-ui/styles/colors";
|
|
2
|
+
|
|
3
|
+
const styles = {
|
|
4
|
+
title: {
|
|
5
|
+
minWidth: 320,
|
|
6
|
+
maxWidth: 400,
|
|
7
|
+
paddingTop: '56px',
|
|
8
|
+
height: 'auto',
|
|
9
|
+
fontSize: '30px'
|
|
10
|
+
},
|
|
11
|
+
loginContainer: {
|
|
12
|
+
minWidth: 320,
|
|
13
|
+
maxWidth: 400,
|
|
14
|
+
padding: '16px 0',
|
|
15
|
+
height: 'auto'
|
|
16
|
+
},
|
|
17
|
+
paper: {
|
|
18
|
+
padding: 20,
|
|
19
|
+
overflow: 'auto'
|
|
20
|
+
},
|
|
21
|
+
buttonsDiv: {
|
|
22
|
+
textAlign: 'center',
|
|
23
|
+
padding: 10
|
|
24
|
+
},
|
|
25
|
+
flatButton: {
|
|
26
|
+
color: grey400
|
|
27
|
+
},
|
|
28
|
+
checkRemember: {
|
|
29
|
+
style: {
|
|
30
|
+
float: 'left',
|
|
31
|
+
maxWidth: 180,
|
|
32
|
+
paddingTop: 5
|
|
33
|
+
},
|
|
34
|
+
labelStyle: {
|
|
35
|
+
color: grey500
|
|
36
|
+
},
|
|
37
|
+
iconStyle: {
|
|
38
|
+
color: grey500,
|
|
39
|
+
borderColor: grey500,
|
|
40
|
+
fill: grey500
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
loginBtn: {
|
|
44
|
+
float: 'right',
|
|
45
|
+
background: window.location.hostname.includes('absa') ? '#dc0137' : '#FCB614',
|
|
46
|
+
color: window.location.hostname.includes('absa') ? '#ffffff' : '#000000'
|
|
47
|
+
},
|
|
48
|
+
btn: {
|
|
49
|
+
background: window.location.hostname.includes('absa') ? '#dc0137' : '#FCB614',
|
|
50
|
+
color: white,
|
|
51
|
+
padding: 7,
|
|
52
|
+
borderRadius: 2,
|
|
53
|
+
margin: 2,
|
|
54
|
+
fontSize: 13
|
|
55
|
+
},
|
|
56
|
+
btnFacebook: {
|
|
57
|
+
background: window.location.hostname.includes('absa') ? '#dc0137' : '#FCB614'
|
|
58
|
+
},
|
|
59
|
+
btnGoogle: {
|
|
60
|
+
background: '#e14441'
|
|
61
|
+
},
|
|
62
|
+
btnSpan: {
|
|
63
|
+
marginLeft: 5
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export default styles;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import {grey400, grey500, white} from "material-ui/styles/colors";
|
|
2
|
+
|
|
3
|
+
const styles = {
|
|
4
|
+
title: {
|
|
5
|
+
minWidth: 320,
|
|
6
|
+
maxWidth: 400,
|
|
7
|
+
height: 'auto',
|
|
8
|
+
fontSize: '30px'
|
|
9
|
+
},
|
|
10
|
+
loginContainer: {
|
|
11
|
+
minWidth: 320,
|
|
12
|
+
maxWidth: 400,
|
|
13
|
+
padding: '16px',
|
|
14
|
+
height: 'auto'
|
|
15
|
+
},
|
|
16
|
+
paper: {
|
|
17
|
+
padding: 20,
|
|
18
|
+
overflow: 'auto'
|
|
19
|
+
},
|
|
20
|
+
buttonsDiv: {
|
|
21
|
+
display: "inline-block",
|
|
22
|
+
textAlign: "center",
|
|
23
|
+
marginTop: '8px'
|
|
24
|
+
},
|
|
25
|
+
flatButton: {
|
|
26
|
+
color: grey500,
|
|
27
|
+
},
|
|
28
|
+
checkRemember: {
|
|
29
|
+
style: {
|
|
30
|
+
float: 'left',
|
|
31
|
+
maxWidth: 180,
|
|
32
|
+
paddingTop: 5
|
|
33
|
+
},
|
|
34
|
+
labelStyle: {
|
|
35
|
+
color: grey500
|
|
36
|
+
},
|
|
37
|
+
iconStyle: {
|
|
38
|
+
color: grey500,
|
|
39
|
+
borderColor: grey500,
|
|
40
|
+
fill: grey500
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
componentWrapper: {
|
|
44
|
+
display: "inline",
|
|
45
|
+
textAlign: "center"
|
|
46
|
+
},
|
|
47
|
+
loginBtn: {
|
|
48
|
+
float: 'right'
|
|
49
|
+
},
|
|
50
|
+
btn: {
|
|
51
|
+
background: '#4f81e9',
|
|
52
|
+
color: white,
|
|
53
|
+
padding: 7,
|
|
54
|
+
borderRadius: 2,
|
|
55
|
+
margin: 2,
|
|
56
|
+
fontSize: 13
|
|
57
|
+
},
|
|
58
|
+
btnFacebook: {
|
|
59
|
+
background: '#4f81e9'
|
|
60
|
+
},
|
|
61
|
+
btnGoogle: {
|
|
62
|
+
background: '#e14441'
|
|
63
|
+
},
|
|
64
|
+
btnSpan: {
|
|
65
|
+
marginLeft: 5
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export default styles;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import {
|
|
2
|
+
container,
|
|
3
|
+
cardTitle,
|
|
4
|
+
whiteColor,
|
|
5
|
+
grayColor,
|
|
6
|
+
blackColor,
|
|
7
|
+
hexToRgb
|
|
8
|
+
} from "../rootStyle";
|
|
9
|
+
|
|
10
|
+
const loginStyle = theme => ({
|
|
11
|
+
container: {
|
|
12
|
+
...container,
|
|
13
|
+
zIndex: "4",
|
|
14
|
+
[theme.breakpoints.down("sm")]: {
|
|
15
|
+
paddingBottom: "100px"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
right: {
|
|
19
|
+
margin: "0",
|
|
20
|
+
fontSize: "12px",
|
|
21
|
+
float: "right!important",
|
|
22
|
+
color: "#d32f2f"
|
|
23
|
+
},
|
|
24
|
+
cardTitle: {
|
|
25
|
+
...cardTitle,
|
|
26
|
+
color: whiteColor
|
|
27
|
+
},
|
|
28
|
+
loader: {
|
|
29
|
+
width: "100%",
|
|
30
|
+
height: "100",
|
|
31
|
+
display: "flex",
|
|
32
|
+
justifyContent: "center",
|
|
33
|
+
alignItems: "center"
|
|
34
|
+
},
|
|
35
|
+
textCenter: {
|
|
36
|
+
textAlign: "center"
|
|
37
|
+
},
|
|
38
|
+
justifyContentCenter: {
|
|
39
|
+
justifyContent: "center !important"
|
|
40
|
+
},
|
|
41
|
+
customButtonClass: {
|
|
42
|
+
"&,&:focus,&:hover": {
|
|
43
|
+
color: whiteColor
|
|
44
|
+
},
|
|
45
|
+
marginLeft: "5px",
|
|
46
|
+
marginRight: "5px"
|
|
47
|
+
},
|
|
48
|
+
inputAdornment: {
|
|
49
|
+
marginRight: "18px"
|
|
50
|
+
},
|
|
51
|
+
inputAdornmentIcon: {
|
|
52
|
+
color: grayColor[6]
|
|
53
|
+
},
|
|
54
|
+
cardHidden: {
|
|
55
|
+
opacity: "0",
|
|
56
|
+
transform: "translate3d(0, -60px, 0)"
|
|
57
|
+
},
|
|
58
|
+
cardHeader: {
|
|
59
|
+
marginBottom: "20px"
|
|
60
|
+
},
|
|
61
|
+
socialLine: {
|
|
62
|
+
padding: "0.9375rem 0"
|
|
63
|
+
},
|
|
64
|
+
wrapper: {
|
|
65
|
+
height: "auto",
|
|
66
|
+
minHeight: "100vh",
|
|
67
|
+
position: "relative",
|
|
68
|
+
top: "0"
|
|
69
|
+
},
|
|
70
|
+
fullPage: {
|
|
71
|
+
padding: "120px 0",
|
|
72
|
+
position: "relative",
|
|
73
|
+
minHeight: "100vh",
|
|
74
|
+
display: "flex!important",
|
|
75
|
+
margin: "0",
|
|
76
|
+
border: "0",
|
|
77
|
+
color: whiteColor,
|
|
78
|
+
alignItems: "center",
|
|
79
|
+
backgroundSize: "cover",
|
|
80
|
+
backgroundPosition: "center center",
|
|
81
|
+
height: "100%",
|
|
82
|
+
[theme.breakpoints.down("sm")]: {
|
|
83
|
+
minHeight: "700px!important"
|
|
84
|
+
},
|
|
85
|
+
"& footer": {
|
|
86
|
+
position: "absolute",
|
|
87
|
+
bottom: "0",
|
|
88
|
+
width: "100%",
|
|
89
|
+
border: "none !important"
|
|
90
|
+
},
|
|
91
|
+
"&:before": {
|
|
92
|
+
backgroundColor: "rgba(" + hexToRgb(blackColor) + ", 0.65)"
|
|
93
|
+
},
|
|
94
|
+
"&:before,&:after": {
|
|
95
|
+
display: "block",
|
|
96
|
+
content: '""',
|
|
97
|
+
position: "absolute",
|
|
98
|
+
width: "100%",
|
|
99
|
+
height: "100%",
|
|
100
|
+
top: "0",
|
|
101
|
+
left: "0",
|
|
102
|
+
zIndex: "2"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
|
|
107
|
+
export default loginStyle;
|