datastake-daf 0.6.573 → 0.6.575

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.
@@ -305,7 +305,7 @@ export const WithBackButton = {
305
305
  showLanguageSelector={false}
306
306
  showBack={true}
307
307
  onBack={() => console.log("Back clicked")}
308
- backLabel="Back to Login"
308
+ backLabel="Back"
309
309
  >
310
310
  <div style={{ width: "100%", maxWidth: "400px" }}>
311
311
  <div style={{ marginBottom: "20px" }}>
@@ -0,0 +1,43 @@
1
+ export const navItems = [
2
+ {
3
+ key: 'home',
4
+ route: '',
5
+ label: 'Home',
6
+ },
7
+ {
8
+ key: 'about',
9
+ route: 'about',
10
+ label: 'About',
11
+ },
12
+ {
13
+ key: 'platform',
14
+ route: 'platform',
15
+ label: 'Platform',
16
+ },
17
+ {
18
+ key: 'applications',
19
+ route: 'applications',
20
+ label: 'Applications',
21
+ },
22
+ {
23
+ key: 'buzz',
24
+ route: 'buzz',
25
+ label: 'Buzz',
26
+ },
27
+ ];
28
+
29
+ export const languages = [
30
+ {
31
+ value: 'en',
32
+ label: '🇬🇧 EN',
33
+ },
34
+ {
35
+ value: 'fr',
36
+ label: '🇫🇷 FR',
37
+ },
38
+ {
39
+ value: 'sp',
40
+ label: '🇪🇸 ES',
41
+ },
42
+ ];
43
+
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Select } from "antd";
3
- import { formatClassname } from "../../../../helpers/ClassesHelper.js";
3
+ import { formatClassname } from "../../../../../helpers/ClassesHelper.js";
4
4
  import "./index.scss";
5
5
 
6
6
  const AuthNavbar = ({
@@ -1,3 +1,6 @@
1
+
2
+
3
+
1
4
  .auth-navbar {
2
5
  width: 100%;
3
6
  height: 64px;
@@ -138,6 +141,7 @@
138
141
  &.ant-select-item-option-selected {
139
142
  background-color: #155eef;
140
143
  color: #ffffff;
144
+ padding: 4px !important;
141
145
 
142
146
  .language-option span {
143
147
  color: #ffffff;
@@ -0,0 +1,149 @@
1
+ import styled from "styled-components";
2
+ import { MOBILE_WIDTH, TABLET_WIDTH } from "datastake-daf/src/constants/Style";
3
+
4
+ const style = styled.div`
5
+ font-family: Outfit;
6
+
7
+ .btns {
8
+ display: flex;
9
+ gap: 12px;
10
+ }
11
+
12
+ .d-container {
13
+ width: 80vw;
14
+ margin-left: auto;
15
+ margin-right: auto;
16
+
17
+ @media (max-width: 1440px) {
18
+ width: 85vw;
19
+ }
20
+
21
+ @media (${TABLET_WIDTH}) {
22
+ width: calc(100vw - 4.6rem);
23
+ }
24
+ }
25
+
26
+ .flex-c {
27
+ display: flex;
28
+ flex-direction: column;
29
+ }
30
+
31
+ .jus-c {
32
+ justify-content: center;
33
+ }
34
+
35
+ .d-navbar {
36
+ box-shadow: 0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px rgba(16, 24, 40, 0.03);
37
+ position: fixed;
38
+ background-color: white;
39
+ z-index: 1000;
40
+ width: 100%;
41
+ height: 80px;
42
+
43
+ @media (${TABLET_WIDTH}) {
44
+ height: 72px;
45
+ }
46
+
47
+ @media (${MOBILE_WIDTH}) {
48
+ height: 5.12rem;
49
+ }
50
+
51
+ .main-cont {
52
+ display: flex;
53
+ padding: 20px 0px;
54
+
55
+ @media (${MOBILE_WIDTH}) {
56
+ padding: 1.6rem 0;
57
+ }
58
+
59
+ .left {
60
+ flex: 1;
61
+
62
+ img {
63
+ cursor: pointer;
64
+ width: 128px;
65
+
66
+ @media (${MOBILE_WIDTH}) {
67
+ width: 10.24rem;
68
+ }
69
+ }
70
+ }
71
+
72
+ .right {
73
+ display: flex;
74
+ gap: 3rem;
75
+
76
+ .ant-btn {
77
+ font-size: 14px;
78
+ padding: 6px 0;
79
+ text-align: center;
80
+ width: 70px;
81
+
82
+ @media (${MOBILE_WIDTH}) {
83
+ padding: 3px 0;
84
+ }
85
+ }
86
+
87
+ @media (max-width: 1070px) {
88
+ gap: 2rem;
89
+ }
90
+ }
91
+ }
92
+ }
93
+
94
+ &.bordered {
95
+ .d-navbar {
96
+ position: relative;
97
+ box-shadow: unset;
98
+ border-bottom: 1px solid var(--base-gray-40);
99
+ }
100
+ }
101
+
102
+ .tazama-extra {
103
+ &.mobile {
104
+ display: none;
105
+ }
106
+
107
+ @media (${MOBILE_WIDTH}) {
108
+ &.mobile {
109
+ display: flex;
110
+ }
111
+
112
+ &.desktop {
113
+ display: none;
114
+ }
115
+ }
116
+
117
+ .ant-btn {
118
+ width: 90px !important;
119
+ display: flex;
120
+ flex-direction: column;
121
+ justify-content: center;
122
+
123
+ &.w-100 {
124
+ width: 100% !important;
125
+ }
126
+
127
+ span {
128
+ margin: 0 auto;
129
+ }
130
+ }
131
+
132
+ .nav-extra {
133
+ position: fixed;
134
+ top: 0;
135
+ left: 0;
136
+ height: 100dvh;
137
+ width: 100%;
138
+ background: white;
139
+ margin-left: -100%;
140
+ transition: 0.4s margin-left;
141
+
142
+ &.toggled {
143
+ margin-left: 0;
144
+ }
145
+ }
146
+ }
147
+ `;
148
+
149
+ export default style;
@@ -1,8 +1,7 @@
1
1
  import React from "react";
2
- import "./index.scss";
3
- import AuthNavbar from "./components/NavbarComponent.jsx";
2
+ import AuthNavbar from "./components/Navbar/index.jsx";
4
3
  import { formatClassname } from "../../../helpers/ClassesHelper.js";
5
-
4
+ import Style from './style';
6
5
 
7
6
  const AuthLayout = ({
8
7
  children,
@@ -33,7 +32,9 @@ const AuthLayout = ({
33
32
  ]);
34
33
 
35
34
  return (
36
- <Wrapper className={wrapperClassName}>
35
+
36
+
37
+ <>
37
38
  {showTopHeader && (
38
39
  <AuthNavbar
39
40
  logo={logo}
@@ -45,7 +46,7 @@ const AuthLayout = ({
45
46
  backLabel={backLabel}
46
47
  />
47
48
  )}
48
-
49
+ <Style>
49
50
  <div className="main-cont">
50
51
  <div className={formatClassname(["d-cont left", leftClassName])}>
51
52
  <div className="main">
@@ -76,7 +77,8 @@ const AuthLayout = ({
76
77
  <div className={formatClassname(["right-img", rightImgClassName])} />
77
78
  </div>
78
79
  </div>
79
- </Wrapper>
80
+ </Style>
81
+ </>
80
82
  );
81
83
  };
82
84
 
@@ -0,0 +1,418 @@
1
+ import styled from "styled-components";
2
+ import { MOBILE_WIDTH, TABLET_WIDTH } from "datastake-daf/src/constants/Style";
3
+
4
+ const Style = styled.div`
5
+ .errors-cont {
6
+ margin-top: var(--size-lg);
7
+
8
+ &.no-pt {
9
+ margin-top: 0px;
10
+ }
11
+ }
12
+
13
+ &.popup {
14
+ h2 {
15
+ font-size: 36px;
16
+ line-height: 44px;
17
+ color: #101828;
18
+ margin-bottom: 8px;
19
+ }
20
+
21
+ p {
22
+ color: #667085;
23
+ font-size: var(--font-size-lg);
24
+ line-height: var(--size-lg);
25
+ margin-bottom: 0;
26
+ }
27
+
28
+ .ant-btn-primary {
29
+ background-color: var(--color-primary-70) !important;
30
+ }
31
+ }
32
+
33
+ display: flex;
34
+ flex-direction: column;
35
+ font-family: Outfit;
36
+
37
+ @media(${TABLET_WIDTH}) {
38
+ max-height: 100dvh;
39
+ overflow-y: auto;
40
+ }
41
+
42
+ .category-understood {
43
+ margin-top: -4px;
44
+ background: #F9FAFB;
45
+ border-radius: 8px;
46
+ padding: 12px;
47
+
48
+ svg {
49
+ margin-bottom: 12px;
50
+ }
51
+
52
+ .paragraph {
53
+ display: flex;
54
+ gap: 13px;
55
+
56
+ svg {
57
+ color: #F79009;
58
+ }
59
+ }
60
+
61
+ p {
62
+ font-size: 14px;
63
+ line-height: 20px;
64
+ color: #6C737F;
65
+ font-weight: 400;
66
+ margin-bottom: 8px;
67
+ text-align: left;
68
+ margin-bottom: 8px;
69
+ }
70
+
71
+ .btn {
72
+ padding: 0;
73
+
74
+ span {
75
+ color: var(--mmt-primary-70);
76
+ font-size: 14px;
77
+ font-weight: 500;
78
+ margin-left: 30px;
79
+ cursor: pointer;
80
+ }
81
+ }
82
+ }
83
+
84
+ .main-cont {
85
+ flex: 1;
86
+ display: flex;
87
+ flex-direction: row;
88
+ justify-content: center;
89
+
90
+ @media (${TABLET_WIDTH}) {
91
+ flex-direction: column;
92
+ justify-content: flex-start;
93
+ gap: 48px;
94
+ }
95
+
96
+ .dots {
97
+ display: flex;
98
+ gap: 8px;
99
+ margin-top: 32px;
100
+
101
+ @media (${TABLET_WIDTH}) {
102
+ justify-content: center;
103
+ }
104
+
105
+ .dot {
106
+ width: 12px;
107
+ height: 12px;
108
+ background: white;
109
+ border-radius: 6px;
110
+ transition: .4s width, .4s background;
111
+
112
+ &.active {
113
+ width: 35px;
114
+ background: var(--mmt-primary-60);
115
+ }
116
+ }
117
+ }
118
+
119
+ .d-cont {
120
+ flex: 1;
121
+ display: flex;
122
+ flex-direction: column;
123
+
124
+ a {
125
+ color: var(--mmt-primary-70);
126
+ }
127
+
128
+ .main {
129
+ flex: 1;
130
+ width: 380px;
131
+ display: flex;
132
+ flex-direction: column;
133
+ justify-content: center;
134
+ margin-right: auto;
135
+
136
+ span {
137
+ font-size: 14px;
138
+ }
139
+
140
+ @media(${TABLET_WIDTH}) {
141
+ width: 100%;
142
+ margin-right: unset;
143
+ padding: 0px 10px;
144
+ }
145
+ }
146
+
147
+ &.left {
148
+ animation: .7s slideRight forwards;
149
+ height: 100dvh;
150
+ overflow-y: auto;
151
+ padding: 6rem 0;
152
+ padding-top: calc(6rem + 80px);
153
+
154
+ @media (${TABLET_WIDTH}) {
155
+ padding-top: calc(72px + 3rem);
156
+ padding-bottom: 3rem;
157
+ padding-left: 2.3rem;
158
+ padding-right: 2.3rem;
159
+ width: 100%;
160
+ }
161
+
162
+ @media (${MOBILE_WIDTH}) {
163
+ padding-top: 8.12rem;
164
+ padding-bottom: 3rem;
165
+ }
166
+
167
+ .left-header {
168
+ margin-bottom: 32px;
169
+
170
+ h2 {
171
+ font-size: 36px;
172
+ line-height: 44px;
173
+ color: #101828;
174
+ margin-bottom: 8px;
175
+ }
176
+
177
+ p {
178
+ color: #667085;
179
+ font-size: var(--font-size-lg);
180
+ line-height: var(--size-lg);
181
+ margin-bottom: 0;
182
+ }
183
+
184
+ img {
185
+ margin-bottom: 32px;
186
+ width: 136px;
187
+ }
188
+ }
189
+
190
+ .main {
191
+ margin-left: auto;
192
+ margin-right: auto;
193
+
194
+ @media(${TABLET_WIDTH}) {
195
+ width: unset;
196
+ margin-left: unset;
197
+ margin-right: unset;
198
+ padding: 0px;
199
+ }
200
+ }
201
+
202
+ @media(${TABLET_WIDTH}) {
203
+ height: unset;
204
+ overflow-y: hidden;
205
+ }
206
+ }
207
+
208
+ @media (${TABLET_WIDTH}) {
209
+ margin-left: auto;
210
+ margin-right: auto;
211
+ width: 100%;
212
+ flex: unset;
213
+ }
214
+
215
+ @media (max-width: 575px) {
216
+ .ant-form-item {
217
+ flex-direction: row !important;
218
+ }
219
+ }
220
+
221
+ @media (max-width: 500px) {
222
+ width: 100%;
223
+ }
224
+
225
+ &.right {
226
+ animation: .7s slideLeft forwards;
227
+ background-image: url('/assets/images/auth-bg-2.svg');
228
+ background-size: contain;
229
+ display: flex;
230
+ flex-direction: column;
231
+ justify-content: center;
232
+ padding-top: 80px;
233
+
234
+ @media (${TABLET_WIDTH}) {
235
+ padding-top: 72px;
236
+ }
237
+
238
+ @media (${MOBILE_WIDTH}) {
239
+ padding-top: 5.12rem;
240
+ }
241
+
242
+ .right-img {
243
+ flex: 1;
244
+ background-position: center right;
245
+ background-repeat: no-repeat;
246
+ margin-left: 96px;
247
+ background-size: contain;
248
+ max-height: 700px;
249
+
250
+ &.default {
251
+ background-image: url('/assets/images/auth-bg.svg');
252
+ }
253
+ }
254
+
255
+ &.verified-user {
256
+ .right-img {
257
+ background-image: url('/assets/images/verified-user.svg');
258
+ }
259
+ }
260
+
261
+ @media (${TABLET_WIDTH}) {
262
+ display: none;
263
+ }
264
+ }
265
+
266
+ &.left {
267
+ .ant-form-item-required {
268
+ ::before {
269
+ content: unset;
270
+ }
271
+ }
272
+
273
+ .ant-input {
274
+ padding: 10px 12px;
275
+ font-size: 14px;
276
+ font-weight: 400;
277
+ border: 1px solid #E5E7EB;
278
+ border-radius: 6px;
279
+ }
280
+
281
+ .ant-checkbox-wrapper + .ant-checkbox-wrapper {
282
+ margin-left: 0px;
283
+ }
284
+
285
+ .ant-checkbox-wrapper {
286
+ color: #344054;
287
+ font-size: 14px;
288
+ font-weight: 400;
289
+ }
290
+
291
+ .ant-select-selector {
292
+ padding: 4px 12px;
293
+ border-radius: 6px;
294
+ height: fit-content;
295
+ font-size: 14px;
296
+ border: 1px solid #E5E7EB;
297
+ font-weight: 400;
298
+ transition: 0s;
299
+
300
+ .ant-select-selection-item {
301
+ transition: 0s;
302
+ }
303
+
304
+ .ant-select-selection-search {
305
+ display: flex;
306
+ flex-direction: column;
307
+ justify-content: center;
308
+ }
309
+ }
310
+
311
+ .ant-input-affix-wrapper {
312
+ padding: 11px 14px;
313
+ border: 2px solid #F2FAFF;
314
+ border-radius: 8px;
315
+
316
+ .ant-input {
317
+ padding: 0;
318
+ border: unset;
319
+ border-radius: unset;
320
+ }
321
+
322
+ .ant-input-prefix {
323
+ margin-right: 10px;
324
+ color: #A4A4A4;
325
+ }
326
+ }
327
+
328
+ .buttons {
329
+ display: flex;
330
+ flex-direction: column;
331
+ margin-top: var(--size-lg);
332
+ gap: 12px;
333
+
334
+ .d-btn-cont {
335
+ flex: 1;
336
+ }
337
+ }
338
+
339
+ .bottom {
340
+ margin-top: 10px;
341
+ display: flex;
342
+ flex-direction: column;
343
+ gap: 4px;
344
+
345
+ p {
346
+ color: #667085;
347
+ font-size: 14px;
348
+ line-height: 20px;
349
+ margin-bottom: 0px;
350
+ }
351
+ }
352
+
353
+ form {
354
+ display: flex;
355
+ flex-direction: column;
356
+ gap: 10px;
357
+ }
358
+
359
+ .ant-row.ant-form-item {
360
+ margin-bottom: 0px;
361
+ }
362
+
363
+ .ant-form-item-label {
364
+ label {
365
+ color: #1F2A37;
366
+ font-size: 14px;
367
+ font-weight: 500;
368
+ line-height: 20px;
369
+ }
370
+ }
371
+
372
+ }
373
+ }
374
+ }
375
+
376
+ @keyframes slideLeft {
377
+ 0% {transform: translate(-10%, 0%); opacity: 0;}
378
+ 100% {transform: translate(0%, 0%); opacity: 1;}
379
+ }
380
+
381
+ @keyframes slideRight {
382
+ 0% {transform: translate(10%, 0%); opacity: 0;}
383
+ 100% {transform: translate(0%, 0%); opacity: 1;}
384
+ }
385
+
386
+ &.tif-layout {
387
+ .ant-btn {
388
+ &.ant-btn-primary {
389
+ background: #1E4F7C;
390
+ border-color: #1E4F7C;
391
+ }
392
+ }
393
+
394
+ .app-logo {
395
+ width: 230px !important;
396
+ }
397
+ }
398
+
399
+ &.sbg-layout {
400
+ .right-img {
401
+ background-position: center !important;
402
+ background-size: cover !important;
403
+ background-image: url('/assets/sbg-images/sbg-bg.png') !important;
404
+ max-height: 100% !important;
405
+ margin-left: 0 !important;
406
+ }
407
+
408
+ .ant-btn {
409
+ &.ant-btn-primary {
410
+ background: var(--color-primary-70);
411
+ border-color: var(--color-primary-70);
412
+ }
413
+ }
414
+ }
415
+ `;
416
+
417
+ export default Style;
418
+
package/src/layouts.js CHANGED
@@ -1,3 +1,3 @@
1
1
  export { default as AppLayout } from './@daf/layouts/AppLayout/index.jsx';
2
2
  export { default as AuthLayout } from './@daf/layouts/AuthLayout/index.jsx';
3
- export { default as AuthNavbar } from './@daf/layouts/AuthLayout/components/NavbarComponent.jsx';
3
+ export { default as AuthNavbar } from './@daf/layouts/AuthLayout/components/Navbar/index.jsx';