190 lines
6.8 KiB
HTML
190 lines
6.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en" data-bs-theme="light">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="description" content="Personal finance dashboard showing income, expenses, and transactions">
|
|
<title>FinanceTracker | Investments</title>
|
|
|
|
<!-- Bootstrap -->
|
|
<link rel="stylesheet" th:href="@{/assets/bootstrap/css/bootstrap.min.css}">
|
|
|
|
<!-- Material Icons -->
|
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
|
|
<style>
|
|
:root {
|
|
--positive-bg: rgba(40, 167, 69, 0.12);
|
|
--negative-bg: rgba(220, 53, 69, 0.12);
|
|
}
|
|
|
|
body {
|
|
background-color: #f8f9fc;
|
|
}
|
|
|
|
.txn-positive td {
|
|
background-color: var(--positive-bg);
|
|
}
|
|
|
|
.txn-negative td {
|
|
background-color: var(--negative-bg);
|
|
}
|
|
|
|
.numeric {
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.chart-area {
|
|
position: relative;
|
|
min-height: 260px;
|
|
}
|
|
|
|
.card {
|
|
border: none;
|
|
border-radius: 0.75rem;
|
|
}
|
|
|
|
.card-header {
|
|
background: transparent;
|
|
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
|
}
|
|
|
|
.material-icons {
|
|
vertical-align: middle;
|
|
font-size: 20px;
|
|
}
|
|
|
|
.insight-item {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.75rem;
|
|
border-radius: 0.5rem;
|
|
background-color: #f8f9fc;
|
|
}
|
|
|
|
.insight-item+.insight-item {
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.insight-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background-color: #e9ecef;
|
|
color: #495057;
|
|
}
|
|
|
|
.scroll-to-top {
|
|
position: fixed;
|
|
right: 1rem;
|
|
bottom: 1rem;
|
|
width: 40px;
|
|
height: 40px;
|
|
background-color: #0d6efd;
|
|
color: #fff;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
text-decoration: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body id="page-top">
|
|
<div id="wrapper">
|
|
|
|
<!-- Sidebar -->
|
|
<div th:replace="~{fragments/sidebar-nav :: sidebar-nav}"></div>
|
|
|
|
<div id="content-wrapper" class="d-flex flex-column">
|
|
<div id="content">
|
|
|
|
<!-- Topbar -->
|
|
<div th:replace="~{fragments/topbar :: topbar}"></div>
|
|
|
|
<div class="container-fluid px-4">
|
|
|
|
<!-- Header -->
|
|
<div class="d-flex justify-content-between align-items-center mb-4">
|
|
<h3 class="mb-0">Investments</h3>
|
|
<!-- <a th:hx-get="@{/summary}" hx-trigger="click" hx-swap="none" class="btn btn-sm btn-primary">
|
|
<span class="material-icons me-1">description</span>
|
|
Generate Report
|
|
</a> -->
|
|
</div>
|
|
|
|
<div class="row mb-4">
|
|
<div th:each="rate : ${currRates}" class="col-lg-2 col-md-3 col-sm-4 mb-2 text-center">
|
|
<span th:replace="~{fragments/investments/curr-badges :: curr-pill(currRate=${rate})}">
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row m-1 p-1">
|
|
<div class="col-lg-12">
|
|
<div class="card shadow">
|
|
<div class="card-header">
|
|
<div class="row">
|
|
<div class="col-lg-4 ">
|
|
<span class="fw-bold text-primary mb-1">Historical Rates</span>
|
|
</div>
|
|
<div class="col-lg-4 mw-50">
|
|
<div class="btn-group d-flex justify-content-center mb-1" role="group" aria-label="Time range">
|
|
<input type="radio" class="btn-check" name="options" id="option1"
|
|
autocomplete="off" checked>
|
|
<label class="btn btn-secondary" for="option1">Week</label>
|
|
|
|
<input type="radio" class="btn-check" name="options" id="option2"
|
|
autocomplete="off">
|
|
<label class="btn btn-secondary" for="option2">Month</label>
|
|
|
|
<input type="radio" class="btn-check" name="options" id="option3"
|
|
autocomplete="off">
|
|
<label class="btn btn-secondary" for="option3">Year</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-4 d-flex justify-content-end">
|
|
<select class="form-select" name="" id="" style="max-width: 200px;">
|
|
<option th:each="currency : ${allCurrencies}"
|
|
th:value="${currency.code}"
|
|
th:text="${currency.code + ' - ' + currency.currencyName}">Test
|
|
</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<canvas id="HistoricalRatesChart"></canvas>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Footer -->
|
|
<div th:replace="~{fragments/footer :: footer}"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<a class="scroll-to-top rounded" href="#page-top">
|
|
<span class="material-icons">keyboard_arrow_up</span>
|
|
</a>
|
|
|
|
<!-- Scripts -->
|
|
<script src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.8/dist/htmx.min.js"></script>
|
|
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
|
|
<script src="assets/js/chart.min.js"></script>
|
|
<script src="assets/js/bs-init.js"></script>
|
|
<script src="assets/js/theme.js"></script>
|
|
</body>
|
|
|
|
</html> |