-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstate.html
More file actions
241 lines (222 loc) · 11.4 KB
/
state.html
File metadata and controls
241 lines (222 loc) · 11.4 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
232
233
234
235
236
237
238
239
240
241
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Air Quality Index Monitor - State View</title>
<link rel="stylesheet" href="style.css">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<link rel="manifest" href="manifest.json">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">
<style>
html {
scroll-behavior: smooth;
}
</style>
</head>
<body>
<div class="navbar">
<!-- Left: Your Logo -->
<div class="nav-logo"><a href="index.html"></a></div>
<!-- Mobile menu button -->
<div class="menu-toggle" id="mobileMenu">
<i class="fas fa-bars"></i>
</div>
<!-- Center: Menu + Icons -->
<div class="nav-center" id="navCenter">
<a href="index.html">Home</a>
<a href="index.html#mapSectionPreviewCard"><i class="fa-solid fa-caret-down"></i> Map Overview</a>
<a href="#airInsightCard">Today Insights</a>
<a href="#" class="nave-save"><i class="fa-solid fa-magnifying-glass"></i> Search</a>
<a href="#" id="notificationBell" aria-label="Notifications" title="Notifications">
<i class="fa-solid fa-bell"></i>
</a>
<a href="#" id="googleMapsLink"><i class="fa-solid fa-location-dot"></i> Maps</a>
</div>
<!-- Notification Dropdown -->
<div class="notification-dropdown" id="notificationDropdown">
<div class="notification-content">
<div class="notification-header">
<h3>Notifications</h3>
</div>
<div class="notification-body">
<div class="no-notifications">
<i class="fa-solid fa-bell-slash"></i>
<p>No notifications yet</p>
</div>
</div>
</div>
</div>
<!-- Right: Account -->
<div class="nav-account-dropdown">
<a href="#" class="nav-account" id="accountTrigger">
<i class="fa-solid fa-circle-user"></i>
<span id="accountText">Account</span>
</a>
<div class="account-dropdown" id="accountDropdown">
<!-- Content will be populated by JavaScript -->
</div>
</div>
</div>
<!-- Search Dropdown -->
<div class="search-dropdown" id="searchDropdown">
<div class="search-input-container">
<input type="text" id="searchInput" placeholder="Search for a state..." autocomplete="off">
<i class="fa-solid fa-times search-close" id="searchClose"></i>
</div>
<ul class="search-results" id="searchResults"></ul>
</div>
<div class="container">
<div class="dashboard">
<!-- Main AQI panel -->
<div class="aqi-panel">
<!-- Tabs -->
<div class="tabs">
<div class="tab active">AQI</div>
<div class="tab">Weather</div>
</div>
<!-- Panel content -->
<div class="panel-content">
<div class="panel-header">
<div class="live-indicator">
<div class="live-dot"></div>
<span class="live-text">LIVE</span>
</div>
<h1>Real-time Air Quality Index (AQI)</h1>
</div>
<div class="location-info">
<div class="location" id="stateName">Loading state...</div>
<div class="location-subtitle">State-wide monitoring</div>
<div class="meta-info">Updated <span id="updatedTime">--</span> • Local time <span id="localTime">--</span></div>
</div>
<div class="main-info">
<div class="aqi-display">
<div class="aqi-main">
<div class="aqi-circle" id="aqiCircle">
<div class="aqi-number" id="aqiNumber">--</div>
</div>
<div class="aqi-category" id="aqiCategory">Loading...</div>
</div>
<!-- Character image container -->
<div class="aqi-character" id="aqiCharacter">
<img id="characterImage" src="" alt="AQI Character" style="display: none;">
</div>
<div class="aqi-subtext">
<div class="tap-instruction">Tap for more details</div>
<div class="updated-time" id="lastUpdated">Updated -- mins ago</div>
</div>
</div>
<div class="weather-info">
<div class="weather-icon" id="weatherIcon">☀️</div>
<div class="temperature" id="temperature">--°C</div>
<div class="info-bubbles">
<div class="info-bubble">
<div class="bubble-label">Humidity</div>
<div class="bubble-value" id="humidity">--%</div>
</div>
<div class="info-bubble">
<div class="bubble-label">Wind</div>
<div class="bubble-value" id="windSpeed">-- km/h</div>
</div>
<div class="info-bubble">
<div class="bubble-label">UV Index</div>
<div class="bubble-value" id="uvIndex">--</div>
</div>
</div>
</div>
</div>
<div class="pm-values">
<div class="pm-item">
<div class="pm-label">PM2.5</div>
<div class="pm-value" id="pm25">-- µg/m³</div>
</div>
<div class="pm-item">
<div class="pm-label">PM10</div>
<div class="pm-value" id="pm10">-- µg/m³</div>
</div>
</div>
<!-- Detailed info (hidden by default) -->
<div class="detailed-info" id="detailedInfo">
<div class="detail-header">
<button class="back-button" id="backButton">
<i class="fas fa-arrow-left"></i> Back
</button>
</div>
<div class="detail-item">
<div class="detail-label">Humidity</div>
<div class="detail-value" id="detailHumidity">--%</div>
</div>
<div class="detail-item">
<div class="detail-label">Temperature</div>
<div class="detail-value" id="detailTemp">--°C</div>
</div>
<div class="detail-item">
<div class="detail-label">Wind Speed</div>
<div class="detail-value" id="detailWind">-- km/h</div>
</div>
<div class="detail-item">
<div class="detail-label">PM2.5</div>
<div class="detail-value" id="detailPm25">-- µg/m³</div>
</div>
<div class="detail-item">
<div class="detail-label">PM10</div>
<div class="detail-value" id="detailPm10">-- µg/m³</div>
</div>
</div>
<!-- Advice section -->
<div class="advice-section">
<div class="advice-placeholder" id="advicePlaceholder">
<div class="dot-flashing"></div>
<div class="generating-text">Generating advice...</div>
</div>
<div class="advice-content" id="adviceContent"></div>
</div>
<!-- AQI Scale -->
<div class="aqi-scale">
<div class="scale-segment good">Good</div>
<div class="scale-segment moderate">Moderate</div>
<div class="scale-segment unhealthy-s">Unhealthy for Sensitive Groups</div>
<div class="scale-segment unhealthy">Unhealthy</div>
<div class="scale-segment very-unhealthy">Very Unhealthy</div>
<div class="scale-segment hazardous">Hazardous</div>
</div>
</div>
</div>
</div>
<!-- Today's Air Insight Section -->
<div class="air-insight-section">
<div class="air-insight-card" id="airInsightCard">
<div class="card-header" id="cardHeader">
<div class="header-content">
<div class="header-left">
<span class="emoji">🌿</span>
<span class="title">Today's Air Insight</span>
</div>
<div class="timestamp" id="insightTimestamp">Updated 1 min ago</div>
</div>
<div class="short-message" id="shortMessage">Air quality is great today! 😌✨</div>
</div>
<div class="card-content" id="cardContent">
<div class="full-message" id="fullMessage">
This air feels amazing today 😌✨ Perfect for outdoor activities like jogging, cycling, or having a picnic in the park.
</div>
<div class="professional-advice" id="professionalAdvice">
<strong>Professional Advice:</strong> Even though the air quality is excellent, it's always good to stay hydrated and protect your skin from UV exposure during extended outdoor activities.
</div>
</div>
</div>
</div>
<!-- Today's Weather Section -->
<div id="weather-section" class="weather-section-container"></div>
<!-- 7-Day AQI Prediction Section -->
<div id="aqi-week-section" class="aqi-week-container"></div>
<!-- AQI Awareness Section -->
<div id="aqi-awareness-section"></div>
<!-- What is AQI Section -->
<div id="what-is-aqi-section"></div>
</div>
<script src="script.js"></script>
<script src="state.js"></script>
<script src="js/state.js"></script>
</body>
</html>