BraydenMoore commited on
Commit
c954660
·
1 Parent(s): 7b29f17

Update styling

Browse files
web/static/script.js CHANGED
@@ -10,7 +10,8 @@ document.addEventListener("DOMContentLoaded", () => {
10
 
11
  const imageElement = document.createElement("img");
12
  imageElement.src = "static/loading.gif";
13
- imageElement.style.height = "100px";
 
14
  predictedImagesContainer.appendChild(imageElement);
15
 
16
  const selectedFeature = featureSelect.value;
 
10
 
11
  const imageElement = document.createElement("img");
12
  imageElement.src = "static/loading.gif";
13
+ imageElement.style.height = "50";
14
+ imageElement.style.width = "50";
15
  predictedImagesContainer.appendChild(imageElement);
16
 
17
  const selectedFeature = featureSelect.value;
web/static/styles.css CHANGED
@@ -37,7 +37,7 @@ body {
37
  display: block;
38
  justify-content: center;
39
  align-items: center;
40
- margin: 20px auto; /* Auto margins for horizontal centering */
41
  }
42
 
43
 
@@ -50,10 +50,13 @@ body {
50
 
51
  /* The container for the predicted images */
52
  #predicted-images {
 
53
  display: grid;
54
  row-gap: 1%;
55
  column-gap: 1%;
56
  width: 95%;
 
 
57
  grid-template-columns: repeat(3, 1fr);
58
  grid-template-rows: repeat(3, fr);
59
  position: relative; /* Set the container as a relative positioning context */
@@ -61,7 +64,8 @@ body {
61
 
62
  /* The predicted image */
63
  #predicted-images img {
64
- width: 90%;
 
65
  height: auto;
66
  display: block;
67
  align-items: center;
 
37
  display: block;
38
  justify-content: center;
39
  align-items: center;
40
+ margin: auto; /* Auto margins for horizontal centering */
41
  }
42
 
43
 
 
50
 
51
  /* The container for the predicted images */
52
  #predicted-images {
53
+ margin: auto;
54
  display: grid;
55
  row-gap: 1%;
56
  column-gap: 1%;
57
  width: 95%;
58
+ justify-content: center;
59
+ align-items: center;
60
  grid-template-columns: repeat(3, 1fr);
61
  grid-template-rows: repeat(3, fr);
62
  position: relative; /* Set the container as a relative positioning context */
 
64
 
65
  /* The predicted image */
66
  #predicted-images img {
67
+ margin: auto;
68
+ width: 95%;
69
  height: auto;
70
  display: block;
71
  align-items: center;
web/templates/index.html CHANGED
@@ -19,7 +19,6 @@
19
  <img id="uploaded-image" src="#" alt="Uploaded Image" />
20
 
21
  <div class="feature-select">
22
- <label for="feature">This is a picture of a...</label>
23
  <select name="feature" id="feature-select">
24
  <option value="flower">flower</option>
25
  <option value="leaf">leaf</option>
 
19
  <img id="uploaded-image" src="#" alt="Uploaded Image" />
20
 
21
  <div class="feature-select">
 
22
  <select name="feature" id="feature-select">
23
  <option value="flower">flower</option>
24
  <option value="leaf">leaf</option>