Spaces:
Sleeping
Sleeping
neerajkalyank
commited on
Commit
•
a9010bc
1
Parent(s):
55a56e5
Update app.py
Browse files
app.py
CHANGED
@@ -122,108 +122,115 @@ with gr.Blocks() as app:
|
|
122 |
|
123 |
# Custom CSS styling
|
124 |
app.css = """
|
|
|
|
|
125 |
body {
|
126 |
-
font-family: '
|
127 |
-
background:
|
128 |
-
|
129 |
-
color: #23cee8;
|
130 |
margin: 0;
|
131 |
padding: 0;
|
132 |
}
|
133 |
|
134 |
#header {
|
135 |
-
color: #
|
136 |
text-align: center;
|
137 |
-
font-weight:
|
138 |
text-transform: uppercase;
|
|
|
139 |
margin-bottom: 25px;
|
|
|
140 |
}
|
141 |
|
142 |
.gradio-container {
|
143 |
max-width: 850px;
|
144 |
margin: 30px auto;
|
145 |
-
padding:
|
146 |
-
background: rgba(
|
147 |
-
border-radius:
|
148 |
-
box-shadow: 0px
|
149 |
-
color: #
|
150 |
}
|
151 |
|
152 |
-
#name_field, #father_name_field, #age_field, #phone_field, #address_field, #pincode_field {
|
153 |
max-width: 700px;
|
154 |
-
border: 1px solid #
|
155 |
-
border-radius:
|
156 |
-
padding:
|
157 |
-
background: rgba(245, 245, 245, 0.
|
158 |
-
color: #
|
159 |
-
font-size:
|
160 |
-
margin-bottom:
|
161 |
-
transition:
|
162 |
}
|
163 |
|
164 |
-
#name_field:focus, #father_name_field:focus, #age_field:focus, #phone_field:focus, #address_field:focus, #pincode_field:focus {
|
165 |
-
border-color: #
|
166 |
-
box-shadow: 0 0
|
167 |
}
|
168 |
|
169 |
textarea {
|
170 |
font-size: 15px;
|
171 |
-
color: #
|
172 |
-
background: rgba(245, 245, 245, 0.
|
173 |
-
padding:
|
174 |
-
border-radius:
|
175 |
-
border: 1px solid #
|
176 |
transition: all 0.3s ease;
|
177 |
}
|
178 |
-
textarea {
|
179 |
-
font-size: 15px;
|
180 |
-
color: #080707;
|
181 |
-
background: rgba(255, 255, 255, 0.8); /* Transparent background */
|
182 |
-
padding: 12px;
|
183 |
-
border-radius: 6px;
|
184 |
-
}
|
185 |
|
186 |
.gr-button {
|
187 |
color: #ffffff;
|
188 |
-
background
|
189 |
border: none;
|
190 |
-
border-radius:
|
191 |
-
padding: 12px
|
192 |
cursor: pointer;
|
193 |
font-weight: 600;
|
194 |
-
|
195 |
-
|
|
|
196 |
}
|
197 |
|
198 |
.gr-button:hover {
|
199 |
-
background
|
200 |
-
transform: scale(1.
|
|
|
201 |
}
|
202 |
|
203 |
.gr-tab {
|
204 |
-
background
|
205 |
-
border-radius:
|
206 |
-
padding:
|
|
|
207 |
}
|
208 |
|
209 |
h1, h2, h3, h4, h5, h6 {
|
210 |
-
color: #
|
211 |
font-weight: 700;
|
|
|
212 |
}
|
213 |
|
214 |
#billing_output {
|
215 |
-
background
|
216 |
-
padding:
|
217 |
-
border-radius:
|
218 |
-
color: #
|
219 |
-
font-size:
|
220 |
font-weight: bold;
|
|
|
221 |
}
|
222 |
|
223 |
.checkbox, .textbox {
|
224 |
-
margin-bottom:
|
225 |
-
color: #
|
226 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
"""
|
228 |
|
229 |
app.launch()
|
|
|
122 |
|
123 |
# Custom CSS styling
|
124 |
app.css = """
|
125 |
+
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');
|
126 |
+
|
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 |
}
|
134 |
|
135 |
#header {
|
136 |
+
color: #fbc02d;
|
137 |
text-align: center;
|
138 |
+
font-weight: 700;
|
139 |
text-transform: uppercase;
|
140 |
+
font-size: 2em;
|
141 |
margin-bottom: 25px;
|
142 |
+
text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
|
143 |
}
|
144 |
|
145 |
.gradio-container {
|
146 |
max-width: 850px;
|
147 |
margin: 30px auto;
|
148 |
+
padding: 30px;
|
149 |
+
background: rgba(20, 20, 20, 0.85);
|
150 |
+
border-radius: 15px;
|
151 |
+
box-shadow: 0px 8px 30px rgba(0, 0, 0, 0.5);
|
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 #666;
|
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 |
textarea {
|
173 |
font-size: 15px;
|
174 |
+
color: #2d2d2d;
|
175 |
+
background: rgba(245, 245, 245, 0.9);
|
176 |
+
padding: 15px;
|
177 |
+
border-radius: 8px;
|
178 |
+
border: 1px solid #666;
|
179 |
transition: all 0.3s ease;
|
180 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
|
182 |
.gr-button {
|
183 |
color: #ffffff;
|
184 |
+
background: linear-gradient(to right, #4a90e2, #007aff);
|
185 |
border: none;
|
186 |
+
border-radius: 10px;
|
187 |
+
padding: 12px 30px;
|
188 |
cursor: pointer;
|
189 |
font-weight: 600;
|
190 |
+
font-size: 16px;
|
191 |
+
transition: background 0.3s ease, transform 0.2s, box-shadow 0.3s ease;
|
192 |
+
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
|
193 |
}
|
194 |
|
195 |
.gr-button:hover {
|
196 |
+
background: linear-gradient(to right, #0061a7, #005cbf);
|
197 |
+
transform: scale(1.07);
|
198 |
+
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
|
199 |
}
|
200 |
|
201 |
.gr-tab {
|
202 |
+
background: rgba(255, 255, 255, 0.08);
|
203 |
+
border-radius: 10px;
|
204 |
+
padding: 25px;
|
205 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
206 |
}
|
207 |
|
208 |
h1, h2, h3, h4, h5, h6 {
|
209 |
+
color: #ffeb3b;
|
210 |
font-weight: 700;
|
211 |
+
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
|
212 |
}
|
213 |
|
214 |
#billing_output {
|
215 |
+
background: rgba(40, 40, 40, 0.9);
|
216 |
+
padding: 20px;
|
217 |
+
border-radius: 8px;
|
218 |
+
color: #ffeb3b;
|
219 |
+
font-size: 18px;
|
220 |
font-weight: bold;
|
221 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
|
222 |
}
|
223 |
|
224 |
.checkbox, .textbox {
|
225 |
+
margin-bottom: 18px;
|
226 |
+
color: #f5f5f5;
|
227 |
}
|
228 |
+
|
229 |
+
::placeholder {
|
230 |
+
color: #888;
|
231 |
+
opacity: 1;
|
232 |
+
}
|
233 |
+
|
234 |
"""
|
235 |
|
236 |
app.launch()
|