Spaces:
Sleeping
Sleeping
neerajkalyank
commited on
Commit
•
15e7bff
1
Parent(s):
920c9eb
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, #ff9a9e, #fad0c4, #fad0c4);
|
85 |
color: #333333;
|
86 |
margin: 0;
|
87 |
padding: 0;
|
@@ -89,15 +89,19 @@ body {
|
|
89 |
justify-content: center;
|
90 |
align-items: center;
|
91 |
min-height: 100vh;
|
|
|
92 |
}
|
93 |
|
94 |
/* Heading Colors */
|
95 |
h1 {
|
96 |
-
color: #4A90E2;
|
97 |
text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
|
98 |
}
|
99 |
h2, h3, h4, h5, h6 {
|
100 |
-
color: #F582AE;
|
101 |
text-shadow: 2px 2px 6px rgba(255, 105, 180, 0.3);
|
102 |
}
|
103 |
|
@@ -106,44 +110,53 @@ h2, h3, h4, h5, h6 {
|
|
106 |
color: #FF6F61;
|
107 |
text-align: center;
|
108 |
font-weight: 700;
|
109 |
-
font-size:
|
110 |
margin-bottom: 25px;
|
111 |
-
text-shadow:
|
112 |
-
letter-spacing:
|
113 |
-
transition: color 0.3s ease;
|
|
|
|
|
|
|
114 |
}
|
115 |
#header:hover {
|
116 |
color: #FF4081;
|
117 |
-
transform: scale(1.
|
118 |
}
|
119 |
|
120 |
/* Container Style */
|
121 |
.gradio-container {
|
122 |
-
max-width:
|
123 |
margin: 30px auto;
|
124 |
padding: 40px;
|
125 |
-
background: linear-gradient(135deg, #ffffff, #
|
126 |
-
border-radius:
|
127 |
-
box-shadow: 0
|
128 |
color: #333333;
|
|
|
|
|
|
|
|
|
|
|
129 |
}
|
130 |
|
131 |
/* Form Field Styles */
|
132 |
input, select, textarea {
|
133 |
max-width: 700px;
|
134 |
-
border:
|
135 |
-
border-radius:
|
136 |
-
padding:
|
137 |
background: #fefefe;
|
138 |
color: #333333;
|
139 |
-
font-size:
|
140 |
margin-bottom: 20px;
|
141 |
transition: all 0.3s ease;
|
142 |
-
box-shadow: 0px
|
143 |
}
|
144 |
input:focus, select:focus, textarea:focus {
|
145 |
border-color: #F582AE;
|
146 |
-
box-shadow: 0px
|
|
|
147 |
}
|
148 |
|
149 |
/* Radio Button Group Styling */
|
@@ -151,19 +164,21 @@ input:focus, select:focus, textarea:focus {
|
|
151 |
display: flex;
|
152 |
align-items: center;
|
153 |
justify-content: center;
|
154 |
-
padding:
|
155 |
border: 2px solid #FF6F61;
|
156 |
-
border-radius:
|
157 |
transition: all 0.3s ease;
|
158 |
cursor: pointer;
|
159 |
color: #FF6F61;
|
160 |
background: #ffe7e0;
|
161 |
-
box-shadow: 0px
|
162 |
-
margin-right:
|
|
|
163 |
}
|
164 |
.gr-radio-group label:hover {
|
165 |
background: #f8cfd0;
|
166 |
color: #D84315;
|
|
|
167 |
}
|
168 |
|
169 |
/* Radio Button Styling */
|
@@ -173,7 +188,7 @@ input:focus, select:focus, textarea:focus {
|
|
173 |
height: 20px;
|
174 |
border: 2px solid #FF6F61;
|
175 |
border-radius: 50%;
|
176 |
-
margin-right:
|
177 |
transition: all 0.3s ease;
|
178 |
position: relative;
|
179 |
}
|
@@ -210,40 +225,45 @@ input:focus, select:focus, textarea:focus {
|
|
210 |
justify-content: space-around;
|
211 |
background-color: #ffffff !important;
|
212 |
border-bottom: 1px solid #dddddd !important;
|
213 |
-
padding:
|
214 |
-
gap:
|
215 |
border-radius: 10px;
|
216 |
}
|
217 |
.nav-tabs .nav-item {
|
218 |
font-size: 1.2em !important;
|
219 |
color: #555555 !important;
|
220 |
-
padding:
|
221 |
cursor: pointer !important;
|
222 |
-
font-weight:
|
223 |
border: 2px solid transparent !important;
|
224 |
-
border-radius:
|
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.
|
230 |
}
|
231 |
.nav-tabs .nav-item.active {
|
232 |
color: #1E88E5 !important;
|
233 |
-
border-bottom:
|
234 |
font-weight: 700 !important;
|
235 |
background-color: rgba(66, 165, 245, 0.2) !important;
|
236 |
-
padding:
|
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:
|
244 |
-
border-radius:
|
245 |
font-weight: bold;
|
246 |
text-align: left;
|
|
|
|
|
|
|
|
|
|
|
247 |
}
|
248 |
|
249 |
"""
|
|
|
81 |
/* General Page Style */
|
82 |
body {
|
83 |
font-family: 'Poppins', Arial, sans-serif;
|
84 |
+
background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fad0c4, #fcb69f);
|
85 |
color: #333333;
|
86 |
margin: 0;
|
87 |
padding: 0;
|
|
|
89 |
justify-content: center;
|
90 |
align-items: center;
|
91 |
min-height: 100vh;
|
92 |
+
overflow: hidden;
|
93 |
}
|
94 |
|
95 |
/* Heading Colors */
|
96 |
h1 {
|
97 |
+
color: #4A90E2;
|
98 |
text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
|
99 |
+
background: linear-gradient(90deg, #ff7eb9, #ff65a3);
|
100 |
+
-webkit-background-clip: text;
|
101 |
+
color: transparent;
|
102 |
}
|
103 |
h2, h3, h4, h5, h6 {
|
104 |
+
color: #F582AE;
|
105 |
text-shadow: 2px 2px 6px rgba(255, 105, 180, 0.3);
|
106 |
}
|
107 |
|
|
|
110 |
color: #FF6F61;
|
111 |
text-align: center;
|
112 |
font-weight: 700;
|
113 |
+
font-size: 3em;
|
114 |
margin-bottom: 25px;
|
115 |
+
text-shadow: 3px 3px 8px rgba(0, 0, 0, 0.3);
|
116 |
+
letter-spacing: 1.5px;
|
117 |
+
transition: color 0.3s ease, transform 0.3s ease;
|
118 |
+
background: linear-gradient(90deg, #ff9a9e, #fad0c4, #fcb69f);
|
119 |
+
-webkit-background-clip: text;
|
120 |
+
color: transparent;
|
121 |
}
|
122 |
#header:hover {
|
123 |
color: #FF4081;
|
124 |
+
transform: scale(1.1) rotate(-2deg);
|
125 |
}
|
126 |
|
127 |
/* Container Style */
|
128 |
.gradio-container {
|
129 |
+
max-width: 900px;
|
130 |
margin: 30px auto;
|
131 |
padding: 40px;
|
132 |
+
background: linear-gradient(135deg, #ffffff, #f9f9f9);
|
133 |
+
border-radius: 20px;
|
134 |
+
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
|
135 |
color: #333333;
|
136 |
+
transform: scale(1);
|
137 |
+
transition: transform 0.3s ease;
|
138 |
+
}
|
139 |
+
.gradio-container:hover {
|
140 |
+
transform: scale(1.02);
|
141 |
}
|
142 |
|
143 |
/* Form Field Styles */
|
144 |
input, select, textarea {
|
145 |
max-width: 700px;
|
146 |
+
border: 2px solid #FF6F61;
|
147 |
+
border-radius: 12px;
|
148 |
+
padding: 12px 14px;
|
149 |
background: #fefefe;
|
150 |
color: #333333;
|
151 |
+
font-size: 16px;
|
152 |
margin-bottom: 20px;
|
153 |
transition: all 0.3s ease;
|
154 |
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
|
155 |
}
|
156 |
input:focus, select:focus, textarea:focus {
|
157 |
border-color: #F582AE;
|
158 |
+
box-shadow: 0px 4px 10px rgba(245, 130, 174, 0.4);
|
159 |
+
background: #fff4f4;
|
160 |
}
|
161 |
|
162 |
/* Radio Button Group Styling */
|
|
|
164 |
display: flex;
|
165 |
align-items: center;
|
166 |
justify-content: center;
|
167 |
+
padding: 12px 25px;
|
168 |
border: 2px solid #FF6F61;
|
169 |
+
border-radius: 12px;
|
170 |
transition: all 0.3s ease;
|
171 |
cursor: pointer;
|
172 |
color: #FF6F61;
|
173 |
background: #ffe7e0;
|
174 |
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
175 |
+
margin-right: 15px;
|
176 |
+
transform: scale(1);
|
177 |
}
|
178 |
.gr-radio-group label:hover {
|
179 |
background: #f8cfd0;
|
180 |
color: #D84315;
|
181 |
+
transform: scale(1.05);
|
182 |
}
|
183 |
|
184 |
/* Radio Button Styling */
|
|
|
188 |
height: 20px;
|
189 |
border: 2px solid #FF6F61;
|
190 |
border-radius: 50%;
|
191 |
+
margin-right: 12px;
|
192 |
transition: all 0.3s ease;
|
193 |
position: relative;
|
194 |
}
|
|
|
225 |
justify-content: space-around;
|
226 |
background-color: #ffffff !important;
|
227 |
border-bottom: 1px solid #dddddd !important;
|
228 |
+
padding: 14px !important;
|
229 |
+
gap: 25px !important;
|
230 |
border-radius: 10px;
|
231 |
}
|
232 |
.nav-tabs .nav-item {
|
233 |
font-size: 1.2em !important;
|
234 |
color: #555555 !important;
|
235 |
+
padding: 12px 20px !important;
|
236 |
cursor: pointer !important;
|
237 |
+
font-weight: 600 !important;
|
238 |
border: 2px solid transparent !important;
|
239 |
+
border-radius: 12px !important;
|
240 |
transition: color 0.3s, border-color 0.3s !important;
|
241 |
}
|
242 |
.nav-tabs .nav-item:hover {
|
243 |
color: #42A5F5 !important;
|
244 |
+
background-color: rgba(66, 165, 245, 0.15) !important;
|
245 |
}
|
246 |
.nav-tabs .nav-item.active {
|
247 |
color: #1E88E5 !important;
|
248 |
+
border-bottom: 4px solid #1E88E5 !important;
|
249 |
font-weight: 700 !important;
|
250 |
background-color: rgba(66, 165, 245, 0.2) !important;
|
251 |
+
padding: 10px 18px !important;
|
252 |
}
|
253 |
|
254 |
/* Output Text Styling */
|
255 |
#registration_output, #test_output, #billing_output {
|
256 |
color: #333333 !important;
|
257 |
background-color: rgba(255, 245, 238, 0.95) !important;
|
258 |
+
padding: 18px;
|
259 |
+
border-radius: 10px;
|
260 |
font-weight: bold;
|
261 |
text-align: left;
|
262 |
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
|
263 |
+
transition: background-color 0.3s ease;
|
264 |
+
}
|
265 |
+
#registration_output:hover, #test_output:hover, #billing_output:hover {
|
266 |
+
background-color: rgba(255, 200, 200, 0.95) !important;
|
267 |
}
|
268 |
|
269 |
"""
|