Compare commits
2 Commits
f92d9344e3
...
5b9da3adce
Author | SHA1 | Date | |
---|---|---|---|
5b9da3adce | |||
c057b961db |
132
src/report.html
Normal file
132
src/report.html
Normal file
@ -0,0 +1,132 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>TrACreport - Report Output</title>
|
||||
<style>
|
||||
body {
|
||||
font-family: sans-serif;
|
||||
}
|
||||
|
||||
.preface {
|
||||
text-align: center;
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.train-container {
|
||||
width: 75%;
|
||||
margin: 2em auto;
|
||||
padding: 1em;
|
||||
border-radius: 8px;
|
||||
}
|
||||
|
||||
.unit-number {
|
||||
text-align: center;
|
||||
margin-bottom: 1em;
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
.vehicle-container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
gap: 0.5em;
|
||||
}
|
||||
|
||||
.coach {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.vehicle-number {
|
||||
margin-bottom: 0.5em;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.vehicle-box {
|
||||
width: 100%;
|
||||
height: 50px;
|
||||
background-color: #e0e0e0;
|
||||
border: 2px solid black;
|
||||
border-radius: 6px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 0 6px;
|
||||
font-size: 1.2em;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.cab-marker {
|
||||
width: 1.5em;
|
||||
text-align: center;
|
||||
font-weight: bold;
|
||||
background-color: #d0d0f0;
|
||||
border-radius: 4px;
|
||||
padding: 2px;
|
||||
}
|
||||
|
||||
.report-count {
|
||||
flex: 1;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.comments-box {
|
||||
margin-top: 1.5em;
|
||||
padding: 1em;
|
||||
background-color: #f9f9f9;
|
||||
border: 1px solid #aaa;
|
||||
border-radius: 6px;
|
||||
}
|
||||
|
||||
.comments-box h2 {
|
||||
margin-top: 0;
|
||||
font-size: 1.2em;
|
||||
border-bottom: 1px solid #ccc;
|
||||
padding-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.comments-box p {
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="preface">
|
||||
<h1>TrACreport</h1>
|
||||
<h2>Report period: 09/06/2025-09/07/2025</h2>
|
||||
<p>Total reports received for each vehicle in the West fleet</p>
|
||||
<p>158 cabs are not recorded as cab cooling is disabled for Guards</p>
|
||||
</div>
|
||||
<div class="train-container">
|
||||
<h1 class="unit-number">158747</h1>
|
||||
<div class="vehicle-container">
|
||||
<div class="coach">
|
||||
<div class="vehicle-number">57747</div>
|
||||
<div class="vehicle-box">
|
||||
<div class="cab-marker">0</div>
|
||||
<div class="report-count">2</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="coach">
|
||||
<div class="vehicle-number">51747</div>
|
||||
<div class="vehicle-box">
|
||||
<div class="report-count">4</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="coach">
|
||||
<div class="vehicle-number">52747</div>
|
||||
<div class="vehicle-box">
|
||||
<div class="report-count">5</div>
|
||||
<div class="cab-marker">0</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="comments-box">
|
||||
<h2>Comments</h2>
|
||||
<p>Why bother reporting?</p>
|
||||
<p>Blue button in cab not working</p>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -54,7 +54,6 @@ export async function organiseReports(): Promise<ReportSummary> {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
(async () => {
|
||||
try {
|
||||
const summary = await organiseReports();
|
||||
|
Loading…
x
Reference in New Issue
Block a user