Spaces:
Sleeping
Sleeping
Commit
·
ac730ad
1
Parent(s):
615fd07
feat: Add a demo video link to the UI and enhance styling for the workflow overview, main cards, and overall page container.
Browse files- app.py +5 -1
- vapt_styles.css +40 -0
app.py
CHANGED
|
@@ -219,7 +219,7 @@ def create_gradio_interface() -> gr.Blocks:
|
|
| 219 |
""",
|
| 220 |
elem_id="header-title",
|
| 221 |
)
|
| 222 |
-
with gr.Column(scale=4):
|
| 223 |
gr.Markdown(
|
| 224 |
"""
|
| 225 |
**Workflow Overview**
|
|
@@ -230,6 +230,10 @@ def create_gradio_interface() -> gr.Blocks:
|
|
| 230 |
4. Dashboard + Tutor help you interpret and fix issues
|
| 231 |
""",
|
| 232 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 233 |
|
| 234 |
# --- Main two-column layout ---
|
| 235 |
with gr.Row():
|
|
|
|
| 219 |
""",
|
| 220 |
elem_id="header-title",
|
| 221 |
)
|
| 222 |
+
with gr.Column(scale=4, elem_id="workflow-overview-card"):
|
| 223 |
gr.Markdown(
|
| 224 |
"""
|
| 225 |
**Workflow Overview**
|
|
|
|
| 230 |
4. Dashboard + Tutor help you interpret and fix issues
|
| 231 |
""",
|
| 232 |
)
|
| 233 |
+
with gr.Row(elem_id="demo-video-row"):
|
| 234 |
+
gr.HTML(
|
| 235 |
+
"""<div style="font-size: 1.1rem; margin: 0; padding: 0.2rem 0;">📺 <strong>New to VAPT Agent?</strong> Watch our <a href="https://youtu.be/wFgW_o48pw8?si=ywttNSKFVvViPdl5" target="_blank" style="color: #0066cc; text-decoration: none; font-weight: 500;">DEMO VIDEO</a> to learn how to use this tool effectively.</div>"""
|
| 236 |
+
)
|
| 237 |
|
| 238 |
# --- Main two-column layout ---
|
| 239 |
with gr.Row():
|
vapt_styles.css
CHANGED
|
@@ -267,4 +267,44 @@ body {
|
|
| 267 |
#severity-col .gr-plot {
|
| 268 |
max-width: 480px;
|
| 269 |
width: 100%;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 270 |
}
|
|
|
|
| 267 |
#severity-col .gr-plot {
|
| 268 |
max-width: 480px;
|
| 269 |
width: 100%;
|
| 270 |
+
}
|
| 271 |
+
|
| 272 |
+
/* Demo video row with divider */
|
| 273 |
+
#demo-video-row {
|
| 274 |
+
margin-top: 0 !important;
|
| 275 |
+
margin-bottom: 0.75rem !important;
|
| 276 |
+
padding: 0.75rem 0 0.85rem 0 !important;
|
| 277 |
+
background: linear-gradient(to right, #e0f2fe, #dbeafe, #e0f2fe) !important;
|
| 278 |
+
border-radius: 8px;
|
| 279 |
+
border-bottom: 2px solid #e5e7eb;
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
#demo-video-row>div {
|
| 283 |
+
padding: 0 !important;
|
| 284 |
+
}
|
| 285 |
+
|
| 286 |
+
/* Workflow Overview card styling */
|
| 287 |
+
#workflow-overview-card {
|
| 288 |
+
background: #f9fafb !important;
|
| 289 |
+
border: 1px solid #e5e7eb;
|
| 290 |
+
border-radius: 12px;
|
| 291 |
+
padding: 16px 18px;
|
| 292 |
+
box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
/* Add left accent border to main cards */
|
| 296 |
+
#config-card {
|
| 297 |
+
border-left: 4px solid #3b82f6 !important;
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
#results-card {
|
| 301 |
+
border-left: 4px solid #ea580c !important;
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
/* Page frame - subtle border and elevated shadow */
|
| 305 |
+
.gradio-container {
|
| 306 |
+
border: 1px solid #d1d5db;
|
| 307 |
+
box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.05);
|
| 308 |
+
border-radius: 16px;
|
| 309 |
+
background: #ffffff !important;
|
| 310 |
}
|