plusbykes / index.html
privateuserh's picture
Add 2 files
2b261ca verified
raw
history blame
29.3 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>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>
.map-container {
height: 500px;
border-radius: 1rem;
overflow: hidden;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.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; }
}
</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">Live Map</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">About</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">Real-Time Bike Share Data</h2>
<p class="text-xl mb-6">Track availability, pricing trends, and station status across the Metro 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-map-marker-alt mr-2"></i> View Live Map
</button>
<button class="border border-white px-6 py-3 rounded-lg font-semibold hover:bg-blue-600 transition">
<i class="fas fa-chart-line mr-2"></i> Pricing Trends
</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">
<!-- Map Section -->
<section class="mb-16">
<div class="flex justify-between items-center mb-6">
<h2 class="text-2xl font-bold text-gray-800">Live Station Map</h2>
<div class="flex space-x-2">
<button class="bg-blue-600 text-white px-4 py-2 rounded-lg text-sm">
<i class="fas fa-sync-alt mr-2"></i> Refresh
</button>
<div class="relative">
<select class="appearance-none bg-white border border-gray-300 rounded-lg pl-4 pr-8 py-2 text-sm">
<option>All Stations</option>
<option>Downtown LA</option>
<option>Westside</option>
<option>San Fernando Valley</option>
</select>
<div class="absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none">
<i class="fas fa-chevron-down text-gray-500"></i>
</div>
</div>
</div>
</div>
<div class="map-container bg-gray-200 relative">
<!-- Map placeholder - in a real app this would be a map library like Leaflet or Google Maps -->
<div class="absolute inset-0 flex items-center justify-center">
<div class="text-center">
<i class="fas fa-map-marked-alt text-5xl text-gray-400 mb-4"></i>
<p class="text-gray-600">Interactive map would display here with real-time station data</p>
</div>
</div>
</div>
</section>
<!-- Station List -->
<section class="mb-16">
<h2 class="text-2xl font-bold text-gray-800 mb-6">Nearby Stations</h2>
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
<!-- Station Card 1 -->
<div class="station-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300 availability-high">
<div class="p-5">
<div class="flex justify-between items-start">
<div>
<h3 class="font-bold text-lg">Union Station</h3>
<p class="text-gray-500 text-sm">800 N Alameda St</p>
</div>
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">0.3 mi</span>
</div>
<div class="mt-4 flex justify-between">
<div>
<p class="text-gray-500 text-sm">Bikes Available</p>
<p class="text-2xl font-bold">12</p>
</div>
<div>
<p class="text-gray-500 text-sm">Docks Available</p>
<p class="text-2xl font-bold">8</p>
</div>
</div>
</div>
<div class="bg-gray-50 px-5 py-3 flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-clock text-gray-400 mr-2"></i>
<span class="text-sm text-gray-600">Updated 2 min ago</span>
</div>
<button class="text-blue-600 text-sm font-semibold hover:text-blue-800">
<i class="fas fa-directions mr-1"></i> Directions
</button>
</div>
</div>
<!-- Station Card 2 -->
<div class="station-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300 availability-medium">
<div class="p-5">
<div class="flex justify-between items-start">
<div>
<h3 class="font-bold text-lg">Pershing Square</h3>
<p class="text-gray-500 text-sm">532 S Olive St</p>
</div>
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">0.7 mi</span>
</div>
<div class="mt-4 flex justify-between">
<div>
<p class="text-gray-500 text-sm">Bikes Available</p>
<p class="text-2xl font-bold">4</p>
</div>
<div>
<p class="text-gray-500 text-sm">Docks Available</p>
<p class="text-2xl font-bold">3</p>
</div>
</div>
</div>
<div class="bg-gray-50 px-5 py-3 flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-clock text-gray-400 mr-2"></i>
<span class="text-sm text-gray-600">Updated 5 min ago</span>
</div>
<button class="text-blue-600 text-sm font-semibold hover:text-blue-800">
<i class="fas fa-directions mr-1"></i> Directions
</button>
</div>
</div>
<!-- Station Card 3 -->
<div class="station-card bg-white rounded-lg shadow-md overflow-hidden transition duration-300 availability-low">
<div class="p-5">
<div class="flex justify-between items-start">
<div>
<h3 class="font-bold text-lg">Grand Park</h3>
<p class="text-gray-500 text-sm">200 N Grand Ave</p>
</div>
<span class="bg-green-100 text-green-800 text-xs px-2 py-1 rounded-full">1.2 mi</span>
</div>
<div class="mt-4 flex justify-between">
<div>
<p class="text-gray-500 text-sm">Bikes Available</p>
<p class="text-2xl font-bold">0</p>
</div>
<div>
<p class="text-gray-500 text-sm">Docks Available</p>
<p class="text-2xl font-bold">15</p>
</div>
</div>
</div>
<div class="bg-gray-50 px-5 py-3 flex justify-between items-center">
<div class="flex items-center">
<i class="fas fa-clock text-gray-400 mr-2"></i>
<span class="text-sm text-gray-600">Updated 8 min ago</span>
</div>
<button class="text-blue-600 text-sm font-semibold hover:text-blue-800">
<i class="fas fa-directions mr-1"></i> Directions
</button>
</div>
</div>
</div>
<div class="mt-6 text-center">
<button class="text-blue-600 font-semibold hover:text-blue-800">
View All Stations <i class="fas fa-chevron-right ml-1"></i>
</button>
</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 Expands Bike Share to Westside</h3>
<p class="text-gray-600 mb-4">10 new stations added in Santa Monica and Venice, increasing system capacity by 15%.</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> 12% more rides in first week
</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">New E-Bike Fleet Added</h3>
<p class="text-gray-600 mb-4">200 electric-assist bikes now available at 30 stations across downtown.</p>
<div class="flex justify-between items-center">
<span class="text-sm text-blue-600 font-semibold">
<i class="fas fa-bolt mr-1"></i> $1.00 per 30min extra
</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">Ridership Hits Record High</h3>
<p class="text-gray-600 mb-4">March saw 12% more rides than previous record, with average trip duration decreasing.</p>
<div class="flex justify-between items-center">
<span class="text-sm text-blue-600 font-semibold">
<i class="fas fa-arrow-down price-trend-down mr-1"></i> 8% fewer empty docks
</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 Los Angeles' bike share system.</p>
<div class="mt-4 flex space-x-4">
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-twitter"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-facebook"></i></a>
<a href="#" class="text-gray-400 hover:text-white"><i class="fab fa-instagram"></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">Live Map</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Station List</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">Membership</a></li>
</ul>
</div>
<div>
<h3 class="font-bold text-lg mb-4">Resources</h3>
<ul class="space-y-2">
<li><a href="#" class="text-gray-400 hover:text-white">API Documentation</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Developer Portal</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">Data Downloads</a></li>
<li><a href="#" class="text-gray-400 hover:text-white">System Map</a></li>
</ul>
</div>
<div>
<h3 class="font-bold text-lg mb-4">Contact</h3>
<ul class="space-y-2">
<li class="flex items-center">
<i class="fas fa-envelope text-gray-400 mr-2"></i>
<a href="mailto:[email protected]" class="text-gray-400 hover:text-white">[email protected]</a>
</li>
<li class="flex items-center">
<i class="fas fa-phone text-gray-400 mr-2"></i>
<span class="text-gray-400">(213) 555-1234</span>
</li>
<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>&copy; 2023 Metro Bike Share Tracker. Not affiliated with Metro Los Angeles.</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'
}
}
}
}
});
// 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);
}
}
},
annotation: {
annotations: {
line1: {
type: 'line',
yMin: 3.50,
yMax: 3.50,
borderColor: 'rgb(255, 99, 132)',
borderWidth: 2,
label: {
content: 'Price increase coming',
enabled: true
}
}
}
}
},
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>