Spaces:
Running
Running
neerajkalyank
commited on
Commit
•
920c9eb
1
Parent(s):
eabbeae
Update app.py
Browse files
app.py
CHANGED
@@ -81,7 +81,7 @@ custom_css = """
|
|
81 |
/* General Page Style */
|
82 |
body {
|
83 |
font-family: 'Poppins', Arial, sans-serif;
|
84 |
-
background: linear-gradient(135deg, #
|
85 |
color: #333333;
|
86 |
margin: 0;
|
87 |
padding: 0;
|
@@ -93,29 +93,27 @@ body {
|
|
93 |
|
94 |
/* Heading Colors */
|
95 |
h1 {
|
96 |
-
color: #
|
97 |
-
text-shadow:
|
98 |
}
|
99 |
-
|
100 |
h2, h3, h4, h5, h6 {
|
101 |
-
color: #
|
102 |
-
text-shadow:
|
103 |
}
|
104 |
|
105 |
/* Header Styling */
|
106 |
#header {
|
107 |
-
color: #
|
108 |
text-align: center;
|
109 |
font-weight: 700;
|
110 |
font-size: 2.5em;
|
111 |
margin-bottom: 25px;
|
112 |
-
text-shadow:
|
113 |
letter-spacing: 1px;
|
114 |
transition: color 0.3s ease;
|
115 |
}
|
116 |
-
|
117 |
#header:hover {
|
118 |
-
color: #
|
119 |
transform: scale(1.05);
|
120 |
}
|
121 |
|
@@ -124,24 +122,28 @@ h2, h3, h4, h5, h6 {
|
|
124 |
max-width: 850px;
|
125 |
margin: 30px auto;
|
126 |
padding: 40px;
|
127 |
-
background:
|
128 |
border-radius: 15px;
|
129 |
-
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.
|
130 |
color: #333333;
|
131 |
}
|
132 |
|
133 |
/* Form Field Styles */
|
134 |
input, select, textarea {
|
135 |
max-width: 700px;
|
136 |
-
border: 1px solid #
|
137 |
border-radius: 8px;
|
138 |
padding: 10px 12px;
|
139 |
-
background:
|
140 |
color: #333333;
|
141 |
font-size: 15px;
|
142 |
margin-bottom: 20px;
|
143 |
transition: all 0.3s ease;
|
144 |
-
box-shadow: 0px 3px
|
|
|
|
|
|
|
|
|
145 |
}
|
146 |
|
147 |
/* Radio Button Group Styling */
|
@@ -150,19 +152,18 @@ input, select, textarea {
|
|
150 |
align-items: center;
|
151 |
justify-content: center;
|
152 |
padding: 10px 20px;
|
153 |
-
border: 2px solid #
|
154 |
border-radius: 8px;
|
155 |
transition: all 0.3s ease;
|
156 |
cursor: pointer;
|
157 |
-
color: #
|
158 |
-
background:
|
159 |
-
box-shadow: 0px 3px
|
160 |
margin-right: 10px;
|
161 |
}
|
162 |
-
|
163 |
.gr-radio-group label:hover {
|
164 |
-
background: #
|
165 |
-
color: #
|
166 |
}
|
167 |
|
168 |
/* Radio Button Styling */
|
@@ -170,19 +171,16 @@ input, select, textarea {
|
|
170 |
appearance: none;
|
171 |
width: 20px;
|
172 |
height: 20px;
|
173 |
-
border: 2px solid #
|
174 |
border-radius: 50%;
|
175 |
margin-right: 10px;
|
176 |
transition: all 0.3s ease;
|
177 |
position: relative;
|
178 |
}
|
179 |
-
|
180 |
-
/* Selected Radio Button Styling with Checkmark */
|
181 |
.gr-radio-group input[type="radio"]:checked {
|
182 |
-
background-color: #
|
183 |
-
border-color: #
|
184 |
}
|
185 |
-
|
186 |
.gr-radio-group input[type="radio"]:checked::after {
|
187 |
content: "✓";
|
188 |
color: #ffffff;
|
@@ -196,7 +194,7 @@ input, select, textarea {
|
|
196 |
display: flex;
|
197 |
align-items: center;
|
198 |
justify-content: center;
|
199 |
-
background-color: #
|
200 |
}
|
201 |
|
202 |
/* Adjust label for responsive alignment */
|
@@ -216,10 +214,9 @@ input, select, textarea {
|
|
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;
|
223 |
padding: 10px 18px !important;
|
224 |
cursor: pointer !important;
|
225 |
font-weight: 500 !important;
|
@@ -227,29 +224,28 @@ input, select, textarea {
|
|
227 |
border-radius: 8px !important;
|
228 |
transition: color 0.3s, border-color 0.3s !important;
|
229 |
}
|
230 |
-
|
231 |
.nav-tabs .nav-item:hover {
|
232 |
-
color: #
|
233 |
-
background-color: rgba(
|
234 |
}
|
235 |
-
|
236 |
.nav-tabs .nav-item.active {
|
237 |
-
color: #
|
238 |
-
border-bottom: 3px solid #
|
239 |
font-weight: 700 !important;
|
240 |
-
background-color: rgba(
|
241 |
padding: 8px 16px !important;
|
242 |
}
|
243 |
|
244 |
/* Output Text Styling */
|
245 |
#registration_output, #test_output, #billing_output {
|
246 |
-
color: #333333 !important;
|
247 |
-
background-color: rgba(
|
248 |
padding: 15px;
|
249 |
border-radius: 7px;
|
250 |
font-weight: bold;
|
251 |
text-align: left;
|
252 |
}
|
|
|
253 |
"""
|
254 |
|
255 |
# Gradio Interface
|
|
|
81 |
/* General Page Style */
|
82 |
body {
|
83 |
font-family: 'Poppins', Arial, sans-serif;
|
84 |
+
background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fad0c4);
|
85 |
color: #333333;
|
86 |
margin: 0;
|
87 |
padding: 0;
|
|
|
93 |
|
94 |
/* Heading Colors */
|
95 |
h1 {
|
96 |
+
color: #4A90E2; /* Soft blue for h1 */
|
97 |
+
text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
|
98 |
}
|
|
|
99 |
h2, h3, h4, h5, h6 {
|
100 |
+
color: #F582AE; /* Pink for other headings */
|
101 |
+
text-shadow: 2px 2px 6px rgba(255, 105, 180, 0.3);
|
102 |
}
|
103 |
|
104 |
/* Header Styling */
|
105 |
#header {
|
106 |
+
color: #FF6F61;
|
107 |
text-align: center;
|
108 |
font-weight: 700;
|
109 |
font-size: 2.5em;
|
110 |
margin-bottom: 25px;
|
111 |
+
text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
|
112 |
letter-spacing: 1px;
|
113 |
transition: color 0.3s ease;
|
114 |
}
|
|
|
115 |
#header:hover {
|
116 |
+
color: #FF4081;
|
117 |
transform: scale(1.05);
|
118 |
}
|
119 |
|
|
|
122 |
max-width: 850px;
|
123 |
margin: 30px auto;
|
124 |
padding: 40px;
|
125 |
+
background: linear-gradient(135deg, #ffffff, #f8efff);
|
126 |
border-radius: 15px;
|
127 |
+
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
|
128 |
color: #333333;
|
129 |
}
|
130 |
|
131 |
/* Form Field Styles */
|
132 |
input, select, textarea {
|
133 |
max-width: 700px;
|
134 |
+
border: 1px solid #FF6F61;
|
135 |
border-radius: 8px;
|
136 |
padding: 10px 12px;
|
137 |
+
background: #fefefe;
|
138 |
color: #333333;
|
139 |
font-size: 15px;
|
140 |
margin-bottom: 20px;
|
141 |
transition: all 0.3s ease;
|
142 |
+
box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.15);
|
143 |
+
}
|
144 |
+
input:focus, select:focus, textarea:focus {
|
145 |
+
border-color: #F582AE;
|
146 |
+
box-shadow: 0px 3px 8px rgba(245, 130, 174, 0.4);
|
147 |
}
|
148 |
|
149 |
/* Radio Button Group Styling */
|
|
|
152 |
align-items: center;
|
153 |
justify-content: center;
|
154 |
padding: 10px 20px;
|
155 |
+
border: 2px solid #FF6F61;
|
156 |
border-radius: 8px;
|
157 |
transition: all 0.3s ease;
|
158 |
cursor: pointer;
|
159 |
+
color: #FF6F61;
|
160 |
+
background: #ffe7e0;
|
161 |
+
box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
|
162 |
margin-right: 10px;
|
163 |
}
|
|
|
164 |
.gr-radio-group label:hover {
|
165 |
+
background: #f8cfd0;
|
166 |
+
color: #D84315;
|
167 |
}
|
168 |
|
169 |
/* Radio Button Styling */
|
|
|
171 |
appearance: none;
|
172 |
width: 20px;
|
173 |
height: 20px;
|
174 |
+
border: 2px solid #FF6F61;
|
175 |
border-radius: 50%;
|
176 |
margin-right: 10px;
|
177 |
transition: all 0.3s ease;
|
178 |
position: relative;
|
179 |
}
|
|
|
|
|
180 |
.gr-radio-group input[type="radio"]:checked {
|
181 |
+
background-color: #FF8A65;
|
182 |
+
border-color: #FF8A65;
|
183 |
}
|
|
|
184 |
.gr-radio-group input[type="radio"]:checked::after {
|
185 |
content: "✓";
|
186 |
color: #ffffff;
|
|
|
194 |
display: flex;
|
195 |
align-items: center;
|
196 |
justify-content: center;
|
197 |
+
background-color: #FF8A65;
|
198 |
}
|
199 |
|
200 |
/* Adjust label for responsive alignment */
|
|
|
214 |
gap: 20px !important;
|
215 |
border-radius: 10px;
|
216 |
}
|
|
|
217 |
.nav-tabs .nav-item {
|
218 |
font-size: 1.2em !important;
|
219 |
+
color: #555555 !important;
|
220 |
padding: 10px 18px !important;
|
221 |
cursor: pointer !important;
|
222 |
font-weight: 500 !important;
|
|
|
224 |
border-radius: 8px !important;
|
225 |
transition: color 0.3s, border-color 0.3s !important;
|
226 |
}
|
|
|
227 |
.nav-tabs .nav-item:hover {
|
228 |
+
color: #42A5F5 !important;
|
229 |
+
background-color: rgba(66, 165, 245, 0.1) !important;
|
230 |
}
|
|
|
231 |
.nav-tabs .nav-item.active {
|
232 |
+
color: #1E88E5 !important;
|
233 |
+
border-bottom: 3px solid #1E88E5 !important;
|
234 |
font-weight: 700 !important;
|
235 |
+
background-color: rgba(66, 165, 245, 0.2) !important;
|
236 |
padding: 8px 16px !important;
|
237 |
}
|
238 |
|
239 |
/* Output Text Styling */
|
240 |
#registration_output, #test_output, #billing_output {
|
241 |
+
color: #333333 !important;
|
242 |
+
background-color: rgba(255, 245, 238, 0.95) !important;
|
243 |
padding: 15px;
|
244 |
border-radius: 7px;
|
245 |
font-weight: bold;
|
246 |
text-align: left;
|
247 |
}
|
248 |
+
|
249 |
"""
|
250 |
|
251 |
# Gradio Interface
|