Spaces:
Running
Running
<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> |