neerajkalyank commited on
Commit
21badeb
1 Parent(s): 5f05842

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +110 -135
app.py CHANGED
@@ -136,172 +136,151 @@ app.css = """
136
  /* General Page Style */
137
  body {
138
  font-family: 'Poppins', Arial, sans-serif;
139
- background: linear-gradient(135deg, #4a90e2, #003c7c) !important;
140
- color: #ffffff !important;
141
- margin: 0 !important;
142
- padding: 0 !important;
143
- display: flex !important;
144
- justify-content: center !important;
145
- align-items: center !important;
146
- min-height: 100vh !important;
147
  }
148
 
149
- /* Header */
150
  #header {
151
- color: #7fffd4 !important;
152
- text-align: center !important;
153
- font-weight: 700 !important;
154
- font-size: 2.5em !important;
155
- margin-bottom: 25px !important;
156
- text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3) !important;
157
- letter-spacing: 1px !important;
158
- transition: color 0.3s ease !important;
159
  }
160
 
161
  #header:hover {
162
- color: #32cd32 !important;
163
- transform: scale(1.05) !important;
164
  }
165
 
166
  /* Container Style */
167
  .gradio-container {
168
- max-width: 850px !important;
169
- margin: 30px auto !important;
170
- padding: 40px !important;
171
- background: rgba(0, 0, 50, 0.95) !important;
172
- border-radius: 15px !important;
173
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
174
- color: #e0f7fa !important;
175
  }
176
 
177
  /* Form Field Styles */
178
  input, select, textarea {
179
- max-width: 700px !important;
180
- border: 1px solid #7fffd4 !important;
181
- border-radius: 8px !important;
182
- padding: 10px 12px !important;
183
- background: rgba(245, 245, 245, 0.95) !important;
184
- color: #2d2d2d !important;
185
- font-size: 15px !important;
186
- margin-bottom: 20px !important;
187
- transition: all 0.3s ease !important;
188
- box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15) !important;
189
  }
190
 
191
  /* Text Area Styling */
192
  textarea {
193
- width: 100% !important;
194
- height: 50px !important;
195
- resize: none !important;
196
- padding: 10px !important;
197
- border-radius: 8px !important;
198
- border: 1px solid #7fffd4 !important;
199
- background: rgba(245, 245, 245, 0.95) !important;
200
- color: #2d2d2d !important;
201
- font-size: 15px !important;
202
- transition: all 0.3s ease !important;
203
- box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15) !important;
204
  }
205
 
206
  /* Form Field Hover and Focus */
207
  input:focus, textarea:focus, select:focus {
208
- border-color: #00ffcc !important;
209
- box-shadow: 0 0 10px rgba(0, 255, 204, 0.6) !important;
210
- transform: scale(1.02) !important;
211
  }
212
 
213
  /* Button Style */
214
  .gr-button {
215
- color: #ffffff !important;
216
- background: linear-gradient(135deg, #1de9b6, #007aff) !important;
217
- border: none !important;
218
- border-radius: 12px !important;
219
- padding: 12px 30px !important;
220
- cursor: pointer !important;
221
- font-weight: 600 !important;
222
- font-size: 16px !important;
223
- transition: 0.3s ease !important;
224
- box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
225
  }
226
 
227
  .gr-button:hover {
228
- background: linear-gradient(135deg, #005cbf, #00bfa5) !important;
229
- transform: scale(1.05) !important;
230
- box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
231
- }
232
-
233
- /* Success & Error Messages */
234
- #registration_output, #test_output, #billing_output {
235
- padding: 10px !important;
236
- border-radius: 5px !important;
237
- font-weight: bold !important;
238
- text-align: center !important;
239
- }
240
-
241
- #registration_output {
242
- background-color: #e6f4ea !important;
243
- color: #1b5e20 !important;
244
- }
245
-
246
- /* Increase height of Test Selection Output */
247
- #test_output {
248
- min-height: 100px !important; /* Adjust the height as needed */
249
- padding: 10px !important;
250
- border-radius: 5px !important;
251
- font-weight: bold !important;
252
- text-align: left !important;
253
- }
254
-
255
- /* Increase height of Billing Information */
256
- #billing_output {
257
- min-height: 150px !important; /* Adjust the height as needed */
258
- padding: 10px !important;
259
- border-radius: 5px !important;
260
- font-weight: bold !important;
261
- text-align: left !important;
262
  }
263
 
264
- /* Tab Container Styling */
265
  .nav-tabs {
266
- display: flex !important;
267
- justify-content: space-around !important;
268
- background-color: #3a3a3a !important;
269
- border-bottom: 1px solid #fff !important;
270
- padding: 8px !important;
271
  }
272
 
273
  .nav-tabs .nav-item {
274
- font-size: 1.1em !important;
275
- color: #7fffd4 !important;
276
- padding: 10px 18px !important;
277
- cursor: pointer !important;
278
- font-weight: 500 !important;
279
- border: 2px solid transparent !important;
280
- border-radius: 8px !important;
281
- transition: color 0.3s, border-color 0.3s !important;
282
  }
283
 
284
  .nav-tabs .nav-item:hover {
285
- color: #00ffcc !important;
286
  }
287
 
288
  .nav-tabs .nav-item.active {
289
- color: #00FF00 !important;
290
- border: 2px solid #00FF00 !important;
291
- font-weight: 700 !important;
292
- background-color: rgba(0, 255, 0, 0.1) !important;
293
- padding: 8px 16px !important;
294
  }
295
 
296
  /* Field Labels */
297
  label {
298
- font-size: 1em !important;
299
- font-weight: 600 !important;
300
- color: #7fffd4 !important;
301
- margin-bottom: 5px !important;
302
  }
303
 
304
- /* Global Checkbox Group Styling */
 
 
 
 
 
 
 
 
 
 
305
  .gr-checkbox-group label {
306
  display: flex;
307
  align-items: center;
@@ -336,46 +315,42 @@ label {
336
  .gr-checkbox-group input[type="checkbox"]:checked {
337
  background-color: #7fffd4;
338
  border-color: #7fffd4;
339
- color: #003c7c; /* Change color of the checkbox itself */
340
  }
341
 
342
  /* Simple checkmark indicator */
343
  .gr-checkbox-group input[type="checkbox"]:checked::after {
344
- content: "\2713"; /* Unicode for checkmark */
345
  font-size: 14px;
346
  color: #003c7c;
347
- display: flex;
348
- justify-content: center;
349
- align-items: center;
350
- width: 100%;
351
- height: 100%;
352
  }
353
 
354
  /* Row Styling for Field Alignment */
355
  .gradio-container .gr-row {
356
- display: flex !important;
357
- gap: 20px !important;
358
- align-items: center !important;
359
  }
360
 
361
  /* Responsive Design for Mobile Devices */
362
  @media (max-width: 768px) {
363
  .gradio-container {
364
- padding: 20px !important;
365
  }
366
 
367
  #header {
368
- font-size: 2em !important;
369
  }
370
 
371
  input, textarea, select, .gr-button {
372
- font-size: 1em !important;
373
- padding: 10px !important;
374
  }
375
 
376
  .gr-checkbox-group {
377
- flex-direction: column !important;
378
- align-items: flex-start !important;
379
  }
380
  }
381
  """
 
136
  /* General Page Style */
137
  body {
138
  font-family: 'Poppins', Arial, sans-serif;
139
+ background: linear-gradient(135deg, #4a90e2, #003c7c);
140
+ color: #ffffff;
141
+ margin: 0;
142
+ padding: 0;
143
+ display: flex;
144
+ justify-content: center;
145
+ align-items: center;
146
+ min-height: 100vh;
147
  }
148
 
149
+ /* Header Styling */
150
  #header {
151
+ color: #7fffd4;
152
+ text-align: center;
153
+ font-weight: 700;
154
+ font-size: 2.5em;
155
+ margin-bottom: 25px;
156
+ text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
157
+ letter-spacing: 1px;
158
+ transition: color 0.3s ease;
159
  }
160
 
161
  #header:hover {
162
+ color: #32cd32;
163
+ transform: scale(1.05);
164
  }
165
 
166
  /* Container Style */
167
  .gradio-container {
168
+ max-width: 850px;
169
+ margin: 30px auto;
170
+ padding: 40px;
171
+ background: rgba(0, 0, 50, 0.95);
172
+ border-radius: 15px;
173
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
174
+ color: #e0f7fa;
175
  }
176
 
177
  /* Form Field Styles */
178
  input, select, textarea {
179
+ max-width: 700px;
180
+ border: 1px solid #7fffd4;
181
+ border-radius: 8px;
182
+ padding: 10px 12px;
183
+ background: rgba(245, 245, 245, 0.95);
184
+ color: #2d2d2d;
185
+ font-size: 15px;
186
+ margin-bottom: 20px;
187
+ transition: all 0.3s ease;
188
+ box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15);
189
  }
190
 
191
  /* Text Area Styling */
192
  textarea {
193
+ width: 100%;
194
+ height: 50px;
195
+ resize: none;
196
+ padding: 10px;
197
+ border-radius: 8px;
198
+ border: 1px solid #7fffd4;
199
+ background: rgba(245, 245, 245, 0.95);
200
+ color: #2d2d2d;
201
+ font-size: 15px;
202
+ transition: all 0.3s ease;
203
+ box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15);
204
  }
205
 
206
  /* Form Field Hover and Focus */
207
  input:focus, textarea:focus, select:focus {
208
+ border-color: #00ffcc;
209
+ box-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
210
+ transform: scale(1.02);
211
  }
212
 
213
  /* Button Style */
214
  .gr-button {
215
+ color: #ffffff;
216
+ background: linear-gradient(135deg, #1de9b6, #007aff);
217
+ border: none;
218
+ border-radius: 12px;
219
+ padding: 12px 30px;
220
+ cursor: pointer;
221
+ font-weight: 600;
222
+ font-size: 16px;
223
+ transition: 0.3s ease;
224
+ box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
225
  }
226
 
227
  .gr-button:hover {
228
+ background: linear-gradient(135deg, #005cbf, #00bfa5);
229
+ transform: scale(1.05);
230
+ box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  }
232
 
233
+ /* Tab Styling */
234
  .nav-tabs {
235
+ display: flex;
236
+ justify-content: space-around;
237
+ background-color: #3a3a3a;
238
+ border-bottom: 1px solid #fff;
239
+ padding: 8px;
240
  }
241
 
242
  .nav-tabs .nav-item {
243
+ font-size: 1.1em;
244
+ color: #7fffd4;
245
+ padding: 10px 18px;
246
+ cursor: pointer;
247
+ font-weight: 500;
248
+ border: 2px solid transparent;
249
+ border-radius: 8px;
250
+ transition: color 0.3s, border-color 0.3s;
251
  }
252
 
253
  .nav-tabs .nav-item:hover {
254
+ color: #00ffcc;
255
  }
256
 
257
  .nav-tabs .nav-item.active {
258
+ color: #00FF00;
259
+ border: 2px solid #00FF00;
260
+ font-weight: 700;
261
+ background-color: rgba(0, 255, 0, 0.1);
262
+ padding: 8px 16px;
263
  }
264
 
265
  /* Field Labels */
266
  label {
267
+ font-size: 1em;
268
+ font-weight: 600;
269
+ color: #7fffd4;
270
+ margin-bottom: 5px;
271
  }
272
 
273
+ /* Output Text Styling (for white text on dark background) */
274
+ #test_output, #billing_output {
275
+ color: #ffffff !important;
276
+ background-color: rgba(0, 0, 50, 0.8) !important;
277
+ padding: 10px;
278
+ border-radius: 5px;
279
+ font-weight: bold;
280
+ text-align: left;
281
+ }
282
+
283
+ /* Checkbox Group Styling */
284
  .gr-checkbox-group label {
285
  display: flex;
286
  align-items: center;
 
315
  .gr-checkbox-group input[type="checkbox"]:checked {
316
  background-color: #7fffd4;
317
  border-color: #7fffd4;
 
318
  }
319
 
320
  /* Simple checkmark indicator */
321
  .gr-checkbox-group input[type="checkbox"]:checked::after {
322
+ content: "";
323
  font-size: 14px;
324
  color: #003c7c;
325
+ display: block;
326
+ text-align: center;
 
 
 
327
  }
328
 
329
  /* Row Styling for Field Alignment */
330
  .gradio-container .gr-row {
331
+ display: flex;
332
+ gap: 20px;
333
+ align-items: center;
334
  }
335
 
336
  /* Responsive Design for Mobile Devices */
337
  @media (max-width: 768px) {
338
  .gradio-container {
339
+ padding: 20px;
340
  }
341
 
342
  #header {
343
+ font-size: 2em;
344
  }
345
 
346
  input, textarea, select, .gr-button {
347
+ font-size: 1em;
348
+ padding: 10px;
349
  }
350
 
351
  .gr-checkbox-group {
352
+ flex-direction: column;
353
+ align-items: flex-start;
354
  }
355
  }
356
  """