colors = {
‘background’: ‘#111111’,
‘bodyColor’:’#F2DFCE’,
‘text’: ‘#7FDBFF’
}
网页头部设计
def get_page_heading_style():
return {‘backgroundColor’: colors[‘background’]}
网页标题设计
def get_page_heading_title():
return html.H1(children=‘COVID-19 Dashboard’,
style={
‘textAlign’: ‘center’,
‘color’: colors[‘text’]
})http://www.yesesport.com/
网页副标题设计
def get_page_heading_subtitle():
return html.Div(children=‘Visualize Covid-19 data generated from sources all over the world.’,
style={
‘textAlign’:‘center’,
‘color’:colors[‘text’]
})