Spaces:
Running
Running
File size: 33,484 Bytes
2b261ca ece8d40 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca cdff656 2b261ca c39f002 2b261ca a62357b 2b261ca cdff656 2b261ca cdff656 2b261ca a62357b 2b261ca dc0bfcd 2b261ca ab13dbe 2b261ca ab13dbe 2b261ca cdff656 2b261ca |
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 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PLUSBYKES Metro Bike Share Tracker</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">
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
.station-card:hover {
transform: translateY(-5px);
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.availability-low {
border-left: 4px solid #ef4444;
}
.availability-medium {
border-left: 4px solid #f59e0b;
}
.availability-high {
border-left: 4px solid #10b981;
}
.price-trend-up {
color: #ef4444;
}
.price-trend-down {
color: #10b981;
}
.pulse {
animation: pulse 2s infinite;
}
@keyframes pulse {
0% { opacity: 1; }
50% { opacity: 0.5; }
100% { opacity: 1; }
}
.forecast-card {
background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
border-radius: 1rem;
}
.beach-card {
background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
border-radius: 1rem;
}
</style>
</head>
<body class="bg-gray-50">
<!-- Header -->
<header class="bg-blue-600 text-white">
<div class="container mx-auto px-4 py-6">
<div class="flex justify-between items-center">
<div class="flex items-center space-x-4">
<i class="fas fa-bicycle text-3xl"></i>
<h1 class="text-2xl font-bold">Metro Bike Share Tracker</h1>
</div>
<div class="hidden md:flex space-x-4">
<a href="#" class="hover:text-blue-200">Dashboard</a>
<a href="#" class="hover:text-blue-200">Pricing</a>
<a href="#" class="hover:text-blue-200">News</a>
<a href="#" class="hover:text-blue-200">Beach Locations</a>
</div>
<button class="md:hidden text-xl">
<i class="fas fa-bars"></i>
</button>
</div>
</div>
</header>
<!-- Hero Section -->
<section class="bg-gradient-to-r from-blue-500 to-blue-700 text-white py-16">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row items-center">
<div class="md:w-1/2 mb-8 md:mb-0">
<h2 class="text-4xl font-bold mb-4">Bike Share Data & 2025 Forecasts</h2>
<p class="text-xl mb-6">Track current availability and explore growth projections for California's bike share network</p>
<div class="flex space-x-4">
<button class="bg-white text-blue-600 px-6 py-3 rounded-lg font-semibold hover:bg-blue-50 transition">
<i class="fas fa-chart-line mr-2"></i> View Trends
</button>
<button class="border border-white px-6 py-3 rounded-lg font-semibold hover:bg-blue-600 transition">
<i class="fas fa-umbrella-beach mr-2"></i> Beach Locations
</button>
</div>
</div>
<div class="md:w-1/2">
<div class="bg-white rounded-lg p-4 shadow-xl">
<div class="flex justify-between items-center mb-4">
<h3 class="text-gray-800 font-bold">System Overview</h3>
<span class="text-xs bg-green-100 text-green-800 px-2 py-1 rounded-full">
<i class="fas fa-circle pulse mr-1"></i> LIVE
</span>
</div>
<div class="grid grid-cols-3 gap-4 text-center">
<div class="bg-blue-50 p-3 rounded-lg">
<p class="text-gray-500 text-sm">Active Stations</p>
<p class="text-2xl font-bold text-blue-600">142</p>
</div>
<div class="bg-blue-50 p-3 rounded-lg">
<p class="text-gray-500 text-sm">Available Bikes</p>
<p class="text-2xl font-bold text-blue-600">1,284</p>
</div>
<div class="bg-blue-50 p-3 rounded-lg">
<p class="text-gray-500 text-sm">Empty Docks</p>
<p class="text-2xl font-bold text-blue-600">876</p>
</div>
</div>
<div class="mt-4">
<canvas id="availabilityChart"></canvas>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Main Content -->
<main class="container mx-auto px-4 py-12">
<!-- 2025 Forecast Section -->
<section class="mb-16">
<h2 class="text-2xl font-bold text-gray-800 mb-6">2025 Growth Forecast</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Forecast Card 1 -->
<div class="forecast-card p-6 shadow-md">
<div class="flex items-center mb-4">
<div class="bg-blue-100 p-3 rounded-full mr-4">
<i class="fas fa-chart-line text-blue-600 text-xl"></i>
</div>
<h3 class="font-bold text-lg">Projected Expansion</h3>
</div>
<p class="text-gray-600 mb-4">Metro Bike Share plans to double its fleet by 2025, adding 150 new stations across Los Angeles County with focus on beach communities and transit connections.</p>
<div class="mt-4">
<canvas id="expansionChart"></canvas>
</div>
</div>
<!-- Forecast Card 2 -->
<div class="forecast-card p-6 shadow-md">
<div class="flex items-center mb-4">
<div class="bg-green-100 p-3 rounded-full mr-4">
<i class="fas fa-users text-green-600 text-xl"></i>
</div>
<h3 class="font-bold text-lg">Ridership Projections</h3>
</div>
<p class="text-gray-600 mb-4">With expanded service area and improved integration with transit, annual ridership is expected to grow from 1.2M to 3.5M trips by 2025.</p>
<div class="mt-4">
<canvas id="ridershipChart"></canvas>
</div>
</div>
<!-- Forecast Card 3 -->
<div class="forecast-card p-6 shadow-md">
<div class="flex items-center mb-4">
<div class="bg-purple-100 p-3 rounded-full mr-4">
<i class="fas fa-bolt text-purple-600 text-xl"></i>
</div>
<h3 class="font-bold text-lg">E-Bike Adoption</h3>
</div>
<p class="text-gray-600 mb-4">Electric-assist bikes will comprise 40% of the fleet by 2025, making hilly areas and longer trips more accessible to riders.</p>
<div class="mt-4">
<canvas id="ebikeChart"></canvas>
</div>
</div>
<!-- Forecast Card 4 -->
<div class="forecast-card p-6 shadow-md">
<div class="flex items-center mb-4">
<div class="bg-yellow-100 p-3 rounded-full mr-4">
<i class="fas fa-dollar-sign text-yellow-600 text-xl"></i>
</div>
<h3 class="font-bold text-lg">Economic Impact</h3>
</div>
<p class="text-gray-600 mb-4">The expanded system is projected to generate $28M in annual revenue and support 120 new local jobs by 2025.</p>
<div class="mt-4">
<canvas id="economicChart"></canvas>
</div>
</div>
</div>
</section>
<!-- California Beach Locations -->
<section class="mb-16">
<h2 class="text-2xl font-bold text-gray-800 mb-6">California Beach Locations</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Beach Card 1 -->
<div class="beach-card p-5 shadow-md">
<div class="flex items-center mb-3">
<i class="fas fa-umbrella-beach text-blue-500 mr-3"></i>
<h3 class="font-bold text-lg">Santa Monica</h3>
</div>
<p class="text-gray-600 mb-3">42 stations along the beach path and downtown area. Expansion planned for 2024.</p>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Bikes: 280+</span>
<a href="https://www.bikeshare.metro.net" class="text-blue-600 hover:underline">Details</a>
</div>
</div>
<!-- Beach Card 2 -->
<div class="beach-card p-5 shadow-md">
<div class="flex items-center mb-3">
<i class="fas fa-umbrella-beach text-blue-500 mr-3"></i>
<h3 class="font-bold text-lg">Venice Beach</h3>
</div>
<p class="text-gray-600 mb-3">28 stations along the boardwalk and canals. New e-bikes coming 2024.</p>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Bikes: 180+</span>
<a href="https://www.bikeshare.metro.net" class="text-blue-600 hover:underline">Details</a>
</div>
</div>
<!-- Beach Card 3 -->
<div class="beach-card p-5 shadow-md">
<div class="flex items-center mb-3">
<i class="fas fa-umbrella-beach text-blue-500 mr-3"></i>
<h3 class="font-bold text-lg">Long Beach</h3>
</div>
<p class="text-gray-600 mb-3">35 stations serving downtown and shoreline areas. Integrated with Metro system.</p>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Bikes: 250+</span>
<a href="https://www.longbeachbikeshare.com" class="text-blue-600 hover:underline">Details</a>
</div>
</div>
<!-- Beach Card 4 -->
<div class="beach-card p-5 shadow-md">
<div class="flex items-center mb-3">
<i class="fas fa-umbrella-beach text-blue-500 mr-3"></i>
<h3 class="font-bold text-lg">Huntington Beach</h3>
</div>
<p class="text-gray-600 mb-3">New pilot program launching 2024 with 15 stations along the pier and main beach.</p>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Coming 2024</span>
<a href="https://www.huntingtonbeachca.gov" class="text-blue-600 hover:underline">Details</a>
</div>
</div>
<!-- Beach Card 5 -->
<div class="beach-card p-5 shadow-md">
<div class="flex items-center mb-3">
<i class="fas fa-umbrella-beach text-blue-500 mr-3"></i>
<h3 class="font-bold text-lg">San Diego</h3>
</div>
<p class="text-gray-600 mb-3">60+ stations in Mission Beach and Pacific Beach areas. Largest beach network in CA.</p>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Bikes: 400+</span>
<a href="https://www.sandiego.gov" class="text-blue-600 hover:underline">Details</a>
</div>
</div>
<!-- Beach Card 6 -->
<div class="beach-card p-5 shadow-md">
<div class="flex items-center mb-3">
<i class="fas fa-umbrella-beach text-blue-500 mr-3"></i>
<h3 class="font-bold text-lg">Santa Barbara</h3>
</div>
<p class="text-gray-600 mb-3">20 stations along waterfront and downtown. Electric bike fleet only.</p>
<div class="flex justify-between text-sm">
<span class="text-gray-500">Bikes: 150+</span>
<a href="https://www.santabarbaraca.gov" class="text-blue-600 hover:underline">Details</a>
</div>
</div>
</div>
</section>
<!-- Pricing Trends -->
<section class="mb-16">
<h2 class="text-2xl font-bold text-gray-800 mb-6">Pricing Trends & News</h2>
<div class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="p-5 border-b border-gray-200">
<div class="flex justify-between items-center">
<h3 class="font-bold text-lg">Current Pricing</h3>
<div class="flex space-x-4">
<div class="text-center">
<p class="text-gray-500 text-sm">Walk-Up</p>
<p class="font-bold">$3.50</p>
</div>
<div class="text-center">
<p class="text-gray-500 text-sm">Monthly Pass</p>
<p class="font-bold">$17.00</p>
</div>
</div>
</div>
</div>
<div class="p-5">
<canvas id="pricingTrendChart"></canvas>
</div>
</div>
</section>
<!-- News Section -->
<section>
<h2 class="text-2xl font-bold text-gray-800 mb-6">Latest Updates</h2>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- News Card 1 -->
<div class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="p-5">
<div class="flex items-center mb-3">
<span class="bg-blue-100 text-blue-800 text-xs px-2 py-1 rounded-full mr-2">NEW</span>
<span class="text-gray-500 text-sm">May 15, 2023</span>
</div>
<h3 class="font-bold text-lg mb-2">Metro Announces 2025 Expansion Plan</h3>
<p class="text-gray-600 mb-4">$45M investment will bring bike share to 15 new beach communities and double the current fleet size by 2025.</p>
<div class="flex justify-between items-center">
<span class="text-sm text-blue-600 font-semibold">
<i class="fas fa-arrow-up price-trend-up mr-1"></i> 150 new stations planned
</span>
<button class="text-blue-600 text-sm font-semibold hover:text-blue-800">
Read More <i class="fas fa-chevron-right ml-1"></i>
</button>
</div>
</div>
</div>
<!-- News Card 2 -->
<div class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="p-5">
<div class="flex items-center mb-3">
<span class="bg-red-100 text-red-800 text-xs px-2 py-1 rounded-full mr-2">ALERT</span>
<span class="text-gray-500 text-sm">May 10, 2023</span>
</div>
<h3 class="font-bold text-lg mb-2">Summer Pricing Adjustment</h3>
<p class="text-gray-600 mb-4">Starting June 1, walk-up rates will increase to $4.00 during peak hours (7-9am, 4-6pm).</p>
<div class="flex justify-between items-center">
<span class="text-sm text-blue-600 font-semibold">
<i class="fas fa-arrow-up price-trend-up mr-1"></i> First price increase in 2 years
</span>
<button class="text-blue-600 text-sm font-semibold hover:text-blue-800">
Read More <i class="fas fa-chevron-right ml-1"></i>
</button>
</div>
</div>
</div>
<!-- News Card 3 -->
<div class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="p-5">
<div class="flex items-center mb-3">
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full mr-2">UPDATE</span>
<span class="text-gray-500 text-sm">May 5, 2023</span>
</div>
<h3 class="font-bold text-lg mb-2">Long Beach Integration Complete</h3>
<p class="text-gray-600 mb-4">TapToGo payment system now works across all Metro and Long Beach bike share stations.</p>
<div class="flex justify-between items-center">
<span class="text-sm text-blue-600 font-semibold">
<i class="fas fa-credit-card mr-1"></i> Single payment system
</span>
<button class="text-blue-600 text-sm font-semibold hover:text-blue-800">
Read More <i class="fas fa-chevron-right ml-1"></i>
</button>
</div>
</div>
</div>
<!-- News Card 4 -->
<div class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="p-5">
<div class="flex items-center mb-3">
<span class="bg-purple-100 text-purple-800 text-xs px-2 py-1 rounded-full mr-2">TREND</span>
<span class="text-gray-500 text-sm">April 28, 2023</span>
</div>
<h3 class="font-bold text-lg mb-2">Beach Ridership Soars</h3>
<p class="text-gray-600 mb-4">Santa Monica and Venice stations see 40% increase in usage as summer season begins.</p>
<div class="flex justify-between items-center">
<span class="text-sm text-blue-600 font-semibold">
<i class="fas fa-arrow-up price-trend-up mr-1"></i> Record beach usage
</span>
<button class="text-blue-600 text-sm font-semibold hover:text-blue-800">
Read More <i class="fas fa-chevron-right ml-1"></i>
</button>
</div>
</div>
</div>
</div>
</section>
</main>
<!-- Footer -->
<footer class="bg-gray-800 text-white py-12">
<div class="container mx-auto px-4">
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
<div>
<h3 class="font-bold text-lg mb-4">Metro Bike Share</h3>
<p class="text-gray-400">Real-time tracking and analytics for California's bike share system. Status: Dev/ Some data not live.</p>
<div class="mt-4 flex space-x-4">
<a href="https://t.me/SMPlusBot" class="text-gray-400 hover:text-white"><i class="fab fa-telegram"></i></a>
</div>
</div>
<div>
<h3 class="font-bold text-lg mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">Dashboard</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Beach Locations</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Pricing</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">2025 Forecast</a></li>
</ul>
</div>
<div>
</div>
<div>
<h3 class="font-bold text-lg mb-4">By Appointment Only</h3>
<ul class="space-y-2">
<li class="flex items-center">
<i class="fas fa-map-marker-alt text-gray-400 mr-2"></i>
<span class="text-gray-400">Los Angeles, CA</span>
</li>
</ul>
</div>
</div>
<div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
<p>© 2025 PLUSBYKES California Bike Share Tracker. By SM Plus. Data provided by Metro and partner agencies.</p>
</div>
</div>
</footer>
<script>
// System Availability Chart
const availabilityCtx = document.getElementById('availabilityChart').getContext('2d');
const availabilityChart = new Chart(availabilityCtx, {
type: 'line',
data: {
labels: ['6am', '9am', '12pm', '3pm', '6pm', '9pm', '12am'],
datasets: [
{
label: 'Bikes Available',
data: [850, 620, 780, 950, 1120, 980, 820],
borderColor: '#3b82f6',
backgroundColor: 'rgba(59, 130, 246, 0.1)',
tension: 0.3,
fill: true
},
{
label: 'Docks Available',
data: [450, 680, 520, 350, 180, 320, 480],
borderColor: '#10b981',
backgroundColor: 'rgba(16, 185, 129, 0.1)',
tension: 0.3,
fill: true
}
]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
},
tooltip: {
mode: 'index',
intersect: false,
}
},
scales: {
y: {
beginAtZero: true,
title: {
display: true,
text: 'Number Available'
}
}
}
}
});
// Expansion Forecast Chart
const expansionCtx = document.getElementById('expansionChart').getContext('2d');
const expansionChart = new Chart(expansionCtx, {
type: 'bar',
data: {
labels: ['2020', '2021', '2022', '2023', '2024', '2025'],
datasets: [{
label: 'Number of Stations',
data: [80, 95, 110, 142, 180, 290],
backgroundColor: 'rgba(59, 130, 246, 0.7)',
borderColor: 'rgba(59, 130, 246, 1)',
borderWidth: 1
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
},
tooltip: {
callbacks: {
label: function(context) {
return context.dataset.label + ': ' + context.raw;
}
}
}
},
scales: {
y: {
beginAtZero: true,
title: {
display: true,
text: 'Number of Stations'
}
}
}
}
});
// Ridership Forecast Chart
const ridershipCtx = document.getElementById('ridershipChart').getContext('2d');
const ridershipChart = new Chart(ridershipCtx, {
type: 'line',
data: {
labels: ['2020', '2021', '2022', '2023', '2024', '2025'],
datasets: [{
label: 'Annual Ridership (millions)',
data: [0.8, 1.0, 1.2, 1.5, 2.4, 3.5],
backgroundColor: 'rgba(16, 185, 129, 0.1)',
borderColor: 'rgba(16, 185, 129, 1)',
borderWidth: 2,
tension: 0.3,
fill: true
}]
},
options: {
responsive: true,
plugins: {
legend: {
display: false
},
tooltip: {
callbacks: {
label: function(context) {
return context.dataset.label + ': ' + context.raw + 'M';
}
}
}
},
scales: {
y: {
beginAtZero: true,
title: {
display: true,
text: 'Annual Ridership (millions)'
}
}
}
}
});
// E-Bike Forecast Chart
const ebikeCtx = document.getElementById('ebikeChart').getContext('2d');
const ebikeChart = new Chart(ebikeCtx, {
type: 'doughnut',
data: {
labels: ['Traditional Bikes', 'E-Bikes'],
datasets: [{
data: [85, 15],
backgroundColor: [
'rgba(99, 102, 241, 0.7)',
'rgba(168, 85, 247, 0.7)'
],
borderColor: [
'rgba(99, 102, 241, 1)',
'rgba(168, 85, 247, 1)'
],
borderWidth: 1
}]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'bottom',
},
title: {
display: true,
text: 'Current Fleet (2023)'
}
}
}
});
// Economic Impact Chart
const economicCtx = document.getElementById('economicChart').getContext('2d');
const economicChart = new Chart(economicCtx, {
type: 'bar',
data: {
labels: ['Revenue ($M)', 'Jobs Created'],
datasets: [
{
label: '2023',
data: [12, 60],
backgroundColor: 'rgba(234, 179, 8, 0.7)',
borderColor: 'rgba(234, 179, 8, 1)',
borderWidth: 1
},
{
label: '2025 Projected',
data: [28, 120],
backgroundColor: 'rgba(245, 158, 11, 0.7)',
borderColor: 'rgba(245, 158, 11, 1)',
borderWidth: 1
}
]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'bottom',
}
},
scales: {
y: {
beginAtZero: true
}
}
}
});
// Pricing Trend Chart
const pricingCtx = document.getElementById('pricingTrendChart').getContext('2d');
const pricingChart = new Chart(pricingCtx, {
type: 'bar',
data: {
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun'],
datasets: [
{
label: 'Walk-Up Rate',
data: [3.50, 3.50, 3.50, 3.50, 3.50, 4.00],
backgroundColor: 'rgba(59, 130, 246, 0.7)',
borderColor: 'rgba(59, 130, 246, 1)',
borderWidth: 1
},
{
label: 'Monthly Pass',
data: [17.00, 17.00, 17.00, 17.00, 17.00, 17.00],
backgroundColor: 'rgba(16, 185, 129, 0.7)',
borderColor: 'rgba(16, 185, 129, 1)',
borderWidth: 1
}
]
},
options: {
responsive: true,
plugins: {
legend: {
position: 'top',
},
tooltip: {
callbacks: {
label: function(context) {
return context.dataset.label + ': $' + context.raw.toFixed(2);
}
}
}
},
scales: {
y: {
beginAtZero: true,
title: {
display: true,
text: 'Price ($)'
},
ticks: {
callback: function(value) {
return '$' + value;
}
}
}
}
}
});
// Simulate live data updates
function updateLiveData() {
// Randomly update availability numbers
const bikeNumbers = document.querySelectorAll('.station-card .text-2xl:first-child');
bikeNumbers.forEach(el => {
const current = parseInt(el.textContent);
const change = Math.floor(Math.random() * 3) - 1; // -1, 0, or 1
const newVal = Math.max(0, current + change);
el.textContent = newVal;
// Update card border color based on availability
const card = el.closest('.station-card');
card.classList.remove('availability-high', 'availability-medium', 'availability-low');
if (newVal === 0) {
card.classList.add('availability-low');
} else if (newVal < 5) {
card.classList.add('availability-medium');
} else {
card.classList.add('availability-high');
}
});
// Update timestamps
const timestamps = document.querySelectorAll('.text-sm.text-gray-600');
timestamps.forEach(el => {
const mins = Math.floor(Math.random() * 10);
el.textContent = `Updated ${mins} min ago`;
});
}
// Update every 30 seconds
setInterval(updateLiveData, 30000);
</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=privateuserh/plusbykes" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |