Iisakki Rotko
commited on
Commit
•
b243d3f
1
Parent(s):
74c8dfc
feat: links on top bar
Browse files- style.css +11 -0
- wanderlust.py +48 -0
style.css
CHANGED
@@ -46,6 +46,10 @@
|
|
46 |
justify-content: center;
|
47 |
}
|
48 |
|
|
|
|
|
|
|
|
|
49 |
@media screen and (max-aspect-ratio: 1/1) {
|
50 |
.ui-container {
|
51 |
padding: 30px;
|
@@ -65,4 +69,11 @@
|
|
65 |
.map-container {
|
66 |
width: unset;
|
67 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
68 |
}
|
|
|
46 |
justify-content: center;
|
47 |
}
|
48 |
|
49 |
+
div:has(> b):has(a){
|
50 |
+
display: none !important;
|
51 |
+
}
|
52 |
+
|
53 |
@media screen and (max-aspect-ratio: 1/1) {
|
54 |
.ui-container {
|
55 |
padding: 30px;
|
|
|
69 |
.map-container {
|
70 |
width: unset;
|
71 |
}
|
72 |
+
|
73 |
+
.link-container{
|
74 |
+
position: absolute;
|
75 |
+
bottom: 0;
|
76 |
+
width: 100%;
|
77 |
+
justify-content: end;
|
78 |
+
}
|
79 |
}
|
wanderlust.py
CHANGED
@@ -274,6 +274,54 @@ def Page():
|
|
274 |
unsafe_innerHTML="Wanderlust",
|
275 |
style={"display": "inline-block"},
|
276 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
with solara.Row(
|
278 |
justify="space-between", style={"flex-grow": "1"}, classes=["container-row"]
|
279 |
):
|
|
|
274 |
unsafe_innerHTML="Wanderlust",
|
275 |
style={"display": "inline-block"},
|
276 |
)
|
277 |
+
with solara.Row(
|
278 |
+
gap="30px",
|
279 |
+
style={"align-items": "center"},
|
280 |
+
classes=["link-container"],
|
281 |
+
justify="end",
|
282 |
+
):
|
283 |
+
with solara.Row(gap="5px", style={"align-items": "center"}):
|
284 |
+
solara.Text("Source Code:", style="font-weight: bold;")
|
285 |
+
# target="_blank" links are still easiest to do via ipyvuetify
|
286 |
+
with solara.v.Btn(
|
287 |
+
icon=True,
|
288 |
+
tag="a",
|
289 |
+
attributes={
|
290 |
+
"href": "https://github.com/widgetti/wanderlust",
|
291 |
+
"title": "Wanderlust Source Code",
|
292 |
+
"target": "_blank",
|
293 |
+
},
|
294 |
+
):
|
295 |
+
solara.v.Icon(children=["mdi-github-circle"])
|
296 |
+
with solara.Row(gap="5px", style={"align-items": "center"}):
|
297 |
+
solara.Text("Powered by Solara:", style="font-weight: bold;")
|
298 |
+
with solara.v.Btn(
|
299 |
+
icon=True,
|
300 |
+
tag="a",
|
301 |
+
attributes={
|
302 |
+
"href": "https://solara.dev/",
|
303 |
+
"title": "Solara",
|
304 |
+
"target": "_blank",
|
305 |
+
},
|
306 |
+
):
|
307 |
+
solara.HTML(
|
308 |
+
tag="img",
|
309 |
+
attributes={
|
310 |
+
"src": "https://solara.dev/static/public/logo.svg",
|
311 |
+
"width": "24px",
|
312 |
+
},
|
313 |
+
)
|
314 |
+
with solara.v.Btn(
|
315 |
+
icon=True,
|
316 |
+
tag="a",
|
317 |
+
attributes={
|
318 |
+
"href": "https://github.com/widgetti/solara",
|
319 |
+
"title": "Solara Source Code",
|
320 |
+
"target": "_blank",
|
321 |
+
},
|
322 |
+
):
|
323 |
+
solara.v.Icon(children=["mdi-github-circle"])
|
324 |
+
|
325 |
with solara.Row(
|
326 |
justify="space-between", style={"flex-grow": "1"}, classes=["container-row"]
|
327 |
):
|