import dash from dash import html import dash_bootstrap_components as dbc app = dash.Dash( __name__, use_pages=True, external_stylesheets=[dbc.themes.DARKLY, dbc.icons.BOOTSTRAP], suppress_callback_exceptions=True ) server = app.server # Navbar navbar = dbc.Navbar( dbc.Container([ html.A( dbc.Row([ dbc.Col(html.I(className="bi bi-bank text-info fs-3")), dbc.Col(dbc.NavbarBrand("BANKING AI PORTAL", className="ms-2 fw-bold")), ], align="center", className="g-0"), href="/", style={"textDecoration": "none"} ), dbc.Nav([ dbc.NavLink("Predict Fraud", href="/prediction", active="exact"), ], navbar=True, className="ms-auto") ], fluid=True), dark=True, color="#111011", sticky="top" ) # Footer footer = html.Footer( html.Div( dbc.Container([ html.Div([ html.Span("© ", className="me-1"), html.Span("Latreche Sara", className="text-info fw-semibold"), html.Span(" — All rights reserved.") ], className="text-center text-white-50") ]), className="modern-footer py-4" ) ) # App Layout app.layout = html.Div([ navbar, html.Div(dash.page_container, style={"minHeight": "85vh"}), footer ], style={"backgroundColor": "#F855E2", "display": "flex", "flexDirection": "column", "minHeight": "100vh"}) if __name__ == "__main__": app.run(debug=True)