neerajkalyank commited on
Commit
a9010bc
1 Parent(s): 55a56e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +60 -53
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: 'Roboto', Arial, sans-serif;
127
- background: url('./background.png') no-repeat center center fixed;
128
- background-size: cover;
129
- color: #23cee8;
130
  margin: 0;
131
  padding: 0;
132
  }
133
 
134
  #header {
135
- color: #d6ec0c;
136
  text-align: center;
137
- font-weight: 850;
138
  text-transform: uppercase;
 
139
  margin-bottom: 25px;
 
140
  }
141
 
142
  .gradio-container {
143
  max-width: 850px;
144
  margin: 30px auto;
145
- padding: 25px;
146
- background: rgba(30, 30, 30, 0.7); /* Adjusted transparency */
147
- border-radius: 12px;
148
- box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.3);
149
- color: #e0e0e0;
150
  }
151
 
152
- #name_field, #father_name_field, #age_field, #phone_field, #address_field, #pincode_field {
153
  max-width: 700px;
154
- border: 1px solid #888;
155
- border-radius: 6px;
156
- padding: 10px;
157
- background: rgba(245, 245, 245, 0.7); /* Slightly transparent */
158
- color: #333;
159
- font-size: 14px;
160
- margin-bottom: 12px;
161
- transition: all 0.3s ease;
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: #ccdb42;
166
- box-shadow: 0 0 8px rgba(204, 219, 66, 0.5);
167
  }
168
 
169
  textarea {
170
  font-size: 15px;
171
- color: #333; /* Match the color of other input fields */
172
- background: rgba(245, 245, 245, 0.7); /* Adjust to match the input field color */
173
- padding: 12px;
174
- border-radius: 6px;
175
- border: 1px solid #888; /* Match the border style of input fields */
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-color: #3b74f2;
189
  border: none;
190
- border-radius: 6px;
191
- padding: 12px 24px;
192
  cursor: pointer;
193
  font-weight: 600;
194
- transition: background-color 0.3s ease, transform 0.2s;
195
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
 
196
  }
197
 
198
  .gr-button:hover {
199
- background-color: #1141a4;
200
- transform: scale(1.05);
 
201
  }
202
 
203
  .gr-tab {
204
- background-color: rgba(255, 255, 255, 0.05); /* Transparent tab background */
205
- border-radius: 8px;
206
- padding: 20px;
 
207
  }
208
 
209
  h1, h2, h3, h4, h5, h6 {
210
- color: #ccdb42;
211
  font-weight: 700;
 
212
  }
213
 
214
  #billing_output {
215
- background-color: rgba(51, 51, 51, 0.8); /* Transparent output background */
216
- padding: 15px;
217
- border-radius: 6px;
218
- color: #d1f542;
219
- font-size: 16px;
220
  font-weight: bold;
 
221
  }
222
 
223
  .checkbox, .textbox {
224
- margin-bottom: 15px;
225
- color: #f0f0f0;
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()