WebashalarForML commited on
Commit
19cf25e
1 Parent(s): efa9503

Update templates/index.html

Browse files
Files changed (1) hide show
  1. templates/index.html +21 -17
templates/index.html CHANGED
@@ -10,6 +10,7 @@
10
  <style>
11
  body {
12
  background-color: #1d2329;
 
13
  font-family: 'Arial', sans-serif;
14
  }
15
 
@@ -18,13 +19,14 @@
18
  }
19
 
20
  .card {
 
21
  border: none;
22
  border-radius: 10px;
23
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
24
  }
25
 
26
  .card-header {
27
- background-color: #007bff;
28
  color: white;
29
  border-top-left-radius: 10px;
30
  border-top-right-radius: 10px;
@@ -62,24 +64,29 @@
62
  .uploaded-file span {
63
  font-size: 16px;
64
  margin-left: 10px;
65
- color: #333;
66
  }
67
 
68
  .remove-file {
69
  cursor: pointer;
70
- color: red;
71
  margin-left: 10px;
72
  }
73
 
74
  .form-control-file {
75
  border-radius: 50px;
76
- border: 2px solid #ced4da;
77
  padding: 10px;
 
 
78
  font-size: 16px;
79
  }
80
 
81
  .form-control {
82
  border-radius: 50px;
 
 
 
83
  }
84
 
85
  .mt-3 {
@@ -88,18 +95,18 @@
88
 
89
  .card-footer {
90
  text-align: center;
91
- border-top: 1px solid #ddd;
92
  padding: 15px;
93
  }
94
 
95
- /* Custom file input styling */
96
  .custom-file-upload {
97
- border: 1px solid #ced4da;
98
  display: inline-block;
99
  padding: 6px 12px;
100
  cursor: pointer;
101
  border-radius: 50px;
102
- background-color: #ffffff;
 
103
  }
104
 
105
  .custom-file-upload input[type="file"] {
@@ -110,7 +117,6 @@
110
  margin-top: 20px;
111
  }
112
 
113
- /* Spinner styling */
114
  #loadingSpinner {
115
  display: none;
116
  margin-top: 20px;
@@ -138,7 +144,8 @@
138
  <h4 class="mt-4">Uploaded Files:</h4>
139
  <ul class="list-group">
140
  {% for file in uploaded_files %}
141
- <li class="list-group-item d-flex justify-content-between align-items-center">
 
142
  {{ file }}
143
  <a href="/remove_file" class="remove-file" title="Remove File">&times;</a>
144
  </li>
@@ -150,7 +157,6 @@
150
  <button id="processBtn" type="submit" class="btn btn-success">Process All Files</button>
151
  </form>
152
 
153
- <!-- Circular Loading Spinner -->
154
  <div id="loadingSpinner" class="text-center">
155
  <div class="spinner-border text-primary" role="status">
156
  <span class="sr-only">Processing...</span>
@@ -158,7 +164,7 @@
158
  </div>
159
  </div>
160
  <div class="card-footer">
161
- <small>&copy; 2024 | Webashalar Pvt. Ltd. </small>
162
  </div>
163
  </div>
164
  </div>
@@ -170,12 +176,10 @@
170
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
171
 
172
  <script>
173
- // Show spinner and hide button when form is submitted
174
- document.getElementById("processForm").addEventListener("submit", function (event) {
175
  document.getElementById("loadingSpinner").style.display = "block";
176
  document.getElementById("processBtn").style.display = "none";
177
  });
178
  </script>
179
  </body>
180
-
181
- </html>
 
10
  <style>
11
  body {
12
  background-color: #1d2329;
13
+ color: #e0e0e0;
14
  font-family: 'Arial', sans-serif;
15
  }
16
 
 
19
  }
20
 
21
  .card {
22
+ background-color: #2a2f36;
23
  border: none;
24
  border-radius: 10px;
25
+ box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
26
  }
27
 
28
  .card-header {
29
+ background-color: #3a4149;
30
  color: white;
31
  border-top-left-radius: 10px;
32
  border-top-right-radius: 10px;
 
64
  .uploaded-file span {
65
  font-size: 16px;
66
  margin-left: 10px;
67
+ color: #e0e0e0;
68
  }
69
 
70
  .remove-file {
71
  cursor: pointer;
72
+ color: #dc3545;
73
  margin-left: 10px;
74
  }
75
 
76
  .form-control-file {
77
  border-radius: 50px;
78
+ border: 2px solid #4e5d6c;
79
  padding: 10px;
80
+ background-color: #3a4149;
81
+ color: #e0e0e0;
82
  font-size: 16px;
83
  }
84
 
85
  .form-control {
86
  border-radius: 50px;
87
+ background-color: #3a4149;
88
+ color: #e0e0e0;
89
+ border: 2px solid #4e5d6c;
90
  }
91
 
92
  .mt-3 {
 
95
 
96
  .card-footer {
97
  text-align: center;
98
+ border-top: 1px solid #4e5d6c;
99
  padding: 15px;
100
  }
101
 
 
102
  .custom-file-upload {
103
+ border: 1px solid #4e5d6c;
104
  display: inline-block;
105
  padding: 6px 12px;
106
  cursor: pointer;
107
  border-radius: 50px;
108
+ background-color: #3a4149;
109
+ color: #e0e0e0;
110
  }
111
 
112
  .custom-file-upload input[type="file"] {
 
117
  margin-top: 20px;
118
  }
119
 
 
120
  #loadingSpinner {
121
  display: none;
122
  margin-top: 20px;
 
144
  <h4 class="mt-4">Uploaded Files:</h4>
145
  <ul class="list-group">
146
  {% for file in uploaded_files %}
147
+ <li class="list-group-item d-flex justify-content-between align-items-center"
148
+ style="background-color: #3a4149; color: #e0e0e0;">
149
  {{ file }}
150
  <a href="/remove_file" class="remove-file" title="Remove File">&times;</a>
151
  </li>
 
157
  <button id="processBtn" type="submit" class="btn btn-success">Process All Files</button>
158
  </form>
159
 
 
160
  <div id="loadingSpinner" class="text-center">
161
  <div class="spinner-border text-primary" role="status">
162
  <span class="sr-only">Processing...</span>
 
164
  </div>
165
  </div>
166
  <div class="card-footer">
167
+ <small>&copy; 2024 | Webashalar Pvt. Ltd.</small>
168
  </div>
169
  </div>
170
  </div>
 
176
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
177
 
178
  <script>
179
+ document.getElementById("processForm").addEventListener("submit", function(event) {
 
180
  document.getElementById("loadingSpinner").style.display = "block";
181
  document.getElementById("processBtn").style.display = "none";
182
  });
183
  </script>
184
  </body>
185
+ </html>