mirror of
https://github.com/Gerald-Ha/HodlEye-Crypto-Price-Tracker.git
synced 2025-06-25 09:11:45 +00:00
- Adding Portfolio Page - Fixing Alarm Layout with Category - Automatically delete alarms that have expired
87 lines
2.6 KiB
HTML
87 lines
2.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
|
|
<link rel="icon" type="image/png" href="images/favicon.png" />
|
|
<title>Portfolio: Trade Summary</title>
|
|
<link rel="stylesheet" href="css/portfolio.css" />
|
|
<script defer src="js/trade_summary.js"></script>
|
|
<style>
|
|
html, body {
|
|
height: 100%;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.page-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 100vh;
|
|
}
|
|
.content {
|
|
flex: 1;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="page-container">
|
|
<div class="content">
|
|
<div class="button-grid-container">
|
|
<div class="grid-left">
|
|
<button class="price-btn" onclick="window.location.href='index.html'">Price Tracker</button>
|
|
</div>
|
|
<div class="grid-middle">
|
|
<button onclick="window.location.href='portfolio.html'">Live Portfolio</button>
|
|
<button>Trade Summary</button>
|
|
<button onclick="window.location.href='portfolio.html'">Add Transaction</button>
|
|
</div>
|
|
<div class="grid-right">
|
|
<button onclick="window.location.href='/logout'">Logout</button>
|
|
</div>
|
|
</div>
|
|
|
|
<h1>Trade Summary</h1>
|
|
|
|
<div id="tradeSummaryContainer" class="portfolio-container"></div>
|
|
</div>
|
|
<div class="bottom-bar">
|
|
<div class="bottom-bar-item">
|
|
Invest: <span id="totalTradeInvest">0 USDT</span>
|
|
</div>
|
|
<div class="bottom-bar-item">
|
|
Total Profit/Loss: <span id="totalTradeProfit">0 USDT</span>
|
|
</div>
|
|
<div class="bottom-bar-item">
|
|
% Change: <span id="totalTradePercentChange">0%</span>
|
|
</div>
|
|
<div class="bottom-bar-item">
|
|
<button onclick="openDateFilterModal()">Date</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="dateFilterModal" class="modal">
|
|
<div class="modal-content">
|
|
<span class="close" onclick="closeDateFilterModal()">×</span>
|
|
<h2>Filter time period</h2>
|
|
<div style="margin-top: 1rem;">
|
|
<label>
|
|
<input type="radio" name="dateFilterType" value="all" checked>
|
|
Show all
|
|
</label>
|
|
</div>
|
|
<div style="margin-top: 1rem;">
|
|
<label>
|
|
<input type="radio" name="dateFilterType" value="range">
|
|
Von <input type="date" id="filterFromDate">
|
|
Bis <input type="date" id="filterToDate">
|
|
</label>
|
|
</div>
|
|
<div style="margin-top: 1rem;">
|
|
<button onclick="applyDateFilter()">Apply filter</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|