Spaces:
Running
Running
File size: 2,957 Bytes
35527e2 |
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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Training Load Data Visualization</title>
<link rel="stylesheet" href="/src/style.css">
</head>
<body>
<div id="app">
<header>
<h1>Training Load Data Visualization</h1>
</header>
<main>
<section id="upload-section">
<h2>Upload Garmin Activities CSV</h2>
<div class="upload-container">
<div class="ftp-input-container">
<label for="ftp-input">
Functional Threshold Power (FTP)
</label>
<input type="number" id="ftp-input" value="343" min="0" step="1" placeholder="343" />
<span class="ftp-unit">Watts</span>
</div>
<input type="file" id="csv-upload" accept=".csv" />
<label for="csv-upload" class="upload-label">
Choose CSV File
</label>
<div id="upload-status"></div>
</div>
</section>
<section id="filter-section" class="hidden">
<div class="filter-container">
<label class="filter-checkbox">
<input type="checkbox" id="running-only-filter" />
<span>π Running only</span>
</label>
</div>
</section>
<section id="charts-section" class="hidden">
<div class="chart-container">
<h2>Distance-based ACWR</h2>
<canvas id="distance-chart"></canvas>
</div>
<div class="chart-container">
<h2>Duration-based ACWR</h2>
<canvas id="duration-chart"></canvas>
</div>
<div class="chart-container">
<h2>TSS-based ACWR</h2>
<canvas id="tss-chart"></canvas>
</div>
<div class="legend">
<div class="legend-item">
<span class="legend-color low"></span>
<span>ACWR < 0.8 - Detraining risk</span>
</div>
<div class="legend-item">
<span class="legend-color optimal"></span>
<span>ACWR 0.8 - 1.3 - Optimal</span>
</div>
<div class="legend-item">
<span class="legend-color high"></span>
<span>ACWR > 1.5 - Injury risk</span>
</div>
</div>
</section>
</main>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html> |