Spaces:
Sleeping
Sleeping
neerajkalyank
commited on
Commit
•
774a801
1
Parent(s):
b5f1c0e
Update app.py
Browse files
app.py
CHANGED
@@ -122,170 +122,171 @@ app.css = """
|
|
122 |
/* General Page Style */
|
123 |
body {
|
124 |
font-family: 'Poppins', Arial, sans-serif;
|
125 |
-
background: linear-gradient(135deg, #4a90e2, #003c7c);
|
126 |
-
color: #ffffff;
|
127 |
-
margin: 0;
|
128 |
-
padding: 0;
|
129 |
-
display: flex;
|
130 |
-
justify-content: center;
|
131 |
-
align-items: center;
|
132 |
-
min-height: 100vh;
|
133 |
}
|
134 |
|
135 |
/* Header */
|
136 |
#header {
|
137 |
-
color: #7fffd4; /* Light Aqua for better contrast */
|
138 |
-
text-align: center;
|
139 |
-
font-weight: 700;
|
140 |
-
font-size: 2.5em;
|
141 |
-
margin-bottom: 25px;
|
142 |
-
text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
|
143 |
-
letter-spacing: 1px;
|
144 |
-
transition: color 0.3s ease;
|
145 |
}
|
146 |
|
147 |
#header:hover {
|
148 |
-
color: #32cd32; /* Lime Green on hover */
|
149 |
-
transform: scale(1.05);
|
150 |
}
|
151 |
|
152 |
/* Container Style */
|
153 |
.gradio-container {
|
154 |
-
max-width: 850px;
|
155 |
-
margin: 30px auto;
|
156 |
-
padding: 40px;
|
157 |
-
background: rgba(0, 0, 50, 0.95);
|
158 |
-
border-radius: 15px;
|
159 |
-
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
|
160 |
-
color: #e0f7fa;
|
161 |
}
|
162 |
|
163 |
/* Form Field Styles */
|
164 |
input, textarea, select {
|
165 |
-
max-width: 700px;
|
166 |
-
border: 1px solid #7fffd4;
|
167 |
-
border-radius: 8px;
|
168 |
-
padding: 10px 12px;
|
169 |
-
background: rgba(245, 245, 245, 0.95);
|
170 |
-
color: #2d2d2d;
|
171 |
-
font-size: 15px;
|
172 |
-
margin-bottom: 20px;
|
173 |
-
transition: all 0.3s ease;
|
174 |
-
box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15);
|
175 |
}
|
176 |
|
177 |
/* Form Field Hover and Focus */
|
178 |
input:focus, textarea:focus, select:focus {
|
179 |
-
border-color: #00ffcc; /* Light Cyan border on focus */
|
180 |
-
box-shadow: 0 0 10px rgba(0, 255, 204, 0.6);
|
181 |
-
transform: scale(1.02);
|
182 |
}
|
183 |
|
184 |
/* Button Style */
|
185 |
.gr-button {
|
186 |
-
color: #ffffff;
|
187 |
-
background: linear-gradient(135deg, #1de9b6, #007aff);
|
188 |
-
border: none;
|
189 |
-
border-radius: 12px;
|
190 |
-
padding: 12px 30px;
|
191 |
-
cursor: pointer;
|
192 |
-
font-weight: 600;
|
193 |
-
font-size: 16px;
|
194 |
-
transition: 0.3s ease;
|
195 |
-
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
|
196 |
}
|
197 |
|
198 |
.gr-button:hover {
|
199 |
-
background: linear-gradient(135deg, #005cbf, #00bfa5);
|
200 |
-
transform: scale(1.05);
|
201 |
-
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
|
202 |
}
|
203 |
|
204 |
/* Success & Error Messages */
|
205 |
#registration_output, #test_output, #billing_output {
|
206 |
-
padding: 10px;
|
207 |
-
border-radius: 5px;
|
208 |
-
font-weight: bold;
|
209 |
-
text-align: center;
|
210 |
}
|
211 |
|
212 |
#registration_output {
|
213 |
-
background-color: #e6f4ea;
|
214 |
-
color: #1b5e20;
|
215 |
}
|
216 |
|
217 |
#test_output {
|
218 |
-
background-color: #e3f2fd;
|
219 |
-
color: #0d47a1;
|
220 |
}
|
221 |
|
222 |
#billing_output {
|
223 |
-
background-color: #ffebee;
|
224 |
-
color: #b71c1c;
|
225 |
}
|
226 |
|
227 |
/* Tab Container Styling */
|
228 |
.nav-tabs {
|
229 |
-
display: flex;
|
230 |
-
justify-content: space-around;
|
231 |
-
background-color: #3a3a3a;
|
232 |
-
border-bottom: 1px solid #fff;
|
233 |
-
padding: 8px;
|
234 |
}
|
235 |
|
236 |
.nav-tabs .nav-item {
|
237 |
-
font-size: 1.1em;
|
238 |
color: #7fffd4 !important; /* Light Aqua for inactive tabs */
|
239 |
-
padding: 10px 18px;
|
240 |
-
cursor: pointer;
|
241 |
-
font-weight: 500;
|
242 |
-
border: 2px solid transparent;
|
243 |
-
border-radius: 8px;
|
244 |
-
transition: color 0.3s, border-color 0.3s;
|
245 |
}
|
246 |
|
247 |
.nav-tabs .nav-item:hover {
|
248 |
-
color: #00ffcc; /* Bright cyan on hover */
|
249 |
}
|
250 |
|
251 |
.nav-tabs .nav-item.active {
|
252 |
color: #00FF00 !important; /* Bright Green for active tab */
|
253 |
-
border: 2px solid #00FF00;
|
254 |
-
font-weight: 700;
|
255 |
-
background-color: rgba(0, 255, 0, 0.1);
|
256 |
-
padding: 8px 16px;
|
257 |
}
|
258 |
|
259 |
/* Field Labels */
|
260 |
label {
|
261 |
-
font-size: 1em;
|
262 |
-
font-weight: 600;
|
263 |
-
color: #7fffd4; /* Light Aqua for label text */
|
264 |
-
margin-bottom: 5px;
|
265 |
}
|
266 |
|
267 |
/* Text Area Styling */
|
268 |
textarea {
|
269 |
-
resize: vertical;
|
270 |
-
height: 80px;
|
271 |
}
|
272 |
|
273 |
/* Responsive Design for Mobile Devices */
|
274 |
@media (max-width: 768px) {
|
275 |
.gradio-container {
|
276 |
-
padding: 20px;
|
277 |
}
|
278 |
|
279 |
#header {
|
280 |
-
font-size: 2em;
|
281 |
}
|
282 |
|
283 |
input, textarea, select, .gr-button {
|
284 |
-
font-size: 1em;
|
285 |
-
padding: 10px;
|
286 |
}
|
287 |
}
|
288 |
|
|
|
289 |
"""
|
290 |
|
291 |
|
|
|
122 |
/* General Page Style */
|
123 |
body {
|
124 |
font-family: 'Poppins', Arial, sans-serif;
|
125 |
+
background: linear-gradient(135deg, #4a90e2, #003c7c) !important;
|
126 |
+
color: #ffffff !important;
|
127 |
+
margin: 0 !important;
|
128 |
+
padding: 0 !important;
|
129 |
+
display: flex !important;
|
130 |
+
justify-content: center !important;
|
131 |
+
align-items: center !important;
|
132 |
+
min-height: 100vh !important;
|
133 |
}
|
134 |
|
135 |
/* Header */
|
136 |
#header {
|
137 |
+
color: #7fffd4 !important; /* Light Aqua for better contrast */
|
138 |
+
text-align: center !important;
|
139 |
+
font-weight: 700 !important;
|
140 |
+
font-size: 2.5em !important;
|
141 |
+
margin-bottom: 25px !important;
|
142 |
+
text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3) !important;
|
143 |
+
letter-spacing: 1px !important;
|
144 |
+
transition: color 0.3s ease !important;
|
145 |
}
|
146 |
|
147 |
#header:hover {
|
148 |
+
color: #32cd32 !important; /* Lime Green on hover */
|
149 |
+
transform: scale(1.05) !important;
|
150 |
}
|
151 |
|
152 |
/* Container Style */
|
153 |
.gradio-container {
|
154 |
+
max-width: 850px !important;
|
155 |
+
margin: 30px auto !important;
|
156 |
+
padding: 40px !important;
|
157 |
+
background: rgba(0, 0, 50, 0.95) !important;
|
158 |
+
border-radius: 15px !important;
|
159 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5) !important;
|
160 |
+
color: #e0f7fa !important;
|
161 |
}
|
162 |
|
163 |
/* Form Field Styles */
|
164 |
input, textarea, select {
|
165 |
+
max-width: 700px !important;
|
166 |
+
border: 1px solid #7fffd4 !important;
|
167 |
+
border-radius: 8px !important;
|
168 |
+
padding: 10px 12px !important;
|
169 |
+
background: rgba(245, 245, 245, 0.95) !important;
|
170 |
+
color: #2d2d2d !important;
|
171 |
+
font-size: 15px !important;
|
172 |
+
margin-bottom: 20px !important;
|
173 |
+
transition: all 0.3s ease !important;
|
174 |
+
box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.15) !important;
|
175 |
}
|
176 |
|
177 |
/* Form Field Hover and Focus */
|
178 |
input:focus, textarea:focus, select:focus {
|
179 |
+
border-color: #00ffcc !important; /* Light Cyan border on focus */
|
180 |
+
box-shadow: 0 0 10px rgba(0, 255, 204, 0.6) !important;
|
181 |
+
transform: scale(1.02) !important;
|
182 |
}
|
183 |
|
184 |
/* Button Style */
|
185 |
.gr-button {
|
186 |
+
color: #ffffff !important;
|
187 |
+
background: linear-gradient(135deg, #1de9b6, #007aff) !important;
|
188 |
+
border: none !important;
|
189 |
+
border-radius: 12px !important;
|
190 |
+
padding: 12px 30px !important;
|
191 |
+
cursor: pointer !important;
|
192 |
+
font-weight: 600 !important;
|
193 |
+
font-size: 16px !important;
|
194 |
+
transition: 0.3s ease !important;
|
195 |
+
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3) !important;
|
196 |
}
|
197 |
|
198 |
.gr-button:hover {
|
199 |
+
background: linear-gradient(135deg, #005cbf, #00bfa5) !important;
|
200 |
+
transform: scale(1.05) !important;
|
201 |
+
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4) !important;
|
202 |
}
|
203 |
|
204 |
/* Success & Error Messages */
|
205 |
#registration_output, #test_output, #billing_output {
|
206 |
+
padding: 10px !important;
|
207 |
+
border-radius: 5px !important;
|
208 |
+
font-weight: bold !important;
|
209 |
+
text-align: center !important;
|
210 |
}
|
211 |
|
212 |
#registration_output {
|
213 |
+
background-color: #e6f4ea !important;
|
214 |
+
color: #1b5e20 !important;
|
215 |
}
|
216 |
|
217 |
#test_output {
|
218 |
+
background-color: #e3f2fd !important;
|
219 |
+
color: #0d47a1 !important;
|
220 |
}
|
221 |
|
222 |
#billing_output {
|
223 |
+
background-color: #ffebee !important;
|
224 |
+
color: #b71c1c !important;
|
225 |
}
|
226 |
|
227 |
/* Tab Container Styling */
|
228 |
.nav-tabs {
|
229 |
+
display: flex !important;
|
230 |
+
justify-content: space-around !important;
|
231 |
+
background-color: #3a3a3a !important;
|
232 |
+
border-bottom: 1px solid #fff !important;
|
233 |
+
padding: 8px !important;
|
234 |
}
|
235 |
|
236 |
.nav-tabs .nav-item {
|
237 |
+
font-size: 1.1em !important;
|
238 |
color: #7fffd4 !important; /* Light Aqua for inactive tabs */
|
239 |
+
padding: 10px 18px !important;
|
240 |
+
cursor: pointer !important;
|
241 |
+
font-weight: 500 !important;
|
242 |
+
border: 2px solid transparent !important;
|
243 |
+
border-radius: 8px !important;
|
244 |
+
transition: color 0.3s, border-color 0.3s !important;
|
245 |
}
|
246 |
|
247 |
.nav-tabs .nav-item:hover {
|
248 |
+
color: #00ffcc !important; /* Bright cyan on hover */
|
249 |
}
|
250 |
|
251 |
.nav-tabs .nav-item.active {
|
252 |
color: #00FF00 !important; /* Bright Green for active tab */
|
253 |
+
border: 2px solid #00FF00 !important;
|
254 |
+
font-weight: 700 !important;
|
255 |
+
background-color: rgba(0, 255, 0, 0.1) !important;
|
256 |
+
padding: 8px 16px !important;
|
257 |
}
|
258 |
|
259 |
/* Field Labels */
|
260 |
label {
|
261 |
+
font-size: 1em !important;
|
262 |
+
font-weight: 600 !important;
|
263 |
+
color: #7fffd4 !important; /* Light Aqua for label text */
|
264 |
+
margin-bottom: 5px !important;
|
265 |
}
|
266 |
|
267 |
/* Text Area Styling */
|
268 |
textarea {
|
269 |
+
resize: vertical !important;
|
270 |
+
height: 80px !important;
|
271 |
}
|
272 |
|
273 |
/* Responsive Design for Mobile Devices */
|
274 |
@media (max-width: 768px) {
|
275 |
.gradio-container {
|
276 |
+
padding: 20px !important;
|
277 |
}
|
278 |
|
279 |
#header {
|
280 |
+
font-size: 2em !important;
|
281 |
}
|
282 |
|
283 |
input, textarea, select, .gr-button {
|
284 |
+
font-size: 1em !important;
|
285 |
+
padding: 10px !important;
|
286 |
}
|
287 |
}
|
288 |
|
289 |
+
|
290 |
"""
|
291 |
|
292 |
|