Add 1 files
Browse files- index.html +92 -50
index.html
CHANGED
@@ -9,6 +9,16 @@
|
|
9 |
<script src="https://code.highcharts.com/maps/highmaps.js"></script>
|
10 |
<script src="https://code.highcharts.com/maps/modules/exporting.js"></script>
|
11 |
<script src="https://code.highcharts.com/mapdata/countries/us/us-all.js"></script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
13 |
<style>
|
14 |
.sidebar {
|
@@ -64,7 +74,7 @@
|
|
64 |
<div class="p-4 flex items-center justify-between border-b border-purple-700">
|
65 |
<div class="flex items-center space-x-2">
|
66 |
<i class="fas fa-users text-2xl"></i>
|
67 |
-
<span class="sidebar-text text-
|
68 |
</div>
|
69 |
<button id="toggleSidebar" class="text-white focus:outline-none">
|
70 |
<i class="fas fa-bars"></i>
|
@@ -78,8 +88,8 @@
|
|
78 |
</div>
|
79 |
<h3 class="font-semibold text-lg">Sarah Johnson</h3>
|
80 |
<p class="text-purple-200 text-sm">[email protected]</p>
|
81 |
-
|
82 |
-
<button class="bg-purple-600 hover:bg-purple-700 px
|
83 |
<i class="fas fa-cog"></i> <span class="sidebar-text">Settings</span>
|
84 |
</button>
|
85 |
</div>
|
@@ -333,13 +343,13 @@
|
|
333 |
<div>
|
334 |
<p class="font-medium">New member joined</p>
|
335 |
<p class="text-sm text-gray-500">Alex Johnson joined the Coding Club at Lincoln High School</p>
|
336 |
-
<p class="text-xs text-gray-400">2 hours ago
|
337 |
</div>
|
338 |
</div>
|
339 |
|
340 |
<div class="flex items-start">
|
341 |
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3 mt-1">
|
342 |
-
|
343 |
</div>
|
344 |
<div>
|
345 |
<p class="font-medium">New event created</p>
|
@@ -643,7 +653,7 @@
|
|
643 |
<h3 class="font-semibold mb-4">School Directory</h3>
|
644 |
<div class="relative mb-4">
|
645 |
<input type="text" placeholder="Search schools..." class="w-full pl-10 pr-4 py-2 rounded-md border focus:outline-none focus:ring-2 focus:ring-purple-500">
|
646 |
-
|
647 |
</div>
|
648 |
|
649 |
<div class="space-y-3 max-h-80 overflow-y-auto">
|
@@ -863,50 +873,7 @@
|
|
863 |
</div>
|
864 |
</div>
|
865 |
|
866 |
-
|
867 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Full Name</label>
|
868 |
-
<input type="text" value="Sarah Johnson" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500">
|
869 |
-
</div>
|
870 |
-
|
871 |
-
<div>
|
872 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Email</label>
|
873 |
-
<input type="email" value="[email protected]" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500">
|
874 |
-
</div>
|
875 |
-
|
876 |
-
<div>
|
877 |
-
<label class="block text-sm font-medium text-gray-700 mb-1">Password</label>
|
878 |
-
<input type="password" placeholder="••••••••" class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500">
|
879 |
-
</div>
|
880 |
-
</div>
|
881 |
-
</div>
|
882 |
-
</div>
|
883 |
-
|
884 |
-
<div>
|
885 |
-
<div class="bg-gray-50 rounded-lg p-6 mb-6">
|
886 |
-
<h3 class="text-lg font-semibold mb-4">Preferences</h3>
|
887 |
-
<div class="space-y-4">
|
888 |
-
<div>
|
889 |
-
<label class="block text-sm font-medium text-gray-700 mb-2">Notification Preferences</label>
|
890 |
-
<div class="space-y-2">
|
891 |
-
<div class="flex items-center">
|
892 |
-
<input id="email-notifications" name="email-notifications" type="checkbox" checked class="h-4 w-4 text-purple-600 focus:ring-purple-500 border-gray-300 rounded">
|
893 |
-
<label for="email-notifications" class="ml-2 block text-sm text-gray-700">Email Notifications</label>
|
894 |
-
</div>
|
895 |
-
<div class="flex items-center">
|
896 |
-
<input id="push-notifications" name="push-notifications" type="checkbox" checked class="h-4 w-4 text-purple-600 focus:ring-purple-500 border-gray-300 rounded">
|
897 |
-
<label for="push-notifications" class="ml-2 block text-sm text-gray-700">Push Notifications</label>
|
898 |
-
</div>
|
899 |
-
</div>
|
900 |
-
</div>
|
901 |
-
|
902 |
-
<div>
|
903 |
-
<label class="block text-sm font-medium text-gray-700 mb-2">Language</label>
|
904 |
-
<select class="mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-purple-500 focus:ring-purple-500">
|
905 |
-
<option>English</option>
|
906 |
-
<option>Spanish</option>
|
907 |
-
<option>French</option>
|
908 |
-
</select>
|
909 |
-
</div>
|
910 |
</div>
|
911 |
</div>
|
912 |
</div>
|
@@ -1258,5 +1225,80 @@
|
|
1258 |
});
|
1259 |
});
|
1260 |
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1261 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Ishwinder/webbuilder" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
1262 |
</html>
|
|
|
9 |
<script src="https://code.highcharts.com/maps/highmaps.js"></script>
|
10 |
<script src="https://code.highcharts.com/maps/modules/exporting.js"></script>
|
11 |
<script src="https://code.highcharts.com/mapdata/countries/us/us-all.js"></script>
|
12 |
+
<!-- Leaflet CSS -->
|
13 |
+
<link
|
14 |
+
rel="stylesheet"
|
15 |
+
href="https://unpkg.com/[email protected]/dist/leaflet.css"
|
16 |
+
/>
|
17 |
+
<!-- Leaflet JS -->
|
18 |
+
<script
|
19 |
+
src="https://unpkg.com/[email protected]/dist/leaflet.js">
|
20 |
+
</script>
|
21 |
+
|
22 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
23 |
<style>
|
24 |
.sidebar {
|
|
|
74 |
<div class="p-4 flex items-center justify-between border-b border-purple-700">
|
75 |
<div class="flex items-center space-x-2">
|
76 |
<i class="fas fa-users text-2xl"></i>
|
77 |
+
<span class="sidebar-text text-l font-bold">Youth Peer Initiative</span>
|
78 |
</div>
|
79 |
<button id="toggleSidebar" class="text-white focus:outline-none">
|
80 |
<i class="fas fa-bars"></i>
|
|
|
88 |
</div>
|
89 |
<h3 class="font-semibold text-lg">Sarah Johnson</h3>
|
90 |
<p class="text-purple-200 text-sm">[email protected]</p>
|
91 |
+
<div class="mt-2 flex space-x-2">
|
92 |
+
<button class="bg-purple-600 hover:bg-purple-700 px-3 py-1 rounded-full text-xs">
|
93 |
<i class="fas fa-cog"></i> <span class="sidebar-text">Settings</span>
|
94 |
</button>
|
95 |
</div>
|
|
|
343 |
<div>
|
344 |
<p class="font-medium">New member joined</p>
|
345 |
<p class="text-sm text-gray-500">Alex Johnson joined the Coding Club at Lincoln High School</p>
|
346 |
+
<p class="text-xs text-gray-400">2 hours ago</p>
|
347 |
</div>
|
348 |
</div>
|
349 |
|
350 |
<div class="flex items-start">
|
351 |
<div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center mr-3 mt-1">
|
352 |
+
<i class="fas fa-calendar-check text-blue-600"></i>
|
353 |
</div>
|
354 |
<div>
|
355 |
<p class="font-medium">New event created</p>
|
|
|
653 |
<h3 class="font-semibold mb-4">School Directory</h3>
|
654 |
<div class="relative mb-4">
|
655 |
<input type="text" placeholder="Search schools..." class="w-full pl-10 pr-4 py-2 rounded-md border focus:outline-none focus:ring-2 focus:ring-purple-500">
|
656 |
+
|
657 |
</div>
|
658 |
|
659 |
<div class="space-y-3 max-h-80 overflow-y-auto">
|
|
|
873 |
</div>
|
874 |
</div>
|
875 |
|
876 |
+
<!-- More profile settings would go here -->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
877 |
</div>
|
878 |
</div>
|
879 |
</div>
|
|
|
1225 |
});
|
1226 |
});
|
1227 |
</script>
|
1228 |
+
<script>
|
1229 |
+
document.addEventListener("DOMContentLoaded", function () {
|
1230 |
+
const schoolData = [
|
1231 |
+
{
|
1232 |
+
name: "Lincoln High School",
|
1233 |
+
address: "123 Education St, Springfield",
|
1234 |
+
lat: 37.208957,
|
1235 |
+
lng: -93.292299,
|
1236 |
+
},
|
1237 |
+
{
|
1238 |
+
name: "Jefferson High School",
|
1239 |
+
address: "456 Knowledge Ave, Jefferson",
|
1240 |
+
lat: 38.5767,
|
1241 |
+
lng: -92.1735,
|
1242 |
+
},
|
1243 |
+
{
|
1244 |
+
name: "Washington High School",
|
1245 |
+
address: "789 Wisdom Blvd, Washington",
|
1246 |
+
lat: 38.9072,
|
1247 |
+
lng: -77.0369,
|
1248 |
+
},
|
1249 |
+
];
|
1250 |
+
|
1251 |
+
// Initialize map
|
1252 |
+
const map = L.map("detailedMap").setView([37.8, -96], 5);
|
1253 |
+
|
1254 |
+
// Add tile layer
|
1255 |
+
L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
1256 |
+
attribution: "© OpenStreetMap contributors",
|
1257 |
+
}).addTo(map);
|
1258 |
+
|
1259 |
+
// Store marker references
|
1260 |
+
const markers = {};
|
1261 |
+
|
1262 |
+
// Add markers
|
1263 |
+
schoolData.forEach((school) => {
|
1264 |
+
const marker = L.marker([school.lat, school.lng])
|
1265 |
+
.addTo(map)
|
1266 |
+
.bindPopup(`<strong>${school.name}</strong><br>${school.address}`);
|
1267 |
+
markers[school.name] = marker;
|
1268 |
+
});
|
1269 |
+
|
1270 |
+
// Highlight clicked item and pan to map
|
1271 |
+
const schoolItems = document.querySelectorAll(".school-item");
|
1272 |
+
|
1273 |
+
schoolItems.forEach((item) => {
|
1274 |
+
item.addEventListener("click", () => {
|
1275 |
+
const name = item.querySelector("h4")?.textContent.trim();
|
1276 |
+
const school = schoolData.find((s) => s.name === name);
|
1277 |
+
if (!school) return;
|
1278 |
+
|
1279 |
+
// Remove highlight from others
|
1280 |
+
schoolItems.forEach((el) => el.classList.remove("ring-2", "ring-purple-500"));
|
1281 |
+
item.classList.add("ring-2", "ring-purple-500");
|
1282 |
+
|
1283 |
+
// Pan to marker
|
1284 |
+
const marker = markers[school.name];
|
1285 |
+
map.setView([school.lat, school.lng], 14);
|
1286 |
+
marker.openPopup();
|
1287 |
+
});
|
1288 |
+
});
|
1289 |
+
|
1290 |
+
// Optional: fix map size on tab switch (if hidden initially)
|
1291 |
+
const observer = new MutationObserver(() => {
|
1292 |
+
map.invalidateSize();
|
1293 |
+
});
|
1294 |
+
|
1295 |
+
const tabContainer = document.getElementById("location");
|
1296 |
+
if (tabContainer) {
|
1297 |
+
observer.observe(tabContainer, { attributes: true, attributeFilter: ["class"] });
|
1298 |
+
}
|
1299 |
+
});
|
1300 |
+
</script>
|
1301 |
+
|
1302 |
+
|
1303 |
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=Ishwinder/webbuilder" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
1304 |
</html>
|