-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathapp.py
60 lines (55 loc) · 1.76 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
from dash import Dash, html, dcc
import dash
import dash_bootstrap_components as dbc
import dash_mantine_components as dmc
from dash_iconify import DashIconify
app = Dash(__name__, use_pages=True, external_stylesheets=[dbc.themes.BOOTSTRAP])
app.title = "Amazing Zenodo Dataset Explorer"
server = app.server
n_circles = 10
app.layout = dmc.MantineProvider(
theme={"colorScheme": "dark"},
children=[
dmc.Affix(
html.A(
dmc.ThemeIcon(
DashIconify(
icon="radix-icons:github-logo",
width=22,
),
radius=30,
size=36,
variant="outline",
color="gray",
),
href="https://github.com/h4ck1ng-science/zenodo-explorer",
target="_blank",
),
position={"top": 20, "right": 20},
),
html.Div(
[
html.Div(
className="area",
children=[
html.Ul(
className="circles", children=[html.Li() for i in range(n_circles)]
),
],
style={"z-index": "-1"},
),
dcc.Store(id="dataset-url-store", data=""),
dash.page_container,
]
),
dmc.Center(
dmc.Text(
"Made with ❤️ by Carlos, Colas and Diogo for the CERN webfest 2022!",
style={"color": "white"},
),
style={"position": "absolute", "bottom": 20, "width": "100%"},
),
],
)
if __name__ == "__main__":
app.run_server(debug=True, port=8051)