Spaces:
Running
Running
Make a site that tracks San Diego fishing charter boats with a map
Browse files- README.md +9 -5
- index.html +68 -19
README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: ReelDealSD 🎣
|
| 3 |
+
colorFrom: yellow
|
| 4 |
+
colorTo: yellow
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
| 14 |
+
|
index.html
CHANGED
|
@@ -1,19 +1,68 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>ReelDealSD - San Diego Fishing Charters</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" />
|
| 10 |
+
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
| 11 |
+
</head>
|
| 12 |
+
<body class="bg-blue-50">
|
| 13 |
+
<header class="bg-blue-800 text-white py-6">
|
| 14 |
+
<div class="container mx-auto px-4">
|
| 15 |
+
<h1 class="text-3xl font-bold">ReelDealSD 🎣</h1>
|
| 16 |
+
<p class="text-blue-200">Track San Diego Fishing Charter Boats</p>
|
| 17 |
+
</div>
|
| 18 |
+
</header>
|
| 19 |
+
|
| 20 |
+
<main class="container mx-auto px-4 py-8">
|
| 21 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
|
| 22 |
+
<div class="lg:col-span-2">
|
| 23 |
+
<div class="bg-white rounded-lg shadow-lg p-4 h-[500px]">
|
| 24 |
+
<div id="map" class="h-full w-full rounded-md"></div>
|
| 25 |
+
</div>
|
| 26 |
+
</div>
|
| 27 |
+
<div class="bg-white rounded-lg shadow-lg p-6">
|
| 28 |
+
<h2 class="text-xl font-bold mb-4 text-blue-800">Active Charters</h2>
|
| 29 |
+
<div class="space-y-4" id="charters-list">
|
| 30 |
+
<!-- Charter boats will be loaded here -->
|
| 31 |
+
</div>
|
| 32 |
+
</div>
|
| 33 |
+
</div>
|
| 34 |
+
</main>
|
| 35 |
+
|
| 36 |
+
<script>
|
| 37 |
+
// Initialize map centered on San Diego
|
| 38 |
+
const map = L.map('map').setView([32.7157, -117.1611], 12);
|
| 39 |
+
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
|
| 40 |
+
|
| 41 |
+
// Sample charter boat data (in a real app, this would come from an API)
|
| 42 |
+
const charters = [
|
| 43 |
+
{ name: "Pacific Queen", lat: 32.722, lng: -117.234, status: "Active", passengers: 12 },
|
| 44 |
+
{ name: "New Seaforth", lat: 32.728, lng: -117.221, status: "Docked", passengers: 0 },
|
| 45 |
+
{ name: "Point Loma", lat: 32.716, lng: -117.238, status: "Active", passengers: 8 }
|
| 46 |
+
];
|
| 47 |
+
|
| 48 |
+
// Add charter boats to map and list
|
| 49 |
+
charters.forEach(charter => {
|
| 50 |
+
// Add marker to map
|
| 51 |
+
const marker = L.marker([charter.lat, charter.lng])
|
| 52 |
+
.addTo(map)
|
| 53 |
+
.bindPopup(`<b>${charter.name}</b><br>Status: ${charter.status}<br>Passengers: ${charter.passengers}`);
|
| 54 |
+
|
| 55 |
+
// Add to list
|
| 56 |
+
const statusColor = charter.status === "Active" ? "bg-green-100 text-green-800" : "bg-gray-100 text-gray-800";
|
| 57 |
+
const listItem = document.createElement('div');
|
| 58 |
+
listItem.className = "p-3 border rounded-lg";
|
| 59 |
+
listItem.innerHTML = `
|
| 60 |
+
<h3 class="font-bold">${charter.name}</h3>
|
| 61 |
+
<div class="text-sm ${statusColor} inline-block px-2 py-1 rounded mt-1">${charter.status}</div>
|
| 62 |
+
<p class="text-sm mt-2">Passengers: ${charter.passengers}</p>
|
| 63 |
+
`;
|
| 64 |
+
document.getElementById('charters-list').appendChild(listItem);
|
| 65 |
+
});
|
| 66 |
+
</script>
|
| 67 |
+
</body>
|
| 68 |
+
</html>
|