datien228 commited on
Commit
4b626ba
1 Parent(s): 306c627

add page url, feedback modal, web icon, form autosave script

Browse files
static/assets/favicon.png ADDED
static/css/style.css CHANGED
@@ -1,14 +1,17 @@
1
- html, body {
2
- --def: #fff;
3
- --inv: #1d1d1d;
4
- min-height:100vh;
5
- #max-height:100%;
6
- height:100vh;
7
- background:#fff;
8
- }
9
-
10
- *, *:before, *:after {
11
- box-sizing: border-box;
 
 
 
12
  }
13
 
14
  * {
@@ -19,10 +22,6 @@ html, body {
19
  transition: opacity .5s ease-in-out;
20
  }
21
 
22
- iframe {
23
- scrolling: yes;
24
- }
25
-
26
  .row * {
27
  padding-left: 0;
28
  padding-right: 0;
@@ -35,7 +34,7 @@ iframe {
35
  .link-title {
36
  cursor: pointer;
37
  color: #1d1d1d;
38
- transition: 250ms cubic-bezier(0.215,0.61,0.355,1);
39
  transition-property: color, opacity;
40
  }
41
 
@@ -47,15 +46,21 @@ h1 {
47
  font-size: 2.0vw;
48
  font-family: "Manrope Extra Bold";
49
  }
50
- h2, h3 {
 
 
51
  font-size: 2.5vh;
52
  font-family: "Manrope Bold";
 
53
  }
54
- h4, p {
 
 
55
  font-size: 1.5vmin;
56
  font-family: "Manrope Light";
57
  margin: 0
58
  }
 
59
  a {
60
  text-decoration: none;
61
  }
@@ -65,13 +70,14 @@ a {
65
  padding-bottom: 20px
66
  }
67
 
68
- .input-nlp-text, .output-nlp-text {
 
69
  color: #1d1d1d !important;
70
  font-family: "Manrope Light";
71
  font-size: 2vmin;
72
  height: 50vh;
73
  width: 100%;
74
- resize: none !important;
75
  }
76
 
77
  .form-control:focus {
@@ -102,27 +108,31 @@ a {
102
  height: 3em;
103
  width: 3em;
104
  display: inline-block;
105
- border: 2px solid rgba(255,255,255,0.2);
106
  border-radius: 50%;
107
  border-left-color: #1d1d1d;
108
  animation: rotate 1.2s linear infinite;
109
  }
110
 
111
  @keyframes rotate {
112
- 50%{
113
  border-left-color: #1d1d1d;
114
  }
115
- 75%{
 
116
  border-left-color: #1d1d1d;
117
  }
118
- 100%{
 
119
  transform: rotate(360deg);
120
  }
121
  }
122
- .progress-icon .check-icon{
 
123
  display: none;
124
  }
125
- .progress-icon .check-icon:after{
 
126
  position: absolute;
127
  content: "";
128
  top: 50%;
@@ -135,35 +145,42 @@ a {
135
  transform-origin: left top;
136
  animation: check-icon 0.8s ease;
137
  }
 
138
  @keyframes check-icon {
139
- 0%{
140
  height: 0;
141
  width: 0;
142
  opacity: 1;
143
  }
144
- 20%{
 
145
  height: 0;
146
  width: 0.75em;
147
  opacity: 1;
148
  }
149
- 40%{
 
150
  height: 1.5em;
151
  width: 0.75em;
152
  opacity: 1;
153
  }
154
- 100%{
 
155
  height: 1.5em;
156
  width: 0.75em;
157
  opacity: 1;
158
  }
159
  }
 
160
  .toggle-load-icon {
161
  display: none;
162
  }
163
- .toggle-load-icon:checked ~ .progress-icon .check-icon{
 
164
  display: block;
165
  }
166
- .toggle-load-icon:checked ~ .progress-icon {
 
167
  animation: none;
168
  border-color: #1d1d1d;
169
  transition: border 0.5s ease-out;
@@ -177,36 +194,36 @@ a {
177
 
178
  .js .loading::before,
179
  .js .loading::after {
180
- content: '';
181
- #position: fixed;
182
- z-index: 1000;
183
  }
184
 
185
  .js .loading::before {
186
- top: 0;
187
- left: 0;
188
- width: 100%;
189
- height: 100%;
190
- background: var(--color-bg);
191
  }
192
 
193
  .js .loading::after {
194
- top: 50%;
195
- left: 50%;
196
- width: 60px;
197
- height: 60px;
198
- margin: -30px 0 0 -30px;
199
- border-radius: 50%;
200
- opacity: 0.4;
201
- background: var(--color-link);
202
- animation: loaderAnim 0.7s linear infinite alternate forwards;
203
  }
204
 
205
  @keyframes loaderAnim {
206
- to {
207
- opacity: 1;
208
- transform: scale3d(0.5, 0.5, 1);
209
- }
210
  }
211
 
212
  .nav-tabs {
@@ -229,7 +246,7 @@ a {
229
  padding-left: 0;
230
  }
231
 
232
- .nav-tabs > li {
233
  line-height: 5rem;
234
  display: block;
235
  padding: 9.6px 16px;
@@ -237,7 +254,7 @@ a {
237
  list-style-type: none;
238
  }
239
 
240
- .nav-tabs > li > a {
241
  font-family: "Manrope Regular";
242
  color: #1d1d1d;
243
  font-size: 2vmin;
@@ -261,25 +278,25 @@ a {
261
  padding-right: 0;
262
  }
263
 
264
- .nav-tabs-r > li {
265
  line-height: 5rem;
266
  display: block;
267
  padding: 0.6rem 3rem;
268
  list-style-type: none;
269
  }
270
 
271
- .nav-tabs-r > li > a {
272
  font-family: "Manrope Light";
273
  color: #1d1d1d;
274
  font-size: 2vmin;
275
  }
276
 
277
  li {
278
- list-style:none
279
  }
280
 
281
- ul {
282
- margin:0
283
  }
284
 
285
  textarea::-webkit-scrollbar {
@@ -288,8 +305,10 @@ textarea::-webkit-scrollbar {
288
 
289
  /* Hide scrollbar for IE, Edge and Firefox */
290
  textarea {
291
- -ms-overflow-style: none; /* IE and Edge */
292
- scrollbar-width: none; /* Firefox */
 
 
293
  }
294
 
295
  .link {
@@ -351,8 +370,10 @@ textarea {
351
  margin-bottom: 1em;
352
  }
353
 
354
- .input-field, .output-field {
355
- padding: 0rem 2rem 0rem 2rem; /*top right bottom left*/
 
 
356
  }
357
 
358
  .button {
@@ -362,10 +383,10 @@ textarea {
362
  position: relative;
363
  padding: 1.5em 3em;
364
  margin: auto;
365
- text-align:center;
366
  -webkit-appearance: none;
367
- -moz-appearance: none;
368
- appearance: none;
369
  border: 0;
370
  background: transparent;
371
  color: #1d1d1d;
@@ -380,10 +401,13 @@ textarea {
380
  box-shadow: inset 0 0 0 var(--border-size) currentcolor;
381
  transition: background 0.8s ease;
382
  }
 
383
  .button:hover {
384
  background: rgba(100, 0, 0, 0.03);
385
  }
386
- .button__horizontal, .button__vertical {
 
 
387
  position: absolute;
388
  top: var(--horizontal-offset, 0);
389
  right: var(--vertical-offset, 0);
@@ -392,36 +416,44 @@ textarea {
392
  transition: transform 0.8s ease;
393
  will-change: transform;
394
  }
395
- .button__horizontal::before, .button__vertical::before {
 
 
396
  content: "";
397
  position: absolute;
398
  border: inherit;
399
  }
 
400
  .button__horizontal {
401
  --vertical-offset: calc(var(--offset) * -1);
402
  border-top: var(--border-size) solid currentcolor;
403
  border-bottom: var(--border-size) solid currentcolor;
404
  }
 
405
  .button__horizontal::before {
406
  top: calc(var(--vertical-offset) - var(--border-size));
407
  bottom: calc(var(--vertical-offset) - var(--border-size));
408
  left: calc(var(--vertical-offset) * -1);
409
  right: calc(var(--vertical-offset) * -1);
410
  }
 
411
  .button:hover .button__horizontal {
412
  transform: scaleX(0);
413
  }
 
414
  .button__vertical {
415
  --horizontal-offset: calc(var(--offset) * -1);
416
  border-left: var(--border-size) solid currentcolor;
417
  border-right: var(--border-size) solid currentcolor;
418
  }
 
419
  .button__vertical::before {
420
  top: calc(var(--horizontal-offset) * -1);
421
  bottom: calc(var(--horizontal-offset) * -1);
422
  left: calc(var(--horizontal-offset) - var(--border-size));
423
  right: calc(var(--horizontal-offset) - var(--border-size));
424
  }
 
425
  .button:hover .button__vertical {
426
  transform: scaleY(0);
427
  }
@@ -434,14 +466,16 @@ textarea {
434
  flex-flow: row nowrap;
435
  justify-content: flex-end;
436
  align-items: stretch;
437
- }
438
- .toggle input {
 
439
  width: 0;
440
  height: 0;
441
  position: absolute;
442
  left: -9999px;
443
- }
444
- .toggle input + label {
 
445
  margin: 0;
446
  padding: 0.5rem 1rem;
447
  box-sizing: border-box;
@@ -453,157 +487,368 @@ textarea {
453
  font-size: 0.6rem;
454
  line-height: 75%;
455
  text-align: center;
456
- /* box-shadow: 0 0 0 rgba(255, 255, 255, 0); */
457
  transition: border-color 0.15s ease-out, color 0.25s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
458
- /* ADD THESE PROPERTIES TO SWITCH FROM AUTO WIDTH TO FULL WIDTH */
459
- /*flex: 0 0 50%;
460
- display: flex;
461
- justify-content: center;
462
- align-items: center;
463
- */
464
- /* ----- */
465
- }
466
- .toggle input + label:first-of-type {
467
  border-radius: 0px 0 0 0px;
468
  border-right: none;
469
- }
470
- .toggle input + label:last-of-type {
 
471
  border-radius: 0 0px 0px 0;
472
  border-left: none;
473
- }
474
- .toggle input:hover + label {
 
475
  border-color: #1d1d1d;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
476
  }
477
- .toggle input:checked + label {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
478
  background-color: #1d1d1d;
479
  color: #fff;
480
  /* box-shadow: 0 0 10px rgba(102, 179, 251, .5); */
481
  border-color: #1d1d1d;
482
  z-index: 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
483
  }
484
- /* .toggle input:focus + label {
485
- outline: dotted 1px #ccc;
486
- outline-offset: 0.45rem;
487
- } */
488
 
489
- .spacer {
490
- display: none;
 
 
 
 
 
 
491
  }
492
 
493
- @media (max-width: 864px) {
494
-
495
- .toggle input + label {
496
- /* padding: 0.75rem 0.25rem; */
497
- flex: 0 0 10%;
498
- display: flex;
499
- justify-content: center;
500
- align-items: center;
501
- font-size: 0.4rem;
502
- }
503
-
504
- h1 {
505
- font-size: 2.5vh;
506
- font-family: "Manrope Extra Bold";
507
- letter-spacing: -2px;
508
- }
509
-
510
- h2, h3 {
511
- font-size: 2.0vh;
512
- font-family: "Manrope Bold";
513
- }
514
-
515
- h4, p {
516
- font-size: 1.5vmin;
517
- }
518
-
519
- .input-nlp-text, .output-nlp-text {
520
- font-size: 1.5vh;
521
- }
522
-
523
- .row {
524
- margin-bottom: 0 !important;
525
- }
526
-
527
- #input_form {
528
- margin-bottom: 1rem;
529
- }
530
-
531
- #input_text {
532
- max-height: 20vh;
533
- }
534
-
535
- #output_text {
536
- max-height: 15vh;
537
- }
538
-
539
- .nav-tabs {
540
- display: none;
541
- }
542
-
543
- .flex-col {
544
- flex-basis: 25%;
545
- }
546
-
547
- .flex-col-50 {
548
- justify-content: space-between;
549
- }
550
-
551
- .flex-col-50 div {
552
- flex-basis: 50%;
553
- }
554
-
555
- .spacer {
556
- display: inline-block;
557
- }
558
  }
559
 
560
- /*======================== FONT ===============================*/
561
- @font-face {
562
- font-family: "Gilroy Regular";
563
- src: url("../fonts/gilroy-regular.otf") format("opentype");
564
  }
565
-
566
- @font-face {
567
- font-family: "Gilroy Medium";
568
- src: url("../fonts/gilroy_medium.otf") format("opentype");
569
  }
570
-
571
- @font-face {
572
- font-family: "Gilroy Bold";
573
- src: url("../fonts/gilroy-bold.otf") format("opentype");
574
  }
575
 
576
- @font-face {
577
- font-family: "Manrope Bold";
578
- src: url("../fonts/Manrope-Bold.otf") format("opentype");
579
  }
580
-
581
- @font-face {
582
- font-family: "Manrope Extra Bold";
583
- src: url("../fonts/Manrope-ExtraBold.otf") format("opentype");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
584
  }
585
-
586
- @font-face {
587
- font-family: "Manrope Extra Light";
588
- src: url("../fonts/Manrope-ExtraLight.otf") format("opentype");
589
  }
590
 
591
- @font-face {
592
- font-family: "Manrope Light";
593
- src: url("../fonts/Manrope-Light.otf") format("opentype");
594
  }
595
-
596
- @font-face {
597
- font-family: "Manrope Medium";
598
- src: url("../fonts/Manrope-Medium.otf") format("opentype");
599
  }
600
-
601
- @font-face {
602
- font-family: "Manrope Regular";
603
- src: url("../fonts/Manrope-Regular.otf") format("opentype");
 
 
 
604
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
605
 
606
- @font-face {
607
- font-family: "Manrope Semi Bold";
608
- src: url("../fonts/Manrope-SemiBold.otf") format("opentype");
609
- }
 
 
 
 
 
 
1
+ html,
2
+ body {
3
+ --def: #fff;
4
+ --inv: #1d1d1d;
5
+ min-height: 100vh;
6
+ /* max-height:100%; */
7
+ height: 100vh;
8
+ background: #fff;
9
+ }
10
+
11
+ *,
12
+ *:before,
13
+ *:after {
14
+ box-sizing: border-box;
15
  }
16
 
17
  * {
 
22
  transition: opacity .5s ease-in-out;
23
  }
24
 
 
 
 
 
25
  .row * {
26
  padding-left: 0;
27
  padding-right: 0;
 
34
  .link-title {
35
  cursor: pointer;
36
  color: #1d1d1d;
37
+ transition: 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
38
  transition-property: color, opacity;
39
  }
40
 
 
46
  font-size: 2.0vw;
47
  font-family: "Manrope Extra Bold";
48
  }
49
+
50
+ h2,
51
+ h3 {
52
  font-size: 2.5vh;
53
  font-family: "Manrope Bold";
54
+ letter-spacing: -1px;
55
  }
56
+
57
+ h4,
58
+ p {
59
  font-size: 1.5vmin;
60
  font-family: "Manrope Light";
61
  margin: 0
62
  }
63
+
64
  a {
65
  text-decoration: none;
66
  }
 
70
  padding-bottom: 20px
71
  }
72
 
73
+ .input-nlp-text,
74
+ .output-nlp-text {
75
  color: #1d1d1d !important;
76
  font-family: "Manrope Light";
77
  font-size: 2vmin;
78
  height: 50vh;
79
  width: 100%;
80
+ resize: none !important;
81
  }
82
 
83
  .form-control:focus {
 
108
  height: 3em;
109
  width: 3em;
110
  display: inline-block;
111
+ border: 2px solid rgba(255, 255, 255, 0.2);
112
  border-radius: 50%;
113
  border-left-color: #1d1d1d;
114
  animation: rotate 1.2s linear infinite;
115
  }
116
 
117
  @keyframes rotate {
118
+ 50% {
119
  border-left-color: #1d1d1d;
120
  }
121
+
122
+ 75% {
123
  border-left-color: #1d1d1d;
124
  }
125
+
126
+ 100% {
127
  transform: rotate(360deg);
128
  }
129
  }
130
+
131
+ .progress-icon .check-icon {
132
  display: none;
133
  }
134
+
135
+ .progress-icon .check-icon:after {
136
  position: absolute;
137
  content: "";
138
  top: 50%;
 
145
  transform-origin: left top;
146
  animation: check-icon 0.8s ease;
147
  }
148
+
149
  @keyframes check-icon {
150
+ 0% {
151
  height: 0;
152
  width: 0;
153
  opacity: 1;
154
  }
155
+
156
+ 20% {
157
  height: 0;
158
  width: 0.75em;
159
  opacity: 1;
160
  }
161
+
162
+ 40% {
163
  height: 1.5em;
164
  width: 0.75em;
165
  opacity: 1;
166
  }
167
+
168
+ 100% {
169
  height: 1.5em;
170
  width: 0.75em;
171
  opacity: 1;
172
  }
173
  }
174
+
175
  .toggle-load-icon {
176
  display: none;
177
  }
178
+
179
+ .toggle-load-icon:checked~.progress-icon .check-icon {
180
  display: block;
181
  }
182
+
183
+ .toggle-load-icon:checked~.progress-icon {
184
  animation: none;
185
  border-color: #1d1d1d;
186
  transition: border 0.5s ease-out;
 
194
 
195
  .js .loading::before,
196
  .js .loading::after {
197
+ content: '';
198
+ position: fixed;
199
+ z-index: 1000;
200
  }
201
 
202
  .js .loading::before {
203
+ top: 0;
204
+ left: 0;
205
+ width: 100%;
206
+ height: 100%;
207
+ background: var(--color-bg);
208
  }
209
 
210
  .js .loading::after {
211
+ top: 50%;
212
+ left: 50%;
213
+ width: 60px;
214
+ height: 60px;
215
+ margin: -30px 0 0 -30px;
216
+ border-radius: 50%;
217
+ opacity: 0.4;
218
+ background: var(--color-link);
219
+ animation: loaderAnim 0.7s linear infinite alternate forwards;
220
  }
221
 
222
  @keyframes loaderAnim {
223
+ to {
224
+ opacity: 1;
225
+ transform: scale3d(0.5, 0.5, 1);
226
+ }
227
  }
228
 
229
  .nav-tabs {
 
246
  padding-left: 0;
247
  }
248
 
249
+ .nav-tabs>li {
250
  line-height: 5rem;
251
  display: block;
252
  padding: 9.6px 16px;
 
254
  list-style-type: none;
255
  }
256
 
257
+ .nav-tabs>li>a {
258
  font-family: "Manrope Regular";
259
  color: #1d1d1d;
260
  font-size: 2vmin;
 
278
  padding-right: 0;
279
  }
280
 
281
+ .nav-tabs-r>li {
282
  line-height: 5rem;
283
  display: block;
284
  padding: 0.6rem 3rem;
285
  list-style-type: none;
286
  }
287
 
288
+ .nav-tabs-r>li>a {
289
  font-family: "Manrope Light";
290
  color: #1d1d1d;
291
  font-size: 2vmin;
292
  }
293
 
294
  li {
295
+ list-style: none
296
  }
297
 
298
+ ul {
299
+ margin: 0
300
  }
301
 
302
  textarea::-webkit-scrollbar {
 
305
 
306
  /* Hide scrollbar for IE, Edge and Firefox */
307
  textarea {
308
+ -ms-overflow-style: none;
309
+ /* IE and Edge */
310
+ scrollbar-width: none;
311
+ /* Firefox */
312
  }
313
 
314
  .link {
 
370
  margin-bottom: 1em;
371
  }
372
 
373
+ .input-field,
374
+ .output-field {
375
+ padding: 0rem 2rem 0rem 2rem;
376
+ /*top right bottom left*/
377
  }
378
 
379
  .button {
 
383
  position: relative;
384
  padding: 1.5em 3em;
385
  margin: auto;
386
+ text-align: center;
387
  -webkit-appearance: none;
388
+ -moz-appearance: none;
389
+ appearance: none;
390
  border: 0;
391
  background: transparent;
392
  color: #1d1d1d;
 
401
  box-shadow: inset 0 0 0 var(--border-size) currentcolor;
402
  transition: background 0.8s ease;
403
  }
404
+
405
  .button:hover {
406
  background: rgba(100, 0, 0, 0.03);
407
  }
408
+
409
+ .button__horizontal,
410
+ .button__vertical {
411
  position: absolute;
412
  top: var(--horizontal-offset, 0);
413
  right: var(--vertical-offset, 0);
 
416
  transition: transform 0.8s ease;
417
  will-change: transform;
418
  }
419
+
420
+ .button__horizontal::before,
421
+ .button__vertical::before {
422
  content: "";
423
  position: absolute;
424
  border: inherit;
425
  }
426
+
427
  .button__horizontal {
428
  --vertical-offset: calc(var(--offset) * -1);
429
  border-top: var(--border-size) solid currentcolor;
430
  border-bottom: var(--border-size) solid currentcolor;
431
  }
432
+
433
  .button__horizontal::before {
434
  top: calc(var(--vertical-offset) - var(--border-size));
435
  bottom: calc(var(--vertical-offset) - var(--border-size));
436
  left: calc(var(--vertical-offset) * -1);
437
  right: calc(var(--vertical-offset) * -1);
438
  }
439
+
440
  .button:hover .button__horizontal {
441
  transform: scaleX(0);
442
  }
443
+
444
  .button__vertical {
445
  --horizontal-offset: calc(var(--offset) * -1);
446
  border-left: var(--border-size) solid currentcolor;
447
  border-right: var(--border-size) solid currentcolor;
448
  }
449
+
450
  .button__vertical::before {
451
  top: calc(var(--horizontal-offset) * -1);
452
  bottom: calc(var(--horizontal-offset) * -1);
453
  left: calc(var(--horizontal-offset) - var(--border-size));
454
  right: calc(var(--horizontal-offset) - var(--border-size));
455
  }
456
+
457
  .button:hover .button__vertical {
458
  transform: scaleY(0);
459
  }
 
466
  flex-flow: row nowrap;
467
  justify-content: flex-end;
468
  align-items: stretch;
469
+ }
470
+
471
+ .toggle input {
472
  width: 0;
473
  height: 0;
474
  position: absolute;
475
  left: -9999px;
476
+ }
477
+
478
+ .toggle input+label {
479
  margin: 0;
480
  padding: 0.5rem 1rem;
481
  box-sizing: border-box;
 
487
  font-size: 0.6rem;
488
  line-height: 75%;
489
  text-align: center;
 
490
  transition: border-color 0.15s ease-out, color 0.25s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
491
+ }
492
+
493
+ .toggle input+label:first-of-type {
 
 
 
 
 
 
494
  border-radius: 0px 0 0 0px;
495
  border-right: none;
496
+ }
497
+
498
+ .toggle input+label:last-of-type {
499
  border-radius: 0 0px 0px 0;
500
  border-left: none;
501
+ }
502
+
503
+ .toggle input:hover+label {
504
  border-color: #1d1d1d;
505
+ }
506
+
507
+ .toggle input:checked+label {
508
+ background-color: #1d1d1d;
509
+ color: #fff;
510
+ /* box-shadow: 0 0 10px rgba(102, 179, 251, .5); */
511
+ border-color: #1d1d1d;
512
+ z-index: 1;
513
+ }
514
+
515
+ .spacer {
516
+ display: none;
517
+ }
518
+
519
+ .modal-window {
520
+ font-family: 'Manrope Regular';
521
+ position: fixed;
522
+ background-color: rgba(255, 255, 255, 0.5);
523
+ top: 0;
524
+ right: 0;
525
+ bottom: 0;
526
+ left: 0;
527
+ z-index: 999;
528
+ visibility: hidden;
529
+ opacity: 0;
530
+ pointer-events: none;
531
+ transition: all 0.3s;
532
+ }
533
+
534
+ .modal-window:target {
535
+ visibility: visible;
536
+ opacity: 1;
537
+ pointer-events: auto;
538
+ }
539
+
540
+ .modal-window>div {
541
+ width: 400px;
542
+ position: absolute;
543
+ top: 50%;
544
+ left: 50%;
545
+ transform: translate(-50%, -50%);
546
+ padding: 2em;
547
+ background: white;
548
+ }
549
+
550
+ .modal-window header {
551
+ font-weight: bold;
552
+ }
553
+
554
+ .modal-window h1 {
555
+ font-size: 120%;
556
+ margin: 0 0 15px;
557
+ }
558
+
559
+ .modal-close {
560
+ color: #aaa;
561
+ line-height: 50px;
562
+ font-size: 80%;
563
+ position: absolute;
564
+ right: 0;
565
+ text-align: center;
566
+ top: 0;
567
+ width: 70px;
568
+ text-decoration: none;
569
+ }
570
+
571
+ .modal-close:hover {
572
+ color: black;
573
+ }
574
+
575
+ .modal-window>div {
576
+ border: 1px solid #1d1d1d94;
577
+ border-radius: 1rem;
578
+ }
579
+
580
+ .modal-window div:not(:last-of-type) {
581
+ margin-bottom: 10px;
582
+ }
583
+
584
+ .likert {
585
+ --likert-rows: 5;
586
+ display: inline-grid;
587
+ max-width: 100%;
588
+ gap: 1em;
589
+ grid-auto-rows: 1fr;
590
+ grid-template-columns: repeat(var(--likert-rows), minmax(0, 1fr));
591
+ }
592
+
593
+ .likert label {
594
+ aspect-ratio: 1;
595
+ }
596
+
597
+ @media only screen and (max-width: 680px) {
598
+ .likert {
599
+ --likert-rows: 5;
600
+ display: grid;
601
+ max-width: 680px;
602
+ gap: 1em;
603
+ grid-template-columns: repeat(var(--likert-rows), minmax(0, 1fr));
604
  }
605
+
606
+ .likert label {
607
+ aspect-ratio: 1;
608
+ }
609
+ }
610
+
611
+ .likert input {
612
+ max-width: 250px;
613
+ position: fixed;
614
+ opacity: 0;
615
+ pointer-events: none;
616
+ }
617
+
618
+ .likert span {
619
+ border-radius: 5px;
620
+ display: flex;
621
+ font-size: 80%;
622
+ justify-content: center;
623
+ align-items: center;
624
+ text-align: center;
625
+ box-sizing: border-box;
626
+ width: 100%;
627
+ height: 100%;
628
+ padding: 1em;
629
+ background: white;
630
+ outline: #1d1d1d94 solid 1px;
631
+ transition: background .2s ease-in-out;
632
+ }
633
+
634
+ .likert input:checked+span {
635
+ background: #1d1d1d;
636
+ color: white;
637
+ outline: #1d1d1d solid 1px;
638
+ }
639
+
640
+ .likert input:focus+span {
641
+ outline: #1d1d1d94 solid 1px;
642
+ }
643
+
644
+ .likert span:hover {
645
+ background: #1d1d1d;
646
+ color: white;
647
+ outline: #1d1d1d94 solid 1px;
648
+ }
649
+
650
+ .likert-scale {
651
+ margin: 0 0 10px;
652
+ box-sizing: border-box;
653
+ font-size: 0;
654
+ display: flex;
655
+ /* flex-flow: row nowrap; */
656
+ flex-wrap: wrap;
657
+ overflow: hidden;
658
+ justify-content: center;
659
+ align-items: stretch;
660
+ }
661
+
662
+ .likert-scale input {
663
+ width: 0;
664
+ height: 0;
665
+ position: absolute;
666
+ left: -9999px;
667
+ }
668
+
669
+ .likert-scale input+label {
670
+ margin: 0;
671
+ padding: 0.5rem 1rem;
672
+ box-sizing: border-box;
673
+ position: relative;
674
+ display: inline-block;
675
+ flex-grow: 2;
676
+ border: solid 1px rgb(207, 207, 207);
677
+ border-collapse: collapse;
678
+ background-color: #fff;
679
+ font-family: "Manrope Regular";
680
+ font-size: 0.8rem;
681
+ line-height: 75%;
682
+ text-align: center;
683
+ transition: border-color 0.15s ease-out, color 0.25s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
684
+ }
685
+
686
+ .likert-scale input+label:first-of-type {
687
+ border-radius: 0px 0 0 0px;
688
+ }
689
+
690
+ .likert-scale input+label:last-of-type {
691
+ border-radius: 0 0px 0px 0;
692
+ }
693
+
694
+ .likert-scale input:hover+label {
695
+ border-color: #1d1d1d;
696
+ }
697
+
698
+ .likert-scale input:checked+label {
699
  background-color: #1d1d1d;
700
  color: #fff;
701
  /* box-shadow: 0 0 10px rgba(102, 179, 251, .5); */
702
  border-color: #1d1d1d;
703
  z-index: 1;
704
+ }
705
+
706
+ .btn-submit {
707
+ transition: .3s all ease;
708
+ font-size: 12px;
709
+ font-weight: bold;
710
+ padding-top: 8px;
711
+ padding-bottom: 8px;
712
+ padding-left: 25px;
713
+ padding-right: 25px;
714
+ text-transform: uppercase;
715
+ }
716
+
717
+ @media (max-width: 864px) {
718
+ .toggle input+label {
719
+ /* padding: 0.75rem 0.25rem; */
720
+ flex: 0 0 10%;
721
+ display: flex;
722
+ justify-content: center;
723
+ align-items: center;
724
+ font-size: 0.4rem;
725
  }
 
 
 
 
726
 
727
+ .likert-scale input+label {
728
+ /* padding: 0.75rem 0.25rem; */
729
+ flex: 0 0 10%;
730
+ display: flex;
731
+ justify-content: center;
732
+ align-items: center;
733
+ font-size: 0.6rem;
734
+ flex-grow: 2;
735
  }
736
 
737
+ h1 {
738
+ font-size: 2.5vh;
739
+ font-family: "Manrope Extra Bold";
740
+ letter-spacing: -2px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
741
  }
742
 
743
+ h2,
744
+ h3 {
745
+ font-size: 2.0vh;
746
+ font-family: "Manrope Bold";
747
  }
748
+
749
+ h4,
750
+ p {
751
+ font-size: 2.5vmin;
752
  }
753
+
754
+ .input-nlp-text,
755
+ .output-nlp-text {
756
+ font-size: 1.5vh;
757
  }
758
 
759
+ .row {
760
+ margin-bottom: 0 !important;
 
761
  }
762
+
763
+ #input_form {
764
+ margin-top: 0.5rem;
765
+ margin-bottom: 1rem;
766
+ }
767
+
768
+ #input_text {
769
+ max-height: 20vh;
770
+ }
771
+
772
+ #output_text {
773
+ max-height: 15vh;
774
+ }
775
+
776
+ .nav-tabs {
777
+ display: none;
778
+ }
779
+
780
+ .flex-col {
781
+ flex-basis: 25%;
782
  }
783
+
784
+ .flex-col-50 {
785
+ justify-content: space-between;
 
786
  }
787
 
788
+ .flex-col-50 div {
789
+ flex-basis: 50%;
 
790
  }
791
+
792
+ .spacer {
793
+ display: inline-block;
 
794
  }
795
+
796
+ .modal-window > div {
797
+ max-width: 80vw;
798
+ }
799
+
800
+ .modal-window .modal-header {
801
+ font-size: 80%;
802
  }
803
+ }
804
+
805
+ /*======================== FONT ===============================*/
806
+ @font-face {
807
+ font-family: "Gilroy Regular";
808
+ src: url("../fonts/gilroy-regular.otf") format("opentype");
809
+ }
810
+
811
+ @font-face {
812
+ font-family: "Gilroy Medium";
813
+ src: url("../fonts/gilroy_medium.otf") format("opentype");
814
+ }
815
+
816
+ @font-face {
817
+ font-family: "Gilroy Bold";
818
+ src: url("../fonts/gilroy-bold.otf") format("opentype");
819
+ }
820
+
821
+ @font-face {
822
+ font-family: "Manrope Bold";
823
+ src: url("../fonts/Manrope-Bold.otf") format("opentype");
824
+ }
825
+
826
+ @font-face {
827
+ font-family: "Manrope Extra Bold";
828
+ src: url("../fonts/Manrope-ExtraBold.otf") format("opentype");
829
+ }
830
+
831
+ @font-face {
832
+ font-family: "Manrope Extra Light";
833
+ src: url("../fonts/Manrope-ExtraLight.otf") format("opentype");
834
+ }
835
+
836
+ @font-face {
837
+ font-family: "Manrope Light";
838
+ src: url("../fonts/Manrope-Light.otf") format("opentype");
839
+ }
840
+
841
+ @font-face {
842
+ font-family: "Manrope Medium";
843
+ src: url("../fonts/Manrope-Medium.otf") format("opentype");
844
+ }
845
 
846
+ @font-face {
847
+ font-family: "Manrope Regular";
848
+ src: url("../fonts/Manrope-Regular.otf") format("opentype");
849
+ }
850
+
851
+ @font-face {
852
+ font-family: "Manrope Semi Bold";
853
+ src: url("../fonts/Manrope-SemiBold.otf") format("opentype");
854
+ }
templates/creator.html DELETED
@@ -1,5 +0,0 @@
1
- {% extends "index.html" %}
2
-
3
- {% block content %}
4
-
5
- {% endblock %}
 
 
 
 
 
 
templates/development.html DELETED
@@ -1,5 +0,0 @@
1
- {% extends "index.html" %}
2
-
3
- {% block content %}
4
-
5
- {% endblock %}
 
 
 
 
 
 
templates/feedback.html DELETED
@@ -1,5 +0,0 @@
1
- {% extends "index.html" %}
2
-
3
- {% block content %}
4
-
5
- {% endblock %}
 
 
 
 
 
 
templates/index.html CHANGED
@@ -29,7 +29,7 @@
29
  project
30
  </a></li>
31
  <li>
32
- <a href="#"
33
  class="link link--io">
34
  feedback
35
  </a></li>
@@ -246,6 +246,22 @@
246
  console.error(err);
247
  }
248
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
 
250
  /*
251
  $(document).on('submit', '#input_form', function (e) {
@@ -312,4 +328,67 @@
312
  </div>
313
  <!-- Copyright -->
314
  </footer>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  </html>
 
29
  project
30
  </a></li>
31
  <li>
32
+ <a href="#open-modal"
33
  class="link link--io">
34
  feedback
35
  </a></li>
 
246
  console.error(err);
247
  }
248
  });
249
+
250
+ window.addEventListener("load", function() {
251
+ const form = document.getElementById('feedback_form');
252
+ form.addEventListener("submit", function(e) {
253
+ e.preventDefault();
254
+ const data = new FormData(form);
255
+ const action = e.target.action;
256
+ fetch(action, {
257
+ method: 'POST',
258
+ body: data,
259
+ })
260
+ .then(() => {
261
+ $("#submit-alert").fadeIn(1000).delay(4000).fadeOut(1000);
262
+ })
263
+ });
264
+ });
265
 
266
  /*
267
  $(document).on('submit', '#input_form', function (e) {
 
328
  </div>
329
  <!-- Copyright -->
330
  </footer>
331
+ <!-- Feedback modal window -->
332
+ <div id="open-modal" class="modal-window">
333
+ <div>
334
+ <a href="#" title="Close" class="modal-close">Close</a>
335
+ <h1>Feedback</h1>
336
+ <div class="modal-header">Please give a rate from your experience</div>
337
+ <br>
338
+ <form id="feedback_form" method="post" action="https://script.google.com/macros/s/AKfycbySioanqfzdUwmiXwwy2iKgIjO20ggc_5GvUTJohiGtY64XUHAw6s9aBcQr7XXeil_Low/exec">
339
+ <div class="modal-header"><b>Processing speed</b></div>
340
+ <div class="likert-scale">
341
+ <input type="radio" name="ProcessingSpeed" value="1" id="spd1"/>
342
+ <label for="spd1">1</label>
343
+ <input type="radio" name="ProcessingSpeed" value="2" id="spd2"/>
344
+ <label for="spd2">2</label>
345
+ <input type="radio" name="ProcessingSpeed" value="3" id="spd3" checked="checked" />
346
+ <label for="spd3">3</label>
347
+ <input type="radio" name="ProcessingSpeed" value="4" id="spd4"/>
348
+ <label for="spd4">4</label>
349
+ <input type="radio" name="ProcessingSpeed" value="5" id="spd5"/>
350
+ <label for="spd5">5</label>
351
+ </div>
352
+ <div class="modal-header"><b>Text coherent</b></div>
353
+ <div class="likert-scale">
354
+ <!-- <label><input name="coherent" type="radio" value="1"/><span>1</span></label>
355
+ <label><input name="coherent" type="radio" value="2"/><span>2</span></label>
356
+ <label><input name="coherent" type="radio" value="3"/><span>3</span></label>
357
+ <label><input name="coherent" type="radio" value="4"/><span>4</span></label>
358
+ <label><input name="coherent" type="radio" value="5"/><span>5</span></label> -->
359
+ <input type="radio" name="TextCoherent" value="1" id="coh1"/>
360
+ <label for="coh1">1</label>
361
+ <input type="radio" name="TextCoherent" value="2" id="coh2"/>
362
+ <label for="coh2">2</label>
363
+ <input type="radio" name="TextCoherent" value="3" id="coh3" checked="checked" />
364
+ <label for="coh3">3</label>
365
+ <input type="radio" name="TextCoherent" value="4" id="coh4"/>
366
+ <label for="coh4">4</label>
367
+ <input type="radio" name="TextCoherent" value="5" id="coh5"/>
368
+ <label for="coh5">5</label>
369
+ </div>
370
+ <div class="modal-header"><b>Web design</b></div>
371
+ <div class="likert-scale">
372
+ <input type="radio" name="WebDesign" value="1" id="des1"/>
373
+ <label for="des1">1</label>
374
+ <input type="radio" name="WebDesign" value="2" id="des2"/>
375
+ <label for="des2">2</label>
376
+ <input type="radio" name="WebDesign" value="3" id="des3" checked="checked" />
377
+ <label for="des3">3</label>
378
+ <input type="radio" name="WebDesign" value="4" id="des4"/>
379
+ <label for="des4">4</label>
380
+ <input type="radio" name="WebDesign" value="5" id="des5"/>
381
+ <label for="des5">5</label>
382
+ </div>
383
+ </form>
384
+ <div class="mt-4" style="text-align:center;">
385
+ <button class="btn btn-sm btn-outline-dark btn-submit" type="submit" form="feedback_form">
386
+ <p>
387
+ Submit
388
+ </p>
389
+ </button>
390
+ </div>
391
+ <div id="submit-alert" style="text-align:center; color: green; display: none;">Success!</div>
392
+ </div>
393
+ </div>
394
  </html>