Spaces:
Running
Running
Commit
·
262ec4b
1
Parent(s):
d33b91e
Refine tips layout
Browse files
app.py
CHANGED
|
@@ -400,8 +400,26 @@ with gr.Blocks(css="""
|
|
| 400 |
font-family: 'Poppins', sans-serif !important;
|
| 401 |
font-weight: 400 !important;
|
| 402 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 403 |
""") as demo:
|
| 404 |
gr.Markdown("# ScreenCoder: Screenshot to Code")
|
|
|
|
| 405 |
with gr.Row():
|
| 406 |
with gr.Column(scale=1):
|
| 407 |
gr.Markdown("## Step 1: Provide an Image")
|
|
@@ -419,7 +437,6 @@ with gr.Blocks(css="""
|
|
| 419 |
|
| 420 |
with gr.Column(scale=2):
|
| 421 |
gr.Markdown("## Preview Area")
|
| 422 |
-
gr.Markdown("**Tips**: \n- Use the sliders below to adjust the preview size and zoom level for better viewing experience. \n- Adjust the page's viewing angle by swiping up, down, left, or right. \n- Click the button at the bottom to download the generated package.")
|
| 423 |
with gr.Tabs():
|
| 424 |
with gr.TabItem("Preview With Placeholder"):
|
| 425 |
with gr.Row():
|
|
|
|
| 400 |
font-family: 'Poppins', sans-serif !important;
|
| 401 |
font-weight: 400 !important;
|
| 402 |
}
|
| 403 |
+
|
| 404 |
+
.tips-subtitle {
|
| 405 |
+
font-size: 0.95rem !important;
|
| 406 |
+
color: #6b7280 !important;
|
| 407 |
+
font-weight: 400 !important;
|
| 408 |
+
margin-bottom: 1.5rem !important;
|
| 409 |
+
padding: 0.75rem 1rem !important;
|
| 410 |
+
background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
|
| 411 |
+
border-radius: 8px !important;
|
| 412 |
+
border-left: 4px solid #3b82f6 !important;
|
| 413 |
+
line-height: 1.5 !important;
|
| 414 |
+
}
|
| 415 |
+
|
| 416 |
+
.tips-subtitle strong {
|
| 417 |
+
color: #3b82f6 !important;
|
| 418 |
+
font-weight: 600 !important;
|
| 419 |
+
}
|
| 420 |
""") as demo:
|
| 421 |
gr.Markdown("# ScreenCoder: Screenshot to Code")
|
| 422 |
+
gr.Markdown("**💡 Tips**: Use the sliders to adjust preview size and zoom level. Swipe to change viewing angle. Click download button to get the package.", elem_classes=["tips-subtitle"])
|
| 423 |
with gr.Row():
|
| 424 |
with gr.Column(scale=1):
|
| 425 |
gr.Markdown("## Step 1: Provide an Image")
|
|
|
|
| 437 |
|
| 438 |
with gr.Column(scale=2):
|
| 439 |
gr.Markdown("## Preview Area")
|
|
|
|
| 440 |
with gr.Tabs():
|
| 441 |
with gr.TabItem("Preview With Placeholder"):
|
| 442 |
with gr.Row():
|