Spaces:
Sleeping
Sleeping
neerajkalyank
commited on
Commit
•
7af2ecd
1
Parent(s):
2ca6cab
Update app.py
Browse files
app.py
CHANGED
@@ -123,73 +123,96 @@ with gr.Blocks() as app:
|
|
123 |
# Custom CSS styling
|
124 |
app.css = """
|
125 |
body {
|
126 |
-
font-family: Arial, sans-serif;
|
127 |
background: url('./background.png') no-repeat center center fixed;
|
128 |
background-size: cover;
|
129 |
-
color: #
|
|
|
|
|
130 |
}
|
|
|
131 |
#header {
|
132 |
color: #ccdb42;
|
|
|
|
|
|
|
133 |
}
|
|
|
134 |
.gradio-container {
|
135 |
-
max-width:
|
136 |
-
margin:
|
137 |
-
padding:
|
138 |
-
background: rgba(
|
139 |
-
border-radius:
|
140 |
-
box-shadow: 0px 0px
|
|
|
141 |
}
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
border
|
146 |
-
|
147 |
-
}
|
148 |
-
#age_field {
|
149 |
-
max-width: 300px;
|
150 |
-
border: 1px solid #ddd;
|
151 |
-
border-radius: 5px;
|
152 |
-
padding: 10px;
|
153 |
-
}
|
154 |
-
#phone_field {
|
155 |
-
max-width: 1100px;
|
156 |
-
border: 1px solid #ddd;
|
157 |
-
border-radius: 5px;
|
158 |
padding: 10px;
|
|
|
|
|
|
|
|
|
|
|
159 |
}
|
160 |
-
|
161 |
-
|
162 |
-
border:
|
163 |
-
|
164 |
-
padding: 10px;
|
165 |
}
|
|
|
166 |
textarea {
|
167 |
-
font-size:
|
168 |
color: #080707;
|
|
|
|
|
|
|
169 |
}
|
|
|
170 |
.gr-button {
|
171 |
-
color: #
|
|
|
172 |
border: none;
|
173 |
-
border-radius:
|
174 |
-
padding:
|
175 |
cursor: pointer;
|
176 |
-
font-weight:
|
|
|
|
|
177 |
}
|
|
|
178 |
.gr-button:hover {
|
179 |
-
background-color: #
|
|
|
180 |
}
|
|
|
181 |
.gr-tab {
|
182 |
-
background-color:
|
183 |
border-radius: 8px;
|
|
|
184 |
}
|
|
|
185 |
h1, h2, h3, h4, h5, h6 {
|
186 |
-
color: #
|
|
|
187 |
}
|
|
|
188 |
#billing_output {
|
189 |
-
background-color: #
|
190 |
padding: 15px;
|
191 |
-
border-radius:
|
192 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
}
|
194 |
"""
|
195 |
|
|
|
123 |
# Custom CSS styling
|
124 |
app.css = """
|
125 |
body {
|
126 |
+
font-family: 'Roboto', Arial, sans-serif;
|
127 |
background: url('./background.png') no-repeat center center fixed;
|
128 |
background-size: cover;
|
129 |
+
color: #f0f0f0;
|
130 |
+
margin: 0;
|
131 |
+
padding: 0;
|
132 |
}
|
133 |
+
|
134 |
#header {
|
135 |
color: #ccdb42;
|
136 |
+
font-weight: 700;
|
137 |
+
text-transform: uppercase;
|
138 |
+
margin-bottom: 20px;
|
139 |
}
|
140 |
+
|
141 |
.gradio-container {
|
142 |
+
max-width: 850px;
|
143 |
+
margin: 30px auto;
|
144 |
+
padding: 25px;
|
145 |
+
background: rgba(30, 30, 30, 0.95);
|
146 |
+
border-radius: 12px;
|
147 |
+
box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.3);
|
148 |
+
color: #e0e0e0;
|
149 |
}
|
150 |
+
|
151 |
+
#name_field, #father_name_field, #age_field, #phone_field, #pincode_field {
|
152 |
+
max-width: 700px;
|
153 |
+
border: 1px solid #888;
|
154 |
+
border-radius: 6px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
padding: 10px;
|
156 |
+
background: #f5f5f5;
|
157 |
+
color: #333;
|
158 |
+
font-size: 14px;
|
159 |
+
margin-bottom: 12px;
|
160 |
+
transition: all 0.3s ease;
|
161 |
}
|
162 |
+
|
163 |
+
#name_field:focus, #father_name_field:focus, #age_field:focus, #phone_field:focus, #pincode_field:focus {
|
164 |
+
border-color: #ccdb42;
|
165 |
+
box-shadow: 0 0 8px rgba(204, 219, 66, 0.5);
|
|
|
166 |
}
|
167 |
+
|
168 |
textarea {
|
169 |
+
font-size: 15px;
|
170 |
color: #080707;
|
171 |
+
background: #fefefe;
|
172 |
+
padding: 12px;
|
173 |
+
border-radius: 6px;
|
174 |
}
|
175 |
+
|
176 |
.gr-button {
|
177 |
+
color: #ffffff;
|
178 |
+
background-color: #3b74f2;
|
179 |
border: none;
|
180 |
+
border-radius: 6px;
|
181 |
+
padding: 12px 24px;
|
182 |
cursor: pointer;
|
183 |
+
font-weight: 600;
|
184 |
+
transition: background-color 0.3s ease, transform 0.2s;
|
185 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
|
186 |
}
|
187 |
+
|
188 |
.gr-button:hover {
|
189 |
+
background-color: #2a5bc1;
|
190 |
+
transform: scale(1.05);
|
191 |
}
|
192 |
+
|
193 |
.gr-tab {
|
194 |
+
background-color: rgba(255, 255, 255, 0.05);
|
195 |
border-radius: 8px;
|
196 |
+
padding: 20px;
|
197 |
}
|
198 |
+
|
199 |
h1, h2, h3, h4, h5, h6 {
|
200 |
+
color: #ccdb42;
|
201 |
+
font-weight: 700;
|
202 |
}
|
203 |
+
|
204 |
#billing_output {
|
205 |
+
background-color: #333333;
|
206 |
padding: 15px;
|
207 |
+
border-radius: 6px;
|
208 |
+
color: #d1f542;
|
209 |
+
font-size: 16px;
|
210 |
+
font-weight: bold;
|
211 |
+
}
|
212 |
+
|
213 |
+
.checkbox, .textbox {
|
214 |
+
margin-bottom: 15px;
|
215 |
+
color: #f0f0f0;
|
216 |
}
|
217 |
"""
|
218 |
|