-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
231 lines (206 loc) · 11.6 KB
/
index.html
File metadata and controls
231 lines (206 loc) · 11.6 KB
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Geo-Check — Gebäudedaten-Verifikation Schweiz</title>
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&display=swap" rel="stylesheet">
<!-- MapLibre GL JS -->
<link rel="stylesheet" href="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.css" />
<script src="https://unpkg.com/maplibre-gl@4.7.1/dist/maplibre-gl.js"></script>
<!-- App CSS -->
<link rel="stylesheet" href="css/tokens.css">
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<a href="#main-content" class="skip-link" data-i18n="meta.skip">Zum Inhalt springen</a>
<div class="app">
<!-- ── Header ── -->
<header id="header">
<div class="header-left">
<img src="assets/swiss-logo-flag.svg" alt="" class="header-flag" width="20" height="22">
<div class="header-title">
<span class="header-agency" data-i18n="header.agency">Bundesamt für Bauten und Logistik</span>
<span class="header-app">Geo-Check</span>
</div>
</div>
<div class="header-center" id="header-meta" hidden>
<span id="header-filename"></span>
<span class="header-meta-sep">·</span>
<span id="header-timestamp"></span>
</div>
<div class="header-right">
<select id="lang-select" class="lang-select" data-i18n-aria="header.langAria" aria-label="Sprache wählen">
<option value="de" selected>DE</option>
<option value="fr">FR</option>
<option value="it">IT</option>
<option value="en">EN</option>
</select>
<button id="btn-new" class="btn btn-secondary" hidden data-i18n="header.newCheck">Neue Prüfung</button>
<button id="btn-download" class="btn btn-primary" hidden>
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
<span data-i18n="header.download">Ergebnisse herunterladen</span>
</button>
</div>
</header>
<!-- ── Main ── -->
<main id="main-content">
<!-- STATE 1: Upload -->
<section id="state-upload" class="app-state" data-i18n-aria="upload.dropAria" aria-label="Datei hochladen">
<div class="upload-container">
<!-- Initial: intro + drop zone -->
<div id="upload-initial" class="upload-card">
<!-- Intro -->
<div class="intro">
<h1 class="intro-title" data-i18n="upload.title">Gebäudedaten prüfen und bereinigen</h1>
<p class="intro-desc" data-i18n="upload.desc">
Vergleichen Sie Ihre Daten mit dem eidgenössischen Gebäude- und Wohnungsregister (GWR) —
erkennen Sie Abweichungen und verbessern Sie die Datenqualität Schritt für Schritt.
</p>
</div>
<!-- 3-step flow -->
<div class="steps" role="list">
<div class="step" role="listitem">
<div class="step-number">1</div>
<div class="step-label" data-i18n-html="upload.step1">Hochladen<br><span>CSV / XLSX</span></div>
</div>
<div class="step-arrow" aria-hidden="true">▶</div>
<div class="step" role="listitem">
<div class="step-number">2</div>
<div class="step-label" data-i18n-html="upload.step2">Prüfen<br><span>Karte + Tabelle</span></div>
</div>
<div class="step-arrow" aria-hidden="true">▶</div>
<div class="step" role="listitem">
<div class="step-number">3</div>
<div class="step-label" data-i18n-html="upload.step3">Bereinigen<br><span>korrigieren, erneut prüfen</span></div>
</div>
</div>
<!-- Drop zone -->
<div id="drop-zone" class="drop-zone" role="button" tabindex="0" data-i18n-aria="upload.dropAria" aria-label="Datei hier ablegen oder klicken zum Durchsuchen">
<div class="drop-zone-icon" aria-hidden="true">
<svg width="56" height="56" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="17 8 12 3 7 8"/><line x1="12" y1="3" x2="12" y2="15"/></svg>
</div>
<h2 data-i18n="upload.dropTitle">CSV- oder Excel-Datei hierher ziehen</h2>
<p data-i18n="upload.dropOr">oder klicken zum Durchsuchen</p>
<p class="drop-zone-hint" data-i18n-html="upload.dropHint">
Erforderlich: Interne ID, EGID ·
Optional: Adresse, Koordinaten, Gebäudekategorie, Kommentar
</p>
</div>
<input type="file" id="file-input" accept=".csv,.xlsx,.xls,.tsv,.txt" hidden data-i18n-aria="upload.fileAria" aria-label="Datei auswählen">
<p class="demo-link">
<a href="assets/demo-buildings.csv" download="vorlage-gebaeude.csv" data-i18n="upload.template">Vorlage herunterladen (CSV)</a>
</p>
<p class="demo-link">
<span data-i18n="upload.demoPrefix">Oder testen Sie mit </span><a href="#" id="load-demo" data-i18n="upload.demoLink">Beispieldaten</a>
</p>
<!-- Error (shown inline when validation fails) -->
<div id="upload-error" class="upload-error" role="alert" hidden></div>
<!-- Privacy note -->
<div class="privacy-note">
<svg class="privacy-icon" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>
<span data-i18n="upload.privacy">Ihre Daten bleiben im Browser. Kein Upload, kein Backend.
Nur die EGID (öffentliche Gebäude-ID) wird an die GWR-API gesendet.</span>
</div>
</div>
</div>
</section>
<!-- STATE 2: Processing -->
<section id="state-processing" class="app-state" aria-label="Verarbeitung" hidden>
<div class="processing-container">
<div class="processing-card">
<h2 data-i18n="processing.title">Ihre Gebäude werden mit dem GWR abgeglichen...</h2>
<div class="progress-bar" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">
<div id="progress-bar-fill" class="progress-bar-fill"></div>
</div>
<div id="progress-text" data-i18n="processing.initial">Datei wird verarbeitet...</div>
<div id="progress-eta"></div>
<div id="progress-stats"></div>
<button id="btn-cancel" class="btn btn-secondary" data-i18n="processing.cancel">Abbrechen</button>
</div>
</div>
</section>
<!-- STATE 3: Results -->
<section id="state-results" class="app-state" aria-label="Ergebnisse" hidden>
<div class="results-container">
<!-- Left: map + table -->
<div class="results-main">
<!-- Map panel (top, takes remaining space) -->
<div id="map-panel" class="map-panel">
<div id="results-map"></div>
<button id="table-toggle" class="table-toggle" aria-expanded="true" aria-controls="results-table-container" title="Tabelle ein-/ausblenden">
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" aria-hidden="true"><polyline points="6 9 12 15 18 9"/></svg>
<span data-i18n="results.table">Tabelle</span>
</button>
</div>
<!-- Resize handle (between map and table) -->
<div id="tbl-resize-handle" role="separator" aria-orientation="horizontal"></div>
<!-- Table panel (bottom, collapsible) -->
<div class="table-panel" id="results-table-container">
<!-- table.js renders here -->
</div>
</div>
<!-- Right: summary side panel -->
<aside id="summary-panel" class="summary-panel" data-i18n-aria="summary.title" aria-label="Zusammenfassung">
<div class="sp-header">
<h3 data-i18n="summary.title">Zusammenfassung</h3>
<button id="sp-close" class="close-btn" data-i18n-aria="summary.closeAria" aria-label="Zusammenfassung schliessen">×</button>
</div>
<div class="sp-body" id="sp-body">
<!-- Populated by main.js -->
</div>
</aside>
<!-- Summary panel reopen is a MapLibre control (see map.js SummaryToggleControl) -->
</div>
</section>
</main>
<!-- ── Download modal ── -->
<div id="download-overlay" class="dl-overlay" role="dialog" aria-modal="true" data-i18n-aria="dl.title" aria-label="Ergebnisse herunterladen" hidden>
<div class="dl-modal">
<div class="dl-header">
<h3 data-i18n="dl.title">Ergebnisse herunterladen</h3>
<button id="dl-close" class="close-btn close-btn--lg" data-i18n-aria="dl.closeAria" aria-label="Dialog schliessen">×</button>
</div>
<div class="dl-body">
<button class="dl-option" id="dl-csv">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>
<div class="dl-option-text">
<strong data-i18n="dl.csv">CSV</strong>
<span data-i18n="dl.csvDesc">Semikolon-getrennt, UTF-8</span>
</div>
</button>
<button class="dl-option" id="dl-xlsx">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"/><polyline points="14 2 14 8 20 8"/></svg>
<div class="dl-option-text">
<strong data-i18n="dl.xlsx">Excel (.xlsx)</strong>
<span data-i18n="dl.xlsxDesc">Ergebnisse + Zusammenfassung</span>
</div>
</button>
<button class="dl-option" id="dl-geojson">
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>
<div class="dl-option-text">
<strong data-i18n="dl.geojson">GeoJSON</strong>
<span data-i18n="dl.geojsonDesc">Geodaten mit Koordinaten</span>
</div>
</button>
</div>
</div>
</div>
<!-- ── Footer ── -->
<footer id="footer">
<div class="footer-info"><span id="footer-coords">\u2014</span></div>
<div class="footer-links">
<a href="https://github.com/bbl-dres/geo-check/blob/main/docs/INSTRUCTIONS.md" target="_blank" rel="noopener" data-i18n="footer.guide">Anleitung</a>
<a href="https://github.com/bbl-dres/geo-check" target="_blank" rel="noopener" data-i18n="footer.source">Quellcode</a>
<a href="https://www.admin.ch/gov/de/start/rechtliches.html" target="_blank" rel="noopener" data-i18n="footer.legal">Rechtliches</a>
<a href="https://www.bbl.admin.ch/de/kontakt" target="_blank" rel="noopener" data-i18n="footer.contact">Kontakt</a>
</div>
</footer>
</div>
<!-- App JS (ES modules) -->
<script type="module" src="js/main.js"></script>
</body>
</html>