116 lines
3.6 KiB
HTML
116 lines
3.6 KiB
HTML
<!-- templates/layout.html -->
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Financial Dashboard</title>
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet">
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js"></script>
|
|
<script src="https://cdn.jsdelivr.net/npm/plotly.js-dist@2.12.1/plotly.min.js"></script>
|
|
<style>
|
|
body {
|
|
background-color: #f5f5f5;
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
}
|
|
.navbar {
|
|
background-color: #3f51b5;
|
|
}
|
|
.navbar-brand {
|
|
font-weight: bold;
|
|
}
|
|
.card {
|
|
border-radius: 10px;
|
|
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
|
margin-bottom: 20px;
|
|
}
|
|
.card-header {
|
|
background-color: rgba(63, 81, 181, 0.1);
|
|
font-weight: bold;
|
|
}
|
|
.metric-card {
|
|
text-align: center;
|
|
padding: 20px;
|
|
transition: transform 0.3s;
|
|
}
|
|
.metric-card:hover {
|
|
transform: translateY(-5px);
|
|
}
|
|
.metric-value {
|
|
font-size: 24px;
|
|
font-weight: bold;
|
|
margin: 10px 0;
|
|
}
|
|
.metric-label {
|
|
font-size: 14px;
|
|
color: #666;
|
|
}
|
|
.positive {
|
|
color: #4CAF50;
|
|
}
|
|
.negative {
|
|
color: #FF5252;
|
|
}
|
|
.neutral {
|
|
color: #2196F3;
|
|
}
|
|
.chart-container {
|
|
min-height: 400px;
|
|
}
|
|
.table-responsive {
|
|
overflow-x: auto;
|
|
}
|
|
.footer {
|
|
background-color: #f1f1f1;
|
|
padding: 20px 0;
|
|
margin-top: 40px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-expand-lg navbar-dark mb-4">
|
|
<div class="container">
|
|
<a class="navbar-brand" href="/">Financial Dashboard</a>
|
|
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
|
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/">Dashboard</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link" href="/transactions">Transactions</a>
|
|
</li>
|
|
</ul>
|
|
<div class="d-flex">
|
|
<a href="/clear" class="btn btn-outline-light">Clear Data</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="container mb-5">
|
|
{% with messages = get_flashed_messages() %}
|
|
{% if messages %}
|
|
{% for message in messages %}
|
|
<div class="alert alert-info alert-dismissible fade show" role="alert">
|
|
{{ message }}
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
|
</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{% block content %}{% endblock %}
|
|
</div>
|
|
|
|
<footer class="footer">
|
|
<div class="container text-center">
|
|
<p>Financial Dashboard - Powered by Flask and Plotly</p>
|
|
</div>
|
|
</footer>
|
|
</body>
|
|
</html>
|
|
|