-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
133 lines (112 loc) · 4.01 KB
/
Copy pathindex.html
File metadata and controls
133 lines (112 loc) · 4.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Community Hero — Civic Dispatch</title>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link href="https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@600;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<header class="topbar">
<div class="wordmark">
<span class="wordmark-icon">⛑</span>
<div>
<h1>COMMUNITY HERO</h1>
<p class="tagline">Civic Dispatch — AI-triaged hazard reporting</p>
</div>
</div>
<div class="topbar-stats" id="topbarStats">
<div class="stat">
<span class="stat-label">RANK</span>
<span class="stat-value" id="myRank">Rookie Reporter</span>
</div>
<div class="stat">
<span class="stat-label">POINTS</span>
<span class="stat-value" id="myPoints">0</span>
</div>
<div class="stat">
<span class="stat-label">HERO</span>
<span class="stat-value" id="myName">—</span>
</div>
<button class="btn-ghost" id="logoutBtn">Log out</button>
</div>
</header>
<main class="layout">
<section class="map-panel">
<div id="map"></div>
<div class="map-hint">Click anywhere on the map to file a hazard report</div>
</section>
<aside class="dispatch-panel">
<div class="panel-block" id="reportFormBlock" hidden>
<h2>NEW REPORT <span class="mono" id="reportCoords"></span></h2>
<form id="reportForm">
<label>Title
<input type="text" id="title" maxlength="80" placeholder="e.g. Large pothole on Main St" required />
</label>
<label>Description
<textarea id="description" maxlength="400" rows="3" placeholder="What's going on? Be specific — it helps the AI triage it correctly." required></textarea>
</label>
<label>Upload Photo (optional)
<input
type="file"
id="reportImage"
accept="image/*">
<img
id="previewImage"
style="display:none;width:100%;margin-top:12px;border-radius:12px;">
</label>
<label>Pick an emoji (optional — AI will suggest one if you skip this)
<div class="emoji-picker" id="emojiPicker"></div>
</label>
<div class="form-actions">
<button type="button" class="btn-ghost" id="cancelReport">Cancel</button>
<button type="submit" class="btn-primary" id="submitReport">Submit for triage</button>
</div>
</form>
</div>
<div class="panel-block" id="lastTriageBlock" hidden>
<h2>DISPATCH TICKET</h2>
<div class="ticket" id="ticketContent"></div>
</div>
<div class="panel-block">
<h2>SEARCH REPORTS</h2>
<input
id="searchBox"
type="text"
placeholder="Search reports..."
class="search-input">
<select id="severityFilter">
<option value="">All Severity</option>
<option value="critical">Critical</option>
<option value="high">High</option>
<option value="medium">Medium</option>
<option value="low">Low</option>
</select>
</div>
<div class="panel-block">
<div class="panel-block-header">
<h2>DISPATCH LOG</h2>
<span class="mono" id="reportCount">0 reports</span>
</div>
<div class="log-list" id="logList">
<p class="empty-state">No reports yet. Click the map to file the first one.</p>
</div>
</div>
<div class="panel-block">
<h2>TOP RESPONDERS</h2>
<div class="leaderboard" id="leaderboard">
<p class="empty-state">Leaderboard fills in as reports come in.</p>
</div>
</div>
</aside>
</main>
<div id="toast" class="toast">
<span id="toastText"></span>
</div>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<script src="app.js"></script>
</body>
</html>