Hello guys,
I was thinking of updating my index site a bit,but I don’t have any clear ideas about it.
Do you guys have any ideas what do I update my code with so it looks a bit modern and better?
this is how my index page looks right now:
This is my code:
mport dash_core_components as dcc
import dash_bootstrap_components as dbc
import dash_html_components as html
from dash.dependencies import Input, Output
from app import app
content = html.Div(
[
html.Div(className="container", children=[
html.H1("BDE Manufacturing Report CZ", className="my-4 text-center display-4"),
dbc.Row(style={"margin-bottom":"25px"},
children=[
html.Div(className="col-lg-3", children=[
html.Div(className="card h-100 shadow", children=[
html.Div(className="card-body", children=[
html.H5(className="card-title", children=[
html.A(href="/apps/Downtime_and_Reasons", children=[
html.Div("Downtime and Reasons", style={"text-align":"center"}),
],)
]),
]),
]),
]),
html.Div(className="col-lg-3", children=[
html.Div(className="card h-100 shadow", children=[
html.Div(className="card-body", children=[
html.H5(className="card-title", children=[
html.A(href="/apps/Production_history", children=[
html.Div("Production history", style={"text-align":"center"}),
],)
]),
]),
])
]),
html.Div(className="col-lg-3", children=[
html.Div(className="card h-100 shadow", children=[
html.Div(className="card-body", children=[
html.H5(className="card-title", children=[
html.A(href="/apps/Quantity_and_Scrap", children=[
html.Div("Quantity and Scrap", style={"text-align":"center"}),
],)
]),
]),
])
]),
html.Div(className="col-lg-3", children=[
html.Div(className="card h-100 shadow", children=[
html.Div(className="card-body", children=[
html.H5(className="card-title", children=[
html.A(href="/apps/User_Log", children=[
html.Div("User Log", style={"text-align":"center"}),
],)
]),
]),
])
]),
]),
dbc.Row(children=[
html.Div(className="col-lg-3", children=[
html.Div(className="card h-100 shadow", children=[
html.Div(className="card-body", children=[
html.H5(className="card-title", children=[
html.A(href="/apps/Error_Log", children=[
html.Div("Error Log", style={"text-align":"center"}),
],)
]),
]),
])
]),
html.Div(className="col-lg-3", children=[
html.Div(className="card h-100 shadow", children=[
html.Div(className="card-body", children=[
html.H5(className="card-title", children=[
html.A(href="/apps/Parameter_Log", children=[
html.Div("Parameter Log", style={"text-align":"center"}),
],)
]),
]),
])
]),
html.Div(className="col-lg-3", children=[
html.Div(className="card h-100 shadow", children=[
html.Div(className="card-body", children=[
html.H5(className="card-title", children=[
html.A(href="/apps/Downtime_Log", children=[
html.Div("Downtime Log", style={"text-align":"center"}),
],)
]),
]),
])
]),
html.Div(className="col-lg-3", children=[
html.Div(className="card h-100 shadow", children=[
html.Div(className="card-body", children=[
html.H5(className="card-title", children=[
html.A(href="/apps/Overall_equipment_effectiveness", children=[
html.Div("OEE", style={"text-align":"center"}),
],)
]),
]),
])
]),
]),
]),
],
id="content"
)
layout = html.Div([content])