jclyo1 commited on
Commit
c5e4f2c
1 Parent(s): a231a26
static/images/download.png ADDED
static/index.html CHANGED
@@ -21,12 +21,16 @@
21
  </section>
22
  <section id="content">
23
  <div id="column-one">
24
- <div class="output">
25
- <div id="image-container">
26
- <img src="images/placeholder.png" id="placeholder" />
27
- <img src="images/spinner.svg" id="spinner" style="display: none;" />
 
 
 
28
  </div>
29
  </div>
 
30
  </div>
31
  <div id="column-two">
32
  <form class="text-gen-form">
 
21
  </section>
22
  <section id="content">
23
  <div id="column-one">
24
+ <div class="container">
25
+ <div class="output">
26
+ <div id="image-container">
27
+ <img src="images/placeholder.png" id="placeholder" />
28
+ <img src="images/spinner.svg" id="spinner" style="display: none;" />
29
+ </div>
30
+ <a href="#" target="_blank" id="download-link"><img src="images/download.png" id="download" /></a>
31
  </div>
32
  </div>
33
+ <img src="images/logo.png" id="logo" />
34
  </div>
35
  <div id="column-two">
36
  <form class="text-gen-form">
static/script.js CHANGED
@@ -5,6 +5,7 @@ const model = document.getElementById('model');
5
  const textGenSubmit = document.getElementById('text-gen-submit');
6
  const spinner = document.getElementById('spinner');
7
  const placeholder = document.getElementById('placeholder');
 
8
 
9
 
10
 
@@ -52,6 +53,9 @@ textGenForm.addEventListener('submit', async (event) => {
52
 
53
  spinner.style.display = "none";
54
  resultsContainer.appendChild(truepicDisplay);
 
 
 
55
  } catch (err) {
56
  console.error(err);
57
  }
 
5
  const textGenSubmit = document.getElementById('text-gen-submit');
6
  const spinner = document.getElementById('spinner');
7
  const placeholder = document.getElementById('placeholder');
8
+ const downloadLink = document.getElementById('download-link');
9
 
10
 
11
 
 
53
 
54
  spinner.style.display = "none";
55
  resultsContainer.appendChild(truepicDisplay);
56
+
57
+ downloadLink.style.display = "block";
58
+ downloadLink.href = path;
59
  } catch (err) {
60
  console.error(err);
61
  }
static/style.css CHANGED
@@ -39,10 +39,30 @@ select, textarea {
39
 
40
  #column-one {
41
  width: 66%;
42
- padding-left: 10rem;
43
  border-right: 1px solid rgba(227, 234, 240, 1);
44
  }
45
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  #column-two {
47
  width: 34%;
48
  padding: 2rem;
 
39
 
40
  #column-one {
41
  width: 66%;
 
42
  border-right: 1px solid rgba(227, 234, 240, 1);
43
  }
44
 
45
+ #column-one .container {
46
+ padding-left: 10rem;
47
+ border-bottom: 1px solid rgba(227, 234, 240, 1);
48
+ }
49
+
50
+ #logo {
51
+ width: 156px;
52
+ padding: 2rem 10rem;
53
+ }
54
+
55
+ #download-link {
56
+ display: none;
57
+ }
58
+
59
+ #download {
60
+ width: 113px;
61
+ padding-top: 1rem;
62
+ display: block;
63
+ margin-left: auto;
64
+ }
65
+
66
  #column-two {
67
  width: 34%;
68
  padding: 2rem;