File size: 1,556 Bytes
711c1b2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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)