Spaces:
Running
Running
neerajkalyank
commited on
Commit
•
756506f
1
Parent(s):
a21256d
Update app.py
Browse files
app.py
CHANGED
@@ -127,7 +127,7 @@ app.css = """
|
|
127 |
body {
|
128 |
font-family: 'Poppins', Arial, sans-serif;
|
129 |
background: linear-gradient(to bottom right, #1e3c72, #2a5298);
|
130 |
-
color: #
|
131 |
margin: 0;
|
132 |
padding: 0;
|
133 |
}
|
@@ -137,7 +137,7 @@ body {
|
|
137 |
text-align: center;
|
138 |
font-weight: 700;
|
139 |
text-transform: uppercase;
|
140 |
-
font-size:
|
141 |
margin-bottom: 25px;
|
142 |
text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
|
143 |
}
|
@@ -146,27 +146,38 @@ body {
|
|
146 |
max-width: 850px;
|
147 |
margin: 30px auto;
|
148 |
padding: 30px;
|
149 |
-
background: rgba(
|
150 |
border-radius: 15px;
|
151 |
-
box-shadow: 0px
|
152 |
color: #ffffff;
|
153 |
}
|
154 |
|
155 |
#name_field, #father_name_field, #age_field, #phone_field, #address_field, #pincode_field, textarea {
|
156 |
max-width: 700px;
|
157 |
-
border: 1px solid #
|
158 |
border-radius: 8px;
|
159 |
padding: 12px;
|
160 |
-
background: rgba(245, 245, 245, 0.85);
|
161 |
color: #2d2d2d;
|
162 |
font-size: 15px;
|
163 |
margin-bottom: 15px;
|
164 |
-
transition: border 0.3s ease, box-shadow 0.3s ease;
|
165 |
}
|
166 |
|
167 |
#name_field:focus, #father_name_field:focus, #age_field:focus, #phone_field:focus, #address_field:focus, #pincode_field:focus, textarea:focus {
|
168 |
border-color: #ffd54f;
|
169 |
box-shadow: 0 0 10px rgba(255, 213, 79, 0.7);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
170 |
}
|
171 |
|
172 |
.gr-button {
|
@@ -191,8 +202,14 @@ body {
|
|
191 |
.gr-tab {
|
192 |
background: rgba(255, 255, 255, 0.08);
|
193 |
border-radius: 10px;
|
194 |
-
padding:
|
195 |
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
|
|
|
|
|
|
|
|
|
|
|
|
196 |
}
|
197 |
|
198 |
h1, h2, h3, h4, h5, h6 {
|
@@ -221,6 +238,31 @@ h1, h2, h3, h4, h5, h6 {
|
|
221 |
opacity: 1;
|
222 |
}
|
223 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
"""
|
225 |
|
226 |
app.launch()
|
|
|
127 |
body {
|
128 |
font-family: 'Poppins', Arial, sans-serif;
|
129 |
background: linear-gradient(to bottom right, #1e3c72, #2a5298);
|
130 |
+
color: #e0f7fa;
|
131 |
margin: 0;
|
132 |
padding: 0;
|
133 |
}
|
|
|
137 |
text-align: center;
|
138 |
font-weight: 700;
|
139 |
text-transform: uppercase;
|
140 |
+
font-size: 2.5em;
|
141 |
margin-bottom: 25px;
|
142 |
text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
|
143 |
}
|
|
|
146 |
max-width: 850px;
|
147 |
margin: 30px auto;
|
148 |
padding: 30px;
|
149 |
+
background: rgba(30, 30, 30, 0.9);
|
150 |
border-radius: 15px;
|
151 |
+
box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.6);
|
152 |
color: #ffffff;
|
153 |
}
|
154 |
|
155 |
#name_field, #father_name_field, #age_field, #phone_field, #address_field, #pincode_field, textarea {
|
156 |
max-width: 700px;
|
157 |
+
border: 1px solid #444;
|
158 |
border-radius: 8px;
|
159 |
padding: 12px;
|
160 |
+
background: rgba(245, 245, 245, 0.85);
|
161 |
color: #2d2d2d;
|
162 |
font-size: 15px;
|
163 |
margin-bottom: 15px;
|
164 |
+
transition: border 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
|
165 |
}
|
166 |
|
167 |
#name_field:focus, #father_name_field:focus, #age_field:focus, #phone_field:focus, #address_field:focus, #pincode_field:focus, textarea:focus {
|
168 |
border-color: #ffd54f;
|
169 |
box-shadow: 0 0 10px rgba(255, 213, 79, 0.7);
|
170 |
+
transform: scale(1.02);
|
171 |
+
}
|
172 |
+
|
173 |
+
textarea {
|
174 |
+
font-size: 15px;
|
175 |
+
color: #2d2d2d;
|
176 |
+
background: rgba(245, 245, 245, 0.9);
|
177 |
+
padding: 15px;
|
178 |
+
border-radius: 8px;
|
179 |
+
border: 1px solid #444;
|
180 |
+
transition: all 0.3s ease;
|
181 |
}
|
182 |
|
183 |
.gr-button {
|
|
|
202 |
.gr-tab {
|
203 |
background: rgba(255, 255, 255, 0.08);
|
204 |
border-radius: 10px;
|
205 |
+
padding: 20px;
|
206 |
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
207 |
+
margin-bottom: 20px;
|
208 |
+
}
|
209 |
+
|
210 |
+
.gr-tab.active {
|
211 |
+
background: rgba(255, 136, 0, 0.1); /* Add a slight orange tint to active tab */
|
212 |
+
border-left: 4px solid #ff8c00;
|
213 |
}
|
214 |
|
215 |
h1, h2, h3, h4, h5, h6 {
|
|
|
238 |
opacity: 1;
|
239 |
}
|
240 |
|
241 |
+
/* Tab styling */
|
242 |
+
.nav-tabs {
|
243 |
+
display: flex;
|
244 |
+
justify-content: space-around;
|
245 |
+
background-color: #1e3c72;
|
246 |
+
border-bottom: 2px solid #ff8c00;
|
247 |
+
}
|
248 |
+
|
249 |
+
.nav-tabs .nav-item {
|
250 |
+
flex: 1;
|
251 |
+
text-align: center;
|
252 |
+
padding: 10px;
|
253 |
+
cursor: pointer;
|
254 |
+
color: #ffffff;
|
255 |
+
font-weight: 600;
|
256 |
+
transition: color 0.3s ease, background-color 0.3s ease;
|
257 |
+
}
|
258 |
+
|
259 |
+
.nav-tabs .nav-item:hover,
|
260 |
+
.nav-tabs .nav-item.active {
|
261 |
+
color: #ff8c00;
|
262 |
+
background-color: rgba(255, 255, 255, 0.1);
|
263 |
+
border-radius: 8px 8px 0 0;
|
264 |
+
}
|
265 |
+
|
266 |
"""
|
267 |
|
268 |
app.launch()
|