Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -24,6 +24,38 @@ def load_hero():
|
|
| 24 |
return Image.open(IMG_PATH)
|
| 25 |
|
| 26 |
with gr.Blocks(css=CUSTOM_CSS) as demo:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
with gr.Row():
|
| 28 |
with gr.Column(scale=6):
|
| 29 |
gr.Markdown("""
|
|
|
|
| 24 |
return Image.open(IMG_PATH)
|
| 25 |
|
| 26 |
with gr.Blocks(css=CUSTOM_CSS) as demo:
|
| 27 |
+
.gradio-container > div:first-child {
|
| 28 |
+
border-bottom: 1px solid #e5e7eb;
|
| 29 |
+
padding-bottom: 20px;
|
| 30 |
+
margin-bottom: 40px;
|
| 31 |
+
}
|
| 32 |
+
# ---------- NAVBAR ----------
|
| 33 |
+
with gr.Row():
|
| 34 |
+
with gr.Column(scale=2):
|
| 35 |
+
gr.HTML(
|
| 36 |
+
"""
|
| 37 |
+
<div style="display:flex; align-items:center;">
|
| 38 |
+
<img src="file=assets/logo.png"
|
| 39 |
+
style="height:40px; margin-right:10px;">
|
| 40 |
+
<span style="font-weight:700; font-size:18px;">Election Archive</span>
|
| 41 |
+
</div>
|
| 42 |
+
"""
|
| 43 |
+
)
|
| 44 |
+
|
| 45 |
+
with gr.Column(scale=6):
|
| 46 |
+
gr.Markdown("")
|
| 47 |
+
|
| 48 |
+
with gr.Column(scale=4):
|
| 49 |
+
gr.HTML(
|
| 50 |
+
"""
|
| 51 |
+
<div style="display:flex; justify-content:flex-end; gap:30px; font-weight:500;">
|
| 52 |
+
<span style="cursor:pointer;">Home</span>
|
| 53 |
+
<span style="cursor:pointer;">Archive</span>
|
| 54 |
+
<span style="cursor:pointer;">Upload</span>
|
| 55 |
+
</div>
|
| 56 |
+
"""
|
| 57 |
+
)
|
| 58 |
+
|
| 59 |
with gr.Row():
|
| 60 |
with gr.Column(scale=6):
|
| 61 |
gr.Markdown("""
|