Commit ac614a0c authored by Myriam Begel's avatar Myriam Begel

Ajout navigation

parent 57449509
......@@ -5,7 +5,7 @@ import os
from dotenv import load_dotenv
load_dotenv()
external_stylesheets = [dbc.themes.BOOTSTRAP]
external_stylesheets = [dbc.themes.BOOTSTRAP, 'https://use.fontawesome.com/releases/v5.7.1/css/all.css']
server = Flask(__name__)
server.secret_key = os.getenv('SECRET_KEY')
......
......@@ -29,8 +29,10 @@ with open('../figures/%s_contributeurs_per100000.html' % shortname, 'r') as f:
map_contrib_100000 = f.read()
layout = html.Div([
dcc.Link(
children=html.I(className='fa fa-angle-left h1'),
href='/grand-debat/', id='back-button'),
html.H3(children='Démocratie et Citoyenneté'),
# Répartition géographique des contributeurs
html.H4('Répartition géographique des contributions'),
html.Iframe(
......
......@@ -23,6 +23,9 @@ with open('../figures/%s_map_per100000.html' % shortname, 'r') as f:
map_contrib_100000 = f.read()
layout = html.Div([
dcc.Link(
children=html.I(className='fa fa-angle-left h1'),
href='/grand-debat/', id='back-button'),
html.H3(children='Débats locaux'),
# Répartition géographique des contributeurs
......
......@@ -32,6 +32,9 @@ with open('../figures/%s_contributeurs_per100000.html' % shortname, 'r') as f:
map_contrib_100000 = f.read()
layout = html.Div([
dcc.Link(
children=html.I(className='fa fa-angle-left h1'),
href='/grand-debat/', id='back-button'),
html.H3(children='La fiscalité et les dépenses publiques'),
# Répartition géographique des contributeurs
......
......@@ -36,6 +36,9 @@ with open('../figures/%s_Q204_map.html' % shortname, 'r') as f:
map_q204 = f.read()
layout = html.Div([
dcc.Link(
children=html.I(className='fa fa-angle-left h1'),
href='/grand-debat/', id='back-button'),
html.H3(children='Organisation de l\'État et des services publiques'),
# Répartition géographique des contributeurs
......
......@@ -36,6 +36,9 @@ with open('../figures/transition_q154_map.html', 'r') as f:
map_q154 = f.read()
layout = html.Div([
dcc.Link(
children=html.I(className='fa fa-angle-left h1'),
href='/grand-debat/', id='back-button'),
html.H3(children='La transition écologique'),
# Répartition géographique des contributeurs
......
......@@ -9,3 +9,9 @@ iframe {
h4, h5 {
color: gray;
}
#back_button {
position: fixed;
left: 50px;
top: 50px;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment