neerajkalyank commited on
Commit
27514ec
1 Parent(s): 859e02b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +37 -36
app.py CHANGED
@@ -81,8 +81,8 @@ custom_css = """
81
  /* General Page Style */
82
  body {
83
  font-family: 'Poppins', Arial, sans-serif;
84
- background: linear-gradient(135deg, #1969c9, #1969c9);
85
- color: #ffffff;
86
  margin: 0;
87
  padding: 0;
88
  display: flex;
@@ -93,29 +93,29 @@ body {
93
 
94
  /* Heading Colors */
95
  h1 {
96
- color: #ffffff; /* White color for h1 */
97
- text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
98
  }
99
 
100
  h2, h3, h4, h5, h6 {
101
- color: #f0db23; /* Light yellow shadow for other headings */
102
- text-shadow: 2px 2px 10px rgba(255, 255, 0, 0.3);
103
  }
104
 
105
  /* Header Styling */
106
  #header {
107
- color: #7fffd4;
108
  text-align: center;
109
  font-weight: 700;
110
  font-size: 2.5em;
111
  margin-bottom: 25px;
112
- text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
113
  letter-spacing: 1px;
114
  transition: color 0.3s ease;
115
  }
116
 
117
  #header:hover {
118
- color: #32cd32;
119
  transform: scale(1.05);
120
  }
121
 
@@ -124,24 +124,24 @@ h2, h3, h4, h5, h6 {
124
  max-width: 850px;
125
  margin: 30px auto;
126
  padding: 40px;
127
- background: rgba(0, 0, 50, 0.95);
128
  border-radius: 15px;
129
- box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
130
- color: #e0f7fa;
131
  }
132
 
133
  /* Form Field Styles */
134
  input, select, textarea {
135
  max-width: 700px;
136
- border: 1px solid #7fffd4;
137
  border-radius: 8px;
138
  padding: 10px 12px;
139
  background: rgba(245, 245, 245, 0.95);
140
- color: #2d2d2d;
141
  font-size: 15px;
142
  margin-bottom: 20px;
143
  transition: all 0.3s ease;
144
- box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15);
145
  }
146
 
147
  /* Radio Button Group Styling */
@@ -150,19 +150,19 @@ input, select, textarea {
150
  align-items: center;
151
  justify-content: center;
152
  padding: 10px 20px;
153
- border: 2px solid #7fffd4;
154
  border-radius: 8px;
155
  transition: all 0.3s ease;
156
  cursor: pointer;
157
- color: #7fffd4;
158
  background: rgba(245, 245, 245, 0.95);
159
- box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15);
160
  margin-right: 10px;
161
  }
162
 
163
  .gr-radio-group label:hover {
164
- background: #e0f7fa;
165
- color: #00bfa5;
166
  }
167
 
168
  /* Radio Button Styling */
@@ -170,7 +170,7 @@ input, select, textarea {
170
  appearance: none;
171
  width: 20px;
172
  height: 20px;
173
- border: 2px solid #7fffd4;
174
  border-radius: 50%;
175
  margin-right: 10px;
176
  transition: all 0.3s ease;
@@ -179,8 +179,8 @@ input, select, textarea {
179
 
180
  /* Selected Radio Button Styling with Checkmark */
181
  .gr-radio-group input[type="radio"]:checked {
182
- background-color: #ff8c00;
183
- border-color: #ff8c00;
184
  }
185
 
186
  .gr-radio-group input[type="radio"]:checked::after {
@@ -196,29 +196,30 @@ input, select, textarea {
196
  display: flex;
197
  align-items: center;
198
  justify-content: center;
199
- background-color: #ff8c00;
200
  }
201
 
202
  /* Adjust label for responsive alignment */
203
  .gr-radio-group span {
204
  font-size: 1em;
205
  font-weight: 600;
206
- color: #2d2d2d;
207
  }
208
 
209
  /* Tab Styling */
210
  .nav-tabs {
211
  display: flex;
212
  justify-content: space-around;
213
- background-color: #001848 !important;
214
- border-bottom: 1px solid #ffffff !important;
215
  padding: 12px !important;
216
  gap: 20px !important;
 
217
  }
218
 
219
  .nav-tabs .nav-item {
220
  font-size: 1.2em !important;
221
- color: #bfbfbf !important; /* Softer gray for inactive tabs */
222
  padding: 10px 18px !important;
223
  cursor: pointer !important;
224
  font-weight: 500 !important;
@@ -228,27 +229,27 @@ input, select, textarea {
228
  }
229
 
230
  .nav-tabs .nav-item:hover {
231
- color: #FFD700 !important; /* Bright yellow on hover */
232
- background-color: rgba(255, 215, 0, 0.1) !important; /* Light yellow background on hover */
233
  }
234
 
235
  .nav-tabs .nav-item.active {
236
- color: #FFD700 !important; /* Bright yellow color for the active tab */
237
- border-bottom: 3px solid #FFD700 !important; /* Bright yellow underline for active tab */
238
  font-weight: 700 !important;
239
- background-color: rgba(255, 215, 0, 0.1) !important; /* Light yellow background for active tab */
240
  padding: 8px 16px !important;
241
  }
 
242
  /* Output Text Styling */
243
  #registration_output, #test_output, #billing_output {
244
- color: #ffffff !important; /* Set text color to white */
245
- background-color: rgba(0, 0, 50, 0.8) !important;
246
  padding: 15px;
247
  border-radius: 7px;
248
  font-weight: bold;
249
  text-align: left;
250
  }
251
-
252
  """
253
 
254
  # Gradio Interface
 
81
  /* General Page Style */
82
  body {
83
  font-family: 'Poppins', Arial, sans-serif;
84
+ background: linear-gradient(135deg, #f2f6fc, #e3e8ee);
85
+ color: #333333;
86
  margin: 0;
87
  padding: 0;
88
  display: flex;
 
93
 
94
  /* Heading Colors */
95
  h1 {
96
+ color: #333333; /* Darker color for h1 */
97
+ text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
98
  }
99
 
100
  h2, h3, h4, h5, h6 {
101
+ color: #1a73e8; /* Light blue for other headings */
102
+ text-shadow: 1px 1px 6px rgba(26, 115, 232, 0.2);
103
  }
104
 
105
  /* Header Styling */
106
  #header {
107
+ color: #1976d2;
108
  text-align: center;
109
  font-weight: 700;
110
  font-size: 2.5em;
111
  margin-bottom: 25px;
112
+ text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.2);
113
  letter-spacing: 1px;
114
  transition: color 0.3s ease;
115
  }
116
 
117
  #header:hover {
118
+ color: #1565c0;
119
  transform: scale(1.05);
120
  }
121
 
 
124
  max-width: 850px;
125
  margin: 30px auto;
126
  padding: 40px;
127
+ background: rgba(245, 245, 245, 0.95);
128
  border-radius: 15px;
129
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
130
+ color: #333333;
131
  }
132
 
133
  /* Form Field Styles */
134
  input, select, textarea {
135
  max-width: 700px;
136
+ border: 1px solid #1a73e8;
137
  border-radius: 8px;
138
  padding: 10px 12px;
139
  background: rgba(245, 245, 245, 0.95);
140
+ color: #333333;
141
  font-size: 15px;
142
  margin-bottom: 20px;
143
  transition: all 0.3s ease;
144
+ box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
145
  }
146
 
147
  /* Radio Button Group Styling */
 
150
  align-items: center;
151
  justify-content: center;
152
  padding: 10px 20px;
153
+ border: 2px solid #1a73e8;
154
  border-radius: 8px;
155
  transition: all 0.3s ease;
156
  cursor: pointer;
157
+ color: #1a73e8;
158
  background: rgba(245, 245, 245, 0.95);
159
+ box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.1);
160
  margin-right: 10px;
161
  }
162
 
163
  .gr-radio-group label:hover {
164
+ background: #e3f2fd;
165
+ color: #1565c0;
166
  }
167
 
168
  /* Radio Button Styling */
 
170
  appearance: none;
171
  width: 20px;
172
  height: 20px;
173
+ border: 2px solid #1a73e8;
174
  border-radius: 50%;
175
  margin-right: 10px;
176
  transition: all 0.3s ease;
 
179
 
180
  /* Selected Radio Button Styling with Checkmark */
181
  .gr-radio-group input[type="radio"]:checked {
182
+ background-color: #42a5f5;
183
+ border-color: #42a5f5;
184
  }
185
 
186
  .gr-radio-group input[type="radio"]:checked::after {
 
196
  display: flex;
197
  align-items: center;
198
  justify-content: center;
199
+ background-color: #42a5f5;
200
  }
201
 
202
  /* Adjust label for responsive alignment */
203
  .gr-radio-group span {
204
  font-size: 1em;
205
  font-weight: 600;
206
+ color: #333333;
207
  }
208
 
209
  /* Tab Styling */
210
  .nav-tabs {
211
  display: flex;
212
  justify-content: space-around;
213
+ background-color: #ffffff !important;
214
+ border-bottom: 1px solid #dddddd !important;
215
  padding: 12px !important;
216
  gap: 20px !important;
217
+ border-radius: 10px;
218
  }
219
 
220
  .nav-tabs .nav-item {
221
  font-size: 1.2em !important;
222
+ color: #555555 !important; /* Softer gray for inactive tabs */
223
  padding: 10px 18px !important;
224
  cursor: pointer !important;
225
  font-weight: 500 !important;
 
229
  }
230
 
231
  .nav-tabs .nav-item:hover {
232
+ color: #1a73e8 !important; /* Light blue on hover */
233
+ background-color: rgba(26, 115, 232, 0.1) !important; /* Light blue background on hover */
234
  }
235
 
236
  .nav-tabs .nav-item.active {
237
+ color: #1a73e8 !important; /* Bright blue color for the active tab */
238
+ border-bottom: 3px solid #1a73e8 !important; /* Blue underline for active tab */
239
  font-weight: 700 !important;
240
+ background-color: rgba(26, 115, 232, 0.1) !important; /* Light blue background for active tab */
241
  padding: 8px 16px !important;
242
  }
243
+
244
  /* Output Text Styling */
245
  #registration_output, #test_output, #billing_output {
246
+ color: #333333 !important; /* Set text color to dark */
247
+ background-color: rgba(245, 245, 245, 0.8) !important;
248
  padding: 15px;
249
  border-radius: 7px;
250
  font-weight: bold;
251
  text-align: left;
252
  }
 
253
  """
254
 
255
  # Gradio Interface