File size: 5,121 Bytes
6cd713b | 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 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Nearby Veterinary Hospitals - AgroVet</title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap" rel="stylesheet">
<style>
body {
background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
font-family: 'Poppins', sans-serif;
margin: 0;
padding: 0;
min-height: 100vh;
position: relative;
}
/* Floating icons */
.floating-icon {
position: fixed;
font-size: 2.5rem;
opacity: 0.12;
animation: float 18s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-40px) rotate(-15deg); }
}
.icon-1 { top: 12%; left: 8%; animation-delay: 0s; }
.icon-2 { top: 68%; left: 10%; animation-delay: 4s; }
.icon-3 { top: 28%; right: 12%; animation-delay: 8s; }
.icon-4 { bottom: 18%; right: 15%; animation-delay: 12s; }
.icon-5 { top: 48%; left: 45%; animation-delay: 16s; }
.container {
max-width: 1000px;
margin: 50px auto;
background: rgba(255, 255, 255, 0.97);
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
padding: 40px;
position: relative;
z-index: 1;
backdrop-filter: blur(10px);
}
.title-box {
background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
color: #333;
padding: 35px;
text-align: center;
border-radius: 15px;
margin-bottom: 30px;
box-shadow: 0 10px 30px rgba(168, 237, 234, 0.4);
}
.title-box h1 {
font-size: 2.8em;
margin-bottom: 15px;
color: #2C3E50;
font-weight: 700;
text-shadow: 2px 2px 4px rgba(255,255,255,0.5);
display: flex;
align-items: center;
justify-content: center;
gap: 15px;
}
.title-box h1::before {
content: 'ποΈ';
font-size: 1.2em;
}
.title-box p {
font-size: 1.25em;
color: #555;
font-weight: 400;
}
.map-btn {
background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
color: #333;
padding: 16px 40px;
font-size: 1.15rem;
border: none;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
margin-top: 25px;
font-weight: 700;
box-shadow: 0 6px 20px rgba(168, 237, 234, 0.4);
display: inline-flex;
align-items: center;
gap: 10px;
}
.map-btn::before {
content: 'π';
font-size: 1.3em;
}
.map-btn:hover {
transform: translateY(-3px);
box-shadow: 0 8px 25px rgba(168, 237, 234, 0.5);
}
iframe {
width: 100%;
height: 500px;
border: 0;
border-radius: 15px;
margin-top: 35px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
border: 3px solid #a8edea;
}
.footer {
text-align: center;
margin-top: 35px;
font-size: 15px;
color: #555;
padding: 20px;
background: rgba(168, 237, 234, 0.2);
border-radius: 10px;
font-weight: 500;
}
@media (max-width: 600px) {
.title-box h1 {
font-size: 2em;
}
.map-btn {
width: 100%;
}
iframe {
height: 350px;
}
}
</style>
</head>
<body>
<!-- Floating farm animals -->
<div class="floating-icon icon-1">π</div>
<div class="floating-icon icon-2">π</div>
<div class="floating-icon icon-3">π</div>
<div class="floating-icon icon-4">π</div>
<div class="floating-icon icon-5">π·</div>
<div class="container">
<div class="title-box">
<h1>Find Nearby Vet Hospitals</h1>
<p>Click the button to view veterinary hospitals near you</p>
</div>
<div style="text-align: center;">
<button class="map-btn" onclick="findVetHospitals()">Locate Vet Hospitals</button>
</div>
<!-- Static Embedded Map -->
<iframe
src="https://www.google.com/maps?q=Shimoga+Veterinary+Hospital&output=embed"
allowfullscreen
loading="lazy"
referrerpolicy="no-referrer-when-downgrade">
</iframe>
<div class="footer">Β© 2025 AgroVet Hub β All Rights Reserved</div>
</div>
<script>
function findVetHospitals() {
if (navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function(position) {
let lat = position.coords.latitude;
let lng = position.coords.longitude;
let mapsUrl = `https://www.google.com/maps/search/Veterinary+Hospitals+shimoga/@${lat},${lng},15z`;
window.open(mapsUrl, '_blank');
}, function(error) {
alert('Error: Please allow location access to use this feature.');
});
} else {
alert('Geolocation is not supported by your browser.');
}
}
</script>
</body>
</html>
|