-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
95 lines (90 loc) · 4.34 KB
/
Copy pathindex.html
File metadata and controls
95 lines (90 loc) · 4.34 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multi-City Restaurant Explorer</title>
<script src="https://cdn.tailwindcss.com"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
<style>
#map { height: 400px; }
</style>
</head>
<body class="bg-gray-100">
<div class="container mx-auto px-4 py-8">
<div class="flex justify-between items-center mb-8">
<h1 class="text-3xl font-bold">Multi-City Restaurant Explorer</h1>
<a href="deal_statistics.html" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded transition duration-300 ease-in-out transform hover:scale-105">
View Deal Statistics
</a>
</div>
<div class="mb-8">
<h2 class="text-2xl font-semibold mb-4">Filters</h2>
<div class="grid grid-cols-1 md:grid-cols-6 gap-4">
<div class="flex items-center">
<input type="checkbox" id="neotasteSource" class="mr-2" checked>
<label for="neotasteSource">Neotaste</label>
</div>
<div class="flex items-center">
<input type="checkbox" id="theforkSource" class="mr-2" checked>
<label for="theforkSource">TheFork</label>
</div>
<select id="citySelector" class="border rounded p-2">
<option value="">Select a City (Vienna)</option>
<option value="vienna">Vienna</option>
<option value="karlsruhe">Karlsruhe</option>
<option value="freiburg">Freiburg</option>
<option value="mannheim">Mannheim</option>
<option value="frankfurt">Frankfurt</option>
<option value="mainz">Mainz</option>
<option value="heidelberg">Heidelberg</option>
</select>
<select id="priceFilter" class="border rounded p-2">
<option value="">All Price Ranges</option>
<option value="1">$</option>
<option value="2">$$</option>
<option value="3">$$$</option>
<option value="4">$$$$</option>
</select>
<input type="text" id="zipCodeFilter" placeholder="Enter ZIP code" class="border rounded p-2">
<select id="tagFilter" class="border rounded p-2">
<option value="">All Tags</option>
</select>
</div>
</div>
<div class="mb-8">
<h2 class="text-2xl font-semibold mb-4">Restaurant Map</h2>
<div id="map"></div>
</div>
<div>
<h2 class="text-2xl font-semibold mb-4">Restaurant Deals</h2>
<div id="restaurantCards" class="grid grid-cols-1 md:grid-cols-2 gap-6">
</div>
</div>
</div>
<div id="imageModal" class="modal hidden fixed inset-0 bg-black bg-opacity-50 overflow-y-auto h-full w-full z-50">
<div class="relative top-20 mx-auto p-5 border w-11/12 md:w-3/4 lg:w-1/2 shadow-lg rounded-md bg-white">
<div class="mt-3 text-center">
<div class="flex justify-end">
<button id="closeModal" class="text-black close-modal">×</button>
</div>
<img id="modalImage" class="mx-auto max-w-full h-auto" src="" alt="Restaurant Image">
<div class="flex justify-between mt-4">
<button id="prevImage" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Previous
</button>
<button id="nextImage" class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded">
Next
</button>
</div>
</div>
</div>
</div>
<script src="map.js"></script>
<script src="restaurants.js"></script>
<script src="modal.js"></script>
<script data-goatcounter="https://masterries.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
</body>
</html>