|
<!DOCTYPE html> |
|
<html lang="en"> |
|
<head> |
|
<meta charset="UTF-8"> |
|
<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
|
<title>Interactive Hong Kong Map</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"> |
|
<style> |
|
#map-container { |
|
perspective: 1000px; |
|
} |
|
.district { |
|
transition: all 0.3s ease; |
|
transform-style: preserve-3d; |
|
} |
|
.district:hover { |
|
transform: translateY(-5px) scale(1.02); |
|
box-shadow: 0 10px 20px rgba(0,0,0,0.2); |
|
z-index: 10; |
|
} |
|
.district.active { |
|
transform: translateY(-10px) scale(1.05); |
|
box-shadow: 0 15px 30px rgba(0,0,0,0.3); |
|
z-index: 20; |
|
} |
|
.pulse { |
|
animation: pulse 2s infinite; |
|
} |
|
@keyframes pulse { |
|
0% { transform: scale(1); } |
|
50% { transform: scale(1.05); } |
|
100% { transform: scale(1); } |
|
} |
|
#victoria-harbor { |
|
background: linear-gradient(90deg, rgba(0,119,190,0.3) 0%, rgba(0,119,190,0.1) 50%, rgba(0,119,190,0.3) 100%); |
|
} |
|
</style> |
|
</head> |
|
<body class="bg-gray-100 font-sans"> |
|
<div class="container mx-auto px-4 py-8"> |
|
<div class="text-center mb-8"> |
|
<h1 class="text-4xl font-bold text-indigo-800 mb-2">Hong Kong Explorer</h1> |
|
<p class="text-lg text-gray-600">Discover the vibrant districts of Asia's World City</p> |
|
<div class="mt-4 flex justify-center space-x-4"> |
|
<button id="tour-btn" class="px-4 py-2 bg-indigo-600 text-white rounded-full hover:bg-indigo-700 transition flex items-center"> |
|
<i class="fas fa-map-marked-alt mr-2"></i> Take a Tour |
|
</button> |
|
<button id="reset-btn" class="px-4 py-2 bg-gray-200 text-gray-700 rounded-full hover:bg-gray-300 transition"> |
|
Reset Map |
|
</button> |
|
</div> |
|
</div> |
|
|
|
<div id="map-container" class="relative w-full max-w-4xl mx-auto bg-white rounded-xl shadow-lg overflow-hidden"> |
|
|
|
<div class="absolute top-10 left-1/4 w-1/3"> |
|
<div id="central-western" class="district absolute top-0 left-0 w-24 h-24 bg-red-200 rounded-lg cursor-pointer flex items-center justify-center text-xs font-medium text-red-800" data-info="Central & Western District - The financial heart of Hong Kong with colonial heritage"> |
|
Central & Western |
|
</div> |
|
<div id="wan-chai" class="district absolute top-20 left-20 w-20 h-20 bg-red-300 rounded-lg cursor-pointer flex items-center justify-center text-xs font-medium text-red-900" data-info="Wan Chai - Mix of business and entertainment with the iconic Convention Centre"> |
|
Wan Chai |
|
</div> |
|
<div id="eastern" class="district absolute top-40 left-10 w-28 h-20 bg-red-400 rounded-lg cursor-pointer flex items-center justify-center text-xs font-medium text-white" data-info="Eastern District - Residential areas with beautiful coastal scenery"> |
|
Eastern |
|
</div> |
|
<div id="southern" class="district absolute top-60 left-0 w-32 h-24 bg-red-500 rounded-lg cursor-pointer flex items-center justify-center text-xs font-medium text-white" data-info="Southern District - Luxury |
|
</html> |