jclyo1 commited on
Commit
a4e3b56
1 Parent(s): 30b2d94
Files changed (2) hide show
  1. static/index.html +6 -0
  2. static/style.css +16 -11
static/index.html CHANGED
@@ -293,6 +293,8 @@
293
  >
294
  Submit
295
  </button>
 
 
296
  </form>
297
 
298
  <div class="how-it-works">
@@ -350,6 +352,8 @@
350
  >
351
  Submit
352
  </button>
 
 
353
  </form>
354
  <div class="how-it-works">
355
  <p><strong>How it works</strong></p>
@@ -494,6 +498,7 @@
494
  .setAttribute("src", fileReader.result);
495
  };
496
 
 
497
  placeholder = document.querySelector(".display-verify .placeholder");
498
  spinner = document.querySelector(".display-verify .spinner");
499
 
@@ -600,6 +605,7 @@
600
  })
601
  .catch((error) => {
602
  console.log(error);
 
603
  // Handle errors
604
  });
605
  }
 
293
  >
294
  Submit
295
  </button>
296
+
297
+ <div class="error mt-3">Something went wrong. Please try again.</div>
298
  </form>
299
 
300
  <div class="how-it-works">
 
352
  >
353
  Submit
354
  </button>
355
+
356
+ <div class="error mt-3">Something went wrong. Please try again.</div>
357
  </form>
358
  <div class="how-it-works">
359
  <p><strong>How it works</strong></p>
 
498
  .setAttribute("src", fileReader.result);
499
  };
500
 
501
+ document.querySelector('.display-generate .error').style.display = "none";
502
  placeholder = document.querySelector(".display-verify .placeholder");
503
  spinner = document.querySelector(".display-verify .spinner");
504
 
 
605
  })
606
  .catch((error) => {
607
  console.log(error);
608
+ document.querySelector('.display-generate .error').style.display = "none";
609
  // Handle errors
610
  });
611
  }
static/style.css CHANGED
@@ -124,15 +124,13 @@ textarea {
124
  label {
125
  font-size: 14px;
126
  font-weight: 600;
127
- margin-bottom: .5rem;
128
  }
129
 
130
  label.form-check-label {
131
  font-weight: 400;
132
  }
133
 
134
-
135
-
136
  .display-verify {
137
  display: none;
138
  }
@@ -305,18 +303,19 @@ img.thumbnail {
305
  width: 156px;
306
  }
307
 
308
- .check-icon, .x-icon {
 
309
  width: 16px;
310
- height: 16px;
311
- display: inline-block;
312
  }
313
 
314
  .check-icon {
315
- background-image: url('images/check.svg');
316
  }
317
 
318
  .x-icon {
319
- background-image: url('images/x.svg');
320
  }
321
 
322
  .btn-primary {
@@ -327,7 +326,9 @@ img.thumbnail {
327
  border-radius: 0;
328
  }
329
 
330
- .btn-primary:hover, .btn-primary:active, .btn-primary:focus {
 
 
331
  background-color: rgba(206, 206, 206, 1);
332
  border-color: rgba(206, 206, 206, 1);
333
  box-shadow: none !important;
@@ -341,10 +342,14 @@ img.thumbnail {
341
  .btn-primary.active:hover {
342
  background-color: #165ad9;
343
  border-color: #165ad9;
344
-
345
  }
346
 
347
  .btn-primary.active:active {
348
  background-color: #1247b2;
349
  background-color: #1247b2;
350
- }
 
 
 
 
 
 
124
  label {
125
  font-size: 14px;
126
  font-weight: 600;
127
+ margin-bottom: 0.5rem;
128
  }
129
 
130
  label.form-check-label {
131
  font-weight: 400;
132
  }
133
 
 
 
134
  .display-verify {
135
  display: none;
136
  }
 
303
  width: 156px;
304
  }
305
 
306
+ .check-icon,
307
+ .x-icon {
308
  width: 16px;
309
+ height: 16px;
310
+ display: inline-block;
311
  }
312
 
313
  .check-icon {
314
+ background-image: url("images/check.svg");
315
  }
316
 
317
  .x-icon {
318
+ background-image: url("images/x.svg");
319
  }
320
 
321
  .btn-primary {
 
326
  border-radius: 0;
327
  }
328
 
329
+ .btn-primary:hover,
330
+ .btn-primary:active,
331
+ .btn-primary:focus {
332
  background-color: rgba(206, 206, 206, 1);
333
  border-color: rgba(206, 206, 206, 1);
334
  box-shadow: none !important;
 
342
  .btn-primary.active:hover {
343
  background-color: #165ad9;
344
  border-color: #165ad9;
 
345
  }
346
 
347
  .btn-primary.active:active {
348
  background-color: #1247b2;
349
  background-color: #1247b2;
350
+ }
351
+
352
+ .error {
353
+ color: #d8394b;
354
+ display: none;
355
+ }