Spaces:
Running
Running
File size: 22,796 Bytes
59c3cda | 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 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Yavapai County Emergency Resources</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<style>
.emergency-card {
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.emergency-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.priority-1 {
border-left: 6px solid #ef4444;
}
.priority-2 {
border-left: 6px solid #f59e0b;
}
.priority-3 {
border-left: 6px solid #3b82f6;
}
.search-highlight {
background-color: #fef08a;
}
</style>
</head>
<body class="bg-gray-50 min-h-screen">
<!-- Header -->
<header class="bg-gradient-to-r from-red-600 to-red-800 text-white shadow-lg">
<div class="container mx-auto px-4 py-6">
<div class="flex flex-col md:flex-row justify-between items-center">
<div class="flex items-center mb-4 md:mb-0">
<i class="fas fa-shield-alt text-3xl mr-3"></i>
<div>
<h1 class="text-2xl md:text-3xl font-bold">Yavapai County</h1>
<p class="text-sm md:text-base">Disaster & Emergency Resources</p>
</div>
</div>
<div class="bg-white rounded-lg p-2 shadow-md w-full md:w-auto">
<div class="relative">
<input type="text" id="searchInput" placeholder="Search resources..."
class="pl-10 pr-4 py-2 rounded-lg w-full md:w-64 text-gray-800 focus:outline-none focus:ring-2 focus:ring-red-500">
<i class="fas fa-search absolute left-3 top-3 text-gray-500"></i>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<main class="container mx-auto px-4 py-8">
<!-- Emergency Alert Banner -->
<div class="bg-red-100 border-l-4 border-red-500 text-red-700 p-4 mb-8 rounded-r-lg flex items-start">
<i class="fas fa-exclamation-triangle text-xl mr-3 mt-1"></i>
<div>
<h3 class="font-bold">Emergency Alert</h3>
<p>For immediate life-threatening emergencies, call <span class="font-bold">911</span> or your local emergency number.</p>
</div>
</div>
<!-- Quick Action Buttons -->
<div class="grid grid-cols-2 md:grid-cols-4 gap-4 mb-8">
<button class="bg-red-600 hover:bg-red-700 text-white py-3 px-4 rounded-lg flex items-center justify-center transition">
<i class="fas fa-phone-alt mr-2"></i> Call 911
</button>
<button class="bg-blue-600 hover:bg-blue-700 text-white py-3 px-4 rounded-lg flex items-center justify-center transition">
<i class="fas fa-map-marked-alt mr-2"></i> Evacuation Routes
</button>
<button class="bg-orange-600 hover:bg-orange-700 text-white py-3 px-4 rounded-lg flex items-center justify-center transition">
<i class="fas fa-first-aid mr-2"></i> Medical Help
</button>
<button class="bg-green-600 hover:bg-green-700 text-white py-3 px-4 rounded-lg flex items-center justify-center transition">
<i class="fas fa-utensils mr-2"></i> Food Assistance
</button>
</div>
<!-- Resource Categories -->
<div class="mb-8">
<h2 class="text-2xl font-bold mb-4 text-gray-800 border-b pb-2">Resource Categories</h2>
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4">
<div class="bg-white rounded-lg p-4 shadow-sm text-center cursor-pointer hover:bg-gray-100 transition">
<i class="fas fa-fire text-red-500 text-3xl mb-2"></i>
<h3 class="font-semibold">Wildfires</h3>
</div>
<div class="bg-white rounded-lg p-4 shadow-sm text-center cursor-pointer hover:bg-gray-100 transition">
<i class="fas fa-tint text-blue-500 text-3xl mb-2"></i>
<h3 class="font-semibold">Floods</h3>
</div>
<div class="bg-white rounded-lg p-4 shadow-sm text-center cursor-pointer hover:bg-gray-100 transition">
<i class="fas fa-wind text-gray-500 text-3xl mb-2"></i>
<h3 class="font-semibold">Severe Weather</h3>
</div>
<div class="bg-white rounded-lg p-4 shadow-sm text-center cursor-pointer hover:bg-gray-100 transition">
<i class="fas fa-house-damage text-yellow-500 text-3xl mb-2"></i>
<h3 class="font-semibold">Structural Damage</h3>
</div>
<div class="bg-white rounded-lg p-4 shadow-sm text-center cursor-pointer hover:bg-gray-100 transition">
<i class="fas fa-broadcast-tower text-purple-500 text-3xl mb-2"></i>
<h3 class="font-semibold">Communications</h3>
</div>
</div>
</div>
<!-- Contact Database -->
<div class="mb-8">
<div class="flex justify-between items-center mb-4">
<h2 class="text-2xl font-bold text-gray-800">Emergency Contacts</h2>
<div class="flex space-x-2">
<button id="filterAll" class="bg-gray-200 hover:bg-gray-300 px-3 py-1 rounded text-sm font-medium">All</button>
<button id="filterPriority1" class="bg-red-100 hover:bg-red-200 px-3 py-1 rounded text-sm font-medium text-red-800">Critical</button>
<button id="filterPriority2" class="bg-orange-100 hover:bg-orange-200 px-3 py-1 rounded text-sm font-medium text-orange-800">High</button>
<button id="filterPriority3" class="bg-blue-100 hover:bg-blue-200 px-3 py-1 rounded text-sm font-medium text-blue-800">Standard</button>
</div>
</div>
<div class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Service</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Contact</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Hours</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Priority</th>
<th scope="col" class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody id="contactTable" class="bg-white divide-y divide-gray-200">
<!-- Contacts will be inserted here by JavaScript -->
</tbody>
</table>
</div>
</div>
</div>
<!-- Emergency Shelters -->
<div class="mb-8">
<h2 class="text-2xl font-bold mb-4 text-gray-800">Emergency Shelters</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<div class="emergency-card bg-white rounded-lg overflow-hidden shadow-md priority-1">
<div class="p-5">
<div class="flex justify-between items-start">
<h3 class="text-xl font-bold text-gray-800">Prescott High School</h3>
<span class="bg-red-100 text-red-800 text-xs font-medium px-2.5 py-0.5 rounded">Open Now</span>
</div>
<p class="text-gray-600 mt-1">1050 Ruth St, Prescott, AZ 86301</p>
<div class="mt-3 flex items-center text-gray-500">
<i class="fas fa-phone mr-2"></i>
<span>(928) 445-5400</span>
</div>
<div class="mt-2 flex items-center text-gray-500">
<i class="fas fa-users mr-2"></i>
<span>Capacity: 250 people</span>
</div>
<div class="mt-4">
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">Pets Allowed</span>
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">ADA Accessible</span>
</div>
</div>
</div>
<div class="emergency-card bg-white rounded-lg overflow-hidden shadow-md priority-2">
<div class="p-5">
<div class="flex justify-between items-start">
<h3 class="text-xl font-bold text-gray-800">Cottonwood Recreation Center</h3>
<span class="bg-yellow-100 text-yellow-800 text-xs font-medium px-2.5 py-0.5 rounded">On Standby</span>
</div>
<p class="text-gray-600 mt-1">150 S 6th St, Cottonwood, AZ 86326</p>
<div class="mt-3 flex items-center text-gray-500">
<i class="fas fa-phone mr-2"></i>
<span>(928) 634-8030</span>
</div>
<div class="mt-2 flex items-center text-gray-500">
<i class="fas fa-users mr-2"></i>
<span>Capacity: 150 people</span>
</div>
<div class="mt-4">
<span class="inline-block bg-gray-200 rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2">ADA Accessible</span>
</div>
</div>
</div>
<div class="emergency-card bg-white rounded-lg overflow-hidden shadow-md priority-3">
<div class="p-5">
<div class="flex justify-between items-start">
<h3 class="text-xl font-bold text-gray-800">Chino Valley Community Center</h3>
<span class="bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded">Reserve</span>
</div>
<p class="text-gray-600 mt-1">1525 N Road 1 E, Chino Valley, AZ 86323</p>
<div class="mt-3 flex items-center text-gray-500">
<i class="fas fa-phone mr-2"></i>
<span>(928) 636-2636</span>
</div>
<div class="mt-2 flex items-center text-gray-500">
<i class="fas fa-users mr-2"></i>
<span>Capacity: 100 people</span>
</div>
</div>
</div>
</div>
</div>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-8">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<div>
<h3 class="text-lg font-semibold mb-4">Yavapai County Emergency Services</h3>
<p class="text-gray-400">Providing critical resources and information for residents during emergencies and disasters.</p>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white transition">Emergency Preparedness</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Evacuation Plans</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Weather Alerts</a></li>
<li><a href="#" class="text-gray-400 hover:text-white transition">Volunteer Opportunities</a></li>
</ul>
</div>
<div>
<h3 class="text-lg font-semibold mb-4">Stay Connected</h3>
<div class="flex space-x-4 mb-4">
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-facebook-f text-xl"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-twitter text-xl"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-instagram text-xl"></i></a>
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fas fa-rss text-xl"></i></a>
</div>
<p class="text-gray-400">Sign up for emergency alerts:</p>
<div class="mt-2 flex">
<input type="email" placeholder="Your email" class="px-3 py-2 rounded-l text-gray-800 w-full">
<button class="bg-red-600 hover:bg-red-700 px-4 py-2 rounded-r">Sign Up</button>
</div>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-6 text-center text-gray-400">
<p>© 2023 Yavapai County Emergency Management. All rights reserved.</p>
</div>
</div>
</footer>
<script>
// Sample contact data
const contacts = [
{
service: "Yavapai County Emergency Management",
contact: "(928) 771-3321",
hours: "24/7",
priority: 1,
description: "Coordinates emergency response for the county"
},
{
service: "Prescott Fire Department",
contact: "(928) 777-1700",
hours: "24/7",
priority: 1,
description: "Fire and emergency medical services for Prescott"
},
{
service: "Yavapai County Sheriff's Office",
contact: "(928) 771-3260",
hours: "24/7",
priority: 1,
description: "Law enforcement for unincorporated areas"
},
{
service: "Arizona Department of Emergency Management",
contact: "(602) 244-0504",
hours: "Mon-Fri 8am-5pm",
priority: 2,
description: "State-level emergency coordination"
},
{
service: "American Red Cross - Northern Arizona",
contact: "(928) 445-0691",
hours: "Mon-Fri 9am-4pm",
priority: 2,
description: "Disaster relief and shelter services"
},
{
service: "Yavapai County Public Health",
contact: "(928) 771-3122",
hours: "Mon-Fri 8am-5pm",
priority: 2,
description: "Public health emergencies and information"
},
{
service: "Arizona Poison Control",
contact: "1-800-222-1222",
hours: "24/7",
priority: 1,
description: "Poison emergencies and information"
},
{
service: "Yavapai County Animal Control",
contact: "(928) 771-3267",
hours: "Mon-Fri 8am-5pm",
priority: 3,
description: "Animal emergencies and shelter"
},
{
service: "Prescott Valley Police",
contact: "(928) 772-9267",
hours: "24/7",
priority: 1,
description: "Law enforcement for Prescott Valley"
},
{
service: "Northern Arizona VA Healthcare System",
contact: "(928) 445-4860",
hours: "24/7",
priority: 2,
description: "Veteran medical emergencies"
}
];
// Function to render contacts
function renderContacts(filterPriority = null) {
const tableBody = document.getElementById('contactTable');
tableBody.innerHTML = '';
const filteredContacts = filterPriority
? contacts.filter(contact => contact.priority === filterPriority)
: contacts;
filteredContacts.forEach(contact => {
const row = document.createElement('tr');
row.className = `priority-${contact.priority} hover:bg-gray-50`;
// Priority badge
let priorityBadge = '';
if (contact.priority === 1) {
priorityBadge = '<span class="bg-red-100 text-red-800 text-xs font-medium px-2.5 py-0.5 rounded">Critical</span>';
} else if (contact.priority === 2) {
priorityBadge = '<span class="bg-orange-100 text-orange-800 text-xs font-medium px-2.5 py-0.5 rounded">High</span>';
} else {
priorityBadge = '<span class="bg-blue-100 text-blue-800 text-xs font-medium px-2.5 py-0.5 rounded">Standard</span>';
}
row.innerHTML = `
<td class="px-6 py-4 whitespace-nowrap">
<div class="flex items-center">
<div>
<div class="text-sm font-medium text-gray-900">${contact.service}</div>
<div class="text-sm text-gray-500">${contact.description}</div>
</div>
</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-900 font-medium">${contact.contact}</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
<div class="text-sm text-gray-500">${contact.hours}</div>
</td>
<td class="px-6 py-4 whitespace-nowrap">
${priorityBadge}
</td>
<td class="px-6 py-4 whitespace-nowrap text-right text-sm font-medium">
<button onclick="callNumber('${contact.contact}')" class="text-blue-600 hover:text-blue-900 mr-3">
<i class="fas fa-phone"></i> Call
</button>
<button onclick="showDetails('${contact.service}', '${contact.contact}', '${contact.hours}', '${contact.description}')" class="text-green-600 hover:text-green-900">
<i class="fas fa-info-circle"></i> Details
</button>
</td>
`;
tableBody.appendChild(row);
});
}
// Initial render
renderContacts();
// Filter buttons
document.getElementById('filterAll').addEventListener('click', () => {
renderContacts();
});
document.getElementById('filterPriority1').addEventListener('click', () => {
renderContacts(1);
});
document.getElementById('filterPriority2').addEventListener('click', () => {
renderContacts(2);
});
document.getElementById('filterPriority3').addEventListener('click', () => {
renderContacts(3);
});
// Search functionality
document.getElementById('searchInput').addEventListener('input', (e) => {
const searchTerm = e.target.value.toLowerCase();
const rows = document.querySelectorAll('#contactTable tr');
rows.forEach(row => {
const text = row.textContent.toLowerCase();
if (text.includes(searchTerm)) {
row.style.display = '';
// Highlight matching text (simplified for this example)
if (searchTerm.length > 2) {
const cells = row.querySelectorAll('td');
cells.forEach(cell => {
const original = cell.innerHTML;
const highlighted = original.replace(
new RegExp(searchTerm, 'gi'),
match => `<span class="search-highlight">${match}</span>`
);
cell.innerHTML = highlighted;
});
}
} else {
row.style.display = 'none';
}
});
});
// Helper functions
function callNumber(number) {
alert(`Calling: ${number}\n(Simulated in this demo)`);
}
function showDetails(service, contact, hours, description) {
alert(`${service}\n\nContact: ${contact}\nHours: ${hours}\n\nDescription: ${description}`);
}
</script>
<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=FrecklesNInk/databases" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |