Update app.py
Browse files
app.py
CHANGED
|
@@ -263,78 +263,131 @@ import gradio as gr
|
|
| 263 |
|
| 264 |
# Custom CSS to match website style
|
| 265 |
# Define CSS to match a modern, professional design
|
|
|
|
| 266 |
css_tech_theme = """
|
| 267 |
body {
|
| 268 |
font-family: 'Roboto', sans-serif;
|
| 269 |
background-color: #f4f6fa;
|
| 270 |
color: #333333;
|
| 271 |
-
line-height: 1.8;
|
| 272 |
margin: 0;
|
| 273 |
padding: 0;
|
| 274 |
}
|
| 275 |
|
| 276 |
-
|
| 277 |
-
|
| 278 |
-
flex-direction: column;
|
| 279 |
-
align-items: center;
|
| 280 |
-
justify-content: center;
|
| 281 |
text-align: center;
|
| 282 |
-
|
| 283 |
-
padding: 20px;
|
| 284 |
background: linear-gradient(135deg, #6a1b9a, #64b5f6);
|
| 285 |
color: #ffffff;
|
| 286 |
-
border-radius:
|
| 287 |
-
|
| 288 |
-
box-shadow: 0
|
| 289 |
}
|
| 290 |
|
| 291 |
-
|
| 292 |
-
font-size:
|
| 293 |
font-weight: bold;
|
| 294 |
margin-bottom: 10px;
|
| 295 |
}
|
| 296 |
|
| 297 |
-
|
| 298 |
-
font-size:
|
| 299 |
-
margin:
|
| 300 |
-
font-weight: 500;
|
| 301 |
}
|
| 302 |
|
| 303 |
-
|
| 304 |
font-size: 1.2em;
|
| 305 |
-
|
| 306 |
-
line-height: 1.6;
|
| 307 |
}
|
| 308 |
|
| 309 |
-
.
|
|
|
|
|
|
|
|
|
|
| 310 |
margin-top: 20px;
|
| 311 |
}
|
| 312 |
|
| 313 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 314 |
background: #ffffff;
|
| 315 |
-
|
| 316 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 317 |
padding: 20px;
|
|
|
|
|
|
|
|
|
|
| 318 |
max-width: 1200px;
|
| 319 |
-
margin: 0 auto;
|
| 320 |
}
|
| 321 |
|
|
|
|
| 322 |
#leaderboard {
|
| 323 |
-
margin:
|
| 324 |
-
border-radius:
|
| 325 |
overflow: hidden;
|
| 326 |
border: 1px solid #e5eff2;
|
| 327 |
background: #f9f9f9;
|
| 328 |
}
|
| 329 |
|
|
|
|
| 330 |
footer {
|
| 331 |
-
|
| 332 |
-
padding: 20px;
|
| 333 |
-
background: #6a1b9a;
|
| 334 |
color: #ffffff;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 335 |
margin-top: 20px;
|
| 336 |
-
|
| 337 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 338 |
}
|
| 339 |
"""
|
| 340 |
|
|
|
|
| 263 |
|
| 264 |
# Custom CSS to match website style
|
| 265 |
# Define CSS to match a modern, professional design
|
| 266 |
+
# Define enhanced CSS for the entire layout
|
| 267 |
css_tech_theme = """
|
| 268 |
body {
|
| 269 |
font-family: 'Roboto', sans-serif;
|
| 270 |
background-color: #f4f6fa;
|
| 271 |
color: #333333;
|
|
|
|
| 272 |
margin: 0;
|
| 273 |
padding: 0;
|
| 274 |
}
|
| 275 |
|
| 276 |
+
/* Header Styling */
|
| 277 |
+
header {
|
|
|
|
|
|
|
|
|
|
| 278 |
text-align: center;
|
| 279 |
+
padding: 60px 20px;
|
|
|
|
| 280 |
background: linear-gradient(135deg, #6a1b9a, #64b5f6);
|
| 281 |
color: #ffffff;
|
| 282 |
+
border-radius: 12px;
|
| 283 |
+
margin-bottom: 30px;
|
| 284 |
+
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
|
| 285 |
}
|
| 286 |
|
| 287 |
+
header h1 {
|
| 288 |
+
font-size: 3.5em;
|
| 289 |
font-weight: bold;
|
| 290 |
margin-bottom: 10px;
|
| 291 |
}
|
| 292 |
|
| 293 |
+
header h2 {
|
| 294 |
+
font-size: 2em;
|
| 295 |
+
margin-bottom: 15px;
|
|
|
|
| 296 |
}
|
| 297 |
|
| 298 |
+
header p {
|
| 299 |
font-size: 1.2em;
|
| 300 |
+
line-height: 1.8;
|
|
|
|
| 301 |
}
|
| 302 |
|
| 303 |
+
.header-buttons {
|
| 304 |
+
display: flex;
|
| 305 |
+
justify-content: center;
|
| 306 |
+
gap: 15px;
|
| 307 |
margin-top: 20px;
|
| 308 |
}
|
| 309 |
|
| 310 |
+
.header-buttons a {
|
| 311 |
+
text-decoration: none;
|
| 312 |
+
font-size: 1.1em;
|
| 313 |
+
padding: 15px 30px;
|
| 314 |
+
border-radius: 30px;
|
| 315 |
+
font-weight: bold;
|
| 316 |
background: #ffffff;
|
| 317 |
+
color: #6a1b9a;
|
| 318 |
+
transition: transform 0.3s, background 0.3s;
|
| 319 |
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
| 320 |
+
}
|
| 321 |
+
|
| 322 |
+
.header-buttons a:hover {
|
| 323 |
+
background: #64b5f6;
|
| 324 |
+
color: #ffffff;
|
| 325 |
+
transform: scale(1.05);
|
| 326 |
+
}
|
| 327 |
+
|
| 328 |
+
/* Tabs Section */
|
| 329 |
+
.tabs {
|
| 330 |
+
margin: 0 auto;
|
| 331 |
padding: 20px;
|
| 332 |
+
background: #ffffff;
|
| 333 |
+
border-radius: 12px;
|
| 334 |
+
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
|
| 335 |
max-width: 1200px;
|
|
|
|
| 336 |
}
|
| 337 |
|
| 338 |
+
/* Leaderboard Styling */
|
| 339 |
#leaderboard {
|
| 340 |
+
margin-top: 30px;
|
| 341 |
+
border-radius: 12px;
|
| 342 |
overflow: hidden;
|
| 343 |
border: 1px solid #e5eff2;
|
| 344 |
background: #f9f9f9;
|
| 345 |
}
|
| 346 |
|
| 347 |
+
/* Footer */
|
| 348 |
footer {
|
| 349 |
+
background: linear-gradient(135deg, #6a1b9a, #8e44ad);
|
|
|
|
|
|
|
| 350 |
color: #ffffff;
|
| 351 |
+
text-align: center;
|
| 352 |
+
padding: 40px 20px;
|
| 353 |
+
margin-top: 30px;
|
| 354 |
+
border-radius: 12px;
|
| 355 |
+
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
footer h2 {
|
| 359 |
+
font-size: 1.8em;
|
| 360 |
+
margin-bottom: 15px;
|
| 361 |
+
}
|
| 362 |
+
|
| 363 |
+
footer p {
|
| 364 |
+
font-size: 1.1em;
|
| 365 |
+
line-height: 1.6;
|
| 366 |
+
margin-bottom: 20px;
|
| 367 |
+
}
|
| 368 |
+
|
| 369 |
+
footer .social-links {
|
| 370 |
+
display: flex;
|
| 371 |
+
justify-content: center;
|
| 372 |
+
gap: 15px;
|
| 373 |
margin-top: 20px;
|
| 374 |
+
}
|
| 375 |
+
|
| 376 |
+
footer .social-links a {
|
| 377 |
+
text-decoration: none;
|
| 378 |
+
font-size: 1.1em;
|
| 379 |
+
padding: 10px 20px;
|
| 380 |
+
border-radius: 8px;
|
| 381 |
+
font-weight: bold;
|
| 382 |
+
background: #ffffff;
|
| 383 |
+
color: #6a1b9a;
|
| 384 |
+
transition: transform 0.3s, background 0.3s;
|
| 385 |
+
}
|
| 386 |
+
|
| 387 |
+
footer .social-links a:hover {
|
| 388 |
+
background: #64b5f6;
|
| 389 |
+
color: #ffffff;
|
| 390 |
+
transform: scale(1.1);
|
| 391 |
}
|
| 392 |
"""
|
| 393 |
|