diff --git a/src/app.py b/src/app.py index 2e0873b..c30949f 100644 --- a/src/app.py +++ b/src/app.py @@ -3,7 +3,11 @@ import logging import dash_bootstrap_components as dbc from dash import Dash, dcc, html, page_container, page_registry -app = Dash(external_stylesheets=[dbc.themes.UNITED], title="decp.info", use_pages=True) +app = Dash(external_stylesheets=[dbc.themes.SIMPLEX], title="decp.info", use_pages=True) +# COSMO (belle font, blue), +# UNITED (rouge, ubuntu font), +# LUMEN (gros séparateur, blue clair), +# SIMPLEX (rouge, séparateur) logger = logging.getLogger("decp.info") logging.basicConfig( diff --git a/src/assets/style.css b/src/assets/style.css index 1a2fda5..6639f1f 100644 --- a/src/assets/style.css +++ b/src/assets/style.css @@ -51,7 +51,7 @@ td[data-dash-column="objet"] { .navbar { width: 100%; height: 100px; - padding: 10px; + padding: 0 10px; } a.nav { @@ -68,3 +68,7 @@ a.nav { h3 { display: inline; } + +#_pages_content { + padding-top: 28px; +} diff --git a/src/pages/home.py b/src/pages/home.py index 8a89250..8aeae18 100644 --- a/src/pages/home.py +++ b/src/pages/home.py @@ -195,7 +195,6 @@ def update_table(page_current, page_size, filter_query, data_timestamp): start_row = page_current * page_size # end_row = (page_current + 1) * page_size dff = dff.slice(start_row, page_size) - # print("dff_sliced:", lff.select("titulaire.typeId")) dicts = dff.to_dicts() return dicts, data_timestamp + 1, nb_rows diff --git a/src/pages/statistiques.py b/src/pages/statistiques.py index 9a7f54f..d9c4f1b 100644 --- a/src/pages/statistiques.py +++ b/src/pages/statistiques.py @@ -59,7 +59,19 @@ layout = [ className="container", children=[ html.H2(title), - html.Div(children=[dcc.Graph(figure=fig)]), + dcc.Markdown(""" + Si nous disposons de beaucoup de données pour certains départements, pour d'autres les sources de DECP doivent encore être identifiées et ajoutées. + + Par exemple, les données des plateformes Atexo [ne sont pas encore présentes](https://github.com/ColinMaudry/decp-processing/issues/57). + """), + dcc.Loading( + overlay_style={"visibility": "visible", "filter": "blur(2px)"}, + id="loading-1", + type="default", + children=[ + html.Div(children=[dcc.Graph(figure=fig)]), + ], + ), ], ) ]