ravamarcos's picture
noooo, con un estilo waze necesito una app que de la misma funcionalidad para gente que sale a pasear con sus perros y pueda reportar incidencias o curiosidades mientras pasen, incluso reportar perros abandonados, perdidos, subir fotos, compartir experiencias, etc.
3466b2c verified
Raw History Blame Contribute Delete
4.42 kB
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Mapa - DogWalker</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<script src="https://maps.googleapis.com/maps/api/js?key=YOUR_API_KEY&libraries=places"></script>
<style>
#map {
height: calc(100vh - 120px);
width: 100%;
}
.report-btn {
background-color: #3B82F6;
border-radius: 50%;
width: 56px;
height: 56px;
box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
</style>
</head>
<body class="bg-gray-50">
<!-- Header -->
<header class="bg-blue-600 text-white p-4">
<div class="container mx-auto flex justify-between items-center">
<div class="flex items-center space-x-2">
<i data-feather="map" class="text-2xl"></i>
<h1 class="text-xl font-bold">DogWalker</h1>
</div>
<div class="flex space-x-2">
<button id="location-btn" class="bg-blue-700 hover:bg-blue-800 px-3 py-2 rounded-full">
<i data-feather="navigation"></i>
</button>
<button id="menu-btn" class="bg-blue-700 hover:bg-blue-800 px-3 py-2 rounded-full">
<i data-feather="menu"></i>
</button>
</div>
</div>
</header>
<!-- Map Container -->
<div id="map"></div>
<!-- Report Button -->
<div class="fixed bottom-20 right-4">
<button id="report-btn" class="report-btn text-white flex items-center justify-center">
<i data-feather="plus"></i>
</button>
</div>
<!-- Bottom Navigation -->
<div class="fixed bottom-0 left-0 right-0 bg-white border-t border-gray-200 z-50">
<div class="container mx-auto px-4 py-2 flex justify-around">
<a href="/map" class="p-3 text-blue-600 flex flex-col items-center">
<i data-feather="map"></i>
<span class="text-xs mt-1">Mapa</span>
</a>
<a href="/community" class="p-3 text-gray-500 flex flex-col items-center">
<i data-feather="users"></i>
<span class="text-xs mt-1">Comunidad</span>
</a>
<a href="/reports" class="p-3 text-gray-500 flex flex-col items-center">
<i data-feather="alert-triangle"></i>
<span class="text-xs mt-1">Reportes</span>
</a>
<a href="/profile" class="p-3 text-gray-500 flex flex-col items-center">
<i data-feather="user"></i>
<span class="text-xs mt-1">Perfil</span>
</a>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
feather.replace();
// Initialize map
const map = new google.maps.Map(document.getElementById('map'), {
center: {lat: -34.397, lng: 150.644},
zoom: 15,
mapTypeControl: false,
streetViewControl: false
});
// Center map on user location
document.getElementById('location-btn').addEventListener('click', () => {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition((position) => {
const pos = {
lat: position.coords.latitude,
lng: position.coords.longitude
};
map.setCenter(pos);
new google.maps.Marker({
position: pos,
map: map,
icon: {
url: "http://maps.google.com/mapfiles/ms/icons/blue-dot.png"
}
});
});
}
});
// Report button click
document.getElementById('report-btn').addEventListener('click', () => {
window.location.href = '/new-report';
});
});
</script>
</body>
</html>