-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
258 lines (217 loc) · 12 KB
/
index.html
File metadata and controls
258 lines (217 loc) · 12 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
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MapKit! Get Started with Google Maps Today!</title>
<link rel="stylesheet" href="stylesheet.css">
</head>
<body>
<!-- Header Section -->
<header>
<div class="container">
<h1>MapKit</h1>
<nav id="navbar">
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="gettingstarted.html">Getting Started</a></li>
<li><a href="#template">Templates</a></li>
</ul>
</nav>
</div>
</header>
<!-- Description Section -->
<!-- <section id="description">
<div class="container desc-container">
<div class="desc-left">
<h2><span class="accent-bar"></span> About MapKit</h2>
<p>
MapKit is a collection of ready-to-use templates designed to help developers build projects faster with the
Google Maps API. Whether you're exploring a new idea or launching a full product, MapKit lets you skip the setup
and get straight to building.
</p>
</div>
</div>
</section> -->
<section class="mapkit-hero">
<div class="hero-left">
<h1>Welcome to MapKit</h1>
<p>
MapKit is a collection of ready-to-use templates designed to help developers build projects faster with the Google Maps API.
Whether you're exploring a new idea or launching a full product, MapKit lets you skip the setup and get straight to building.
Best part? We're built by the community, for the community.
</p>
<a href="#templates" class="cta-button">Browse Templates</a>
</div>
<div class="hero-right">
<iframe
src="https://www.google.com/maps/embed?pb=!1m14!1m12!1m3!1d12093.43679276419!2d-87.6298!3d41.8781!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!5e0!3m2!1sen!2sus!4v1691252630013"
width="100%"
height="100%"
style="border:0;"
allowfullscreen=""
loading="lazy"
referrerpolicy="no-referrer-when-downgrade"
></iframe>
</div>
</section>
<section id="preview-warning" style="background-color: #fff3cd; border: 1px solid #ffeeba; padding: 16px 20px; margin: 40px auto 20px auto; width: 92%; max-width: 1000px; border-radius: 8px; color: #856404; font-size: 15px;">
<strong>⚠️ Previews Disabled:</strong> For security reasons, we’ve removed our Google Maps API key from the site. To preview any template, please download the project files, create a <code>.env</code> file with your own Google Maps API key, and run it locally. See more about getting your own API key and keeping it secure on the <a href="gettingstarted.html" style="color: blue">Getting Started</a> page and the files on <a href="https://github.com/DPandaman/MapKit" style="color: blue">the Github</a>.
<br /><br />
We’re currently working on publishing the full site with secure server-side API key handling, allowing users to preview templates directly in the browser. Unfortunately, we couldn’t implement this before the deadline, but it’s a top priority going forward. Firebase integration is also in progress to support features like template hosting and user authentication for uploads from the community in the near future.
<br /><br />
We apologize for the inconvience and hope to make MapKit a great resource for Googlers around the world!
</section>
<!-- Template Grid Section -->
<section id="templates">
<div class="container">
<h2 class="section-header"></span>Templates</h2>
<section id="search">
<div class="searchContainer">
<input type="text" id="search-input" placeholder="Search templates by keywords" />
</div>
</section>
<div class="template-grid" id="template-grid">
<!-- Template 1 -->
<div class="template-card" data-tags="real, estate, buy, house">
<span class="type-tag">Web Template</span>
<img src="real-estate.png" alt="Template 1">
<h3>Real Estate Lookup</h3>
<p>View nearby homes for sale and filter by preference</p>
<div class="tags">
<span class="realestatetag">Real Estate</span>
<span class="searchtag">Search</span>
</div>
<button class="preview-btn" id="preview1" data-template="template2.zip">Preview</button>
<div id="mapModal1" class="modal">
<div class="modal-content">
<span class="close" id="closeMapBtn1">×</span>
<h2 style="margin-bottom: 5px;">Real Estate Template</h2>
<iframe src="realestate.html" width="100%" height="80vh" style="border: none;"></iframe>
</div>
</div>
<button class="download-btn" onclick="downloadTemplate('realestate.html')">Download</button>
<p class="creator">Created by: Devanshu Pandya, Yogi Patel</p>
</div>
<!-- Template 2 -->
<div class="template-card" data-tags="travel, vacation, plan, itinerary">
<span class="type-tag">Web Template</span>
<img src="tour.png" alt="Template 2">
<h3>Destination Planner</h3>
<p>Create your own itineraries for famous destinations</p>
<div class="tags">
<span class="traveltag">Travel</span>
<span class="markertag">Markers</span>
</div>
<button id="preview2" class="preview-btn" data-template="template2.zip">Preview</button>
<div id="mapModal2" class="modal">
<div class="modal-content">
<span class="close" id="closeMapBtn2">×</span>
<h2 style="margin-bottom: 5px;">Destination Planner</h2>
<iframe src="tourmap.html" width="100%" height="80vh" style="border: none;"></iframe>
</div>
</div>
<button class="download-btn" onclick="downloadTemplate('tourmap.html')">Download</button>
<p class="creator">Created by: Yogi Patel, Kush Patel</p>
</div>
<!-- Template 3 -->
<div class="template-card" data-tags="activity, plan, people, fun">
<span class="type-tag">Chrome Extension</span>
<img src="activityplanner.png" alt="Template 3">
<h3>Activity Finder</h3>
<p>Find the nearest locations for activities in an Chrome Extension from your searches</p>
<div class="tags">
<span class="markertag">Markers</span>
<span class="nearmetag">Near-Me</span>
</div>
<!-- <button class="preview-btn" data-template="template2.zip">Preview</button> -->
<button class="download-btn" onclick="downloadTemplate('ActivityPlannerCE.zip')">Download</button>
<!-- idk what i'm doing, Google if you're seeing this, pity points please -->
<p class="creator">Created by: Kush Patel, Devanshu Pandya</p>
</div>
<!-- Template 4 -->
<div class="template-card" data-tags="weather, globe, visuals, api">
<img src="weather.png" alt="Template 4">
<span class="type-tag">Chrome Extension</span>
<h3>Weather</h3>
<p>Map with custom layers and markers.</p>
<div class="tags">
<span class="visualtag">Visualizations</span>
<span class="leaflettag">LeafLet</span>
</div>
<!-- <button class="preview-btn" data-template="template2.zip">Preview</button> -->
<button class="download-btn" onclick="download('weatherCE.zip')">Download</button>
<p class="creator">Created by: Yogi Patel, Kush Patel</p>
</div>
<!-- Template 5 -->
<div class="template-card" data-tags="kush">
<img src="basic.png" alt="Template 5">
<span class="type-tag">Web Template</span>
<h3>Basic Map</h3>
<p>Your Step 1 into Google Maps</p>
<div class="tags">
<span class="basictag">Basic</span>
</div>
<button class="preview-btn" id="preview5" data-template="template2.zip">Preview</button>
<div id="mapModal5" class="modal">
<div class="modal-content">
<span class="close" id="closeMapBtn5">×</span>
<h2 style="margin-bottom: 5px;">Your First Google Maps Project</h2>
<iframe src="basic.html" width="100%" height="80vh" style="border: none;"></iframe>
</div>
</div>
<button class="download-btn" onclick="downloadTemplate('basic.html')">Download</button>
<p class="creator">Created by: Devanshu Pandya, Kush Patel</p>
</div>
<button class="template-card upload-card" id="upload-template-card">
<div class="upload-icon">+</div>
<h3>Upload Your Template</h3>
<p>Share your own Google Maps template with the community!</p>
<input type="file" id="upload-input" accept=".zip" hidden>
<!-- <button class="upload-btn" onclick="document.getElementById('upload-input').click()">Choose File</button> -->
</button>
<div id="uploadModal" class="modal">
<div class="modal-content">
<span class="close">×</span>
<h2>Submit Your Template</h2>
<form id="templateUploadForm">
<label for="templateName">Template Name</label>
<input type="text" id="templateName" name="templateName" required>
<label for="templateKeywords">Keywords (comma-separated)</label>
<input type="text" id="templateKeywords" name="templateKeywords" placeholder="maps, directions, POI">
<label for="templateDescription">Description</label>
<textarea id="templateDescription" name="templateDescription" rows="4"></textarea>
<label for="templateImage">Upload Preview Image</label>
<input type="file" id="templateImage" name="templateImage" accept="image/*" required>
<label for="templateFiles">Upload Folder</label>
<input type="file" id="templateFiles" name="templateFiles" webkitdirectory directory multiple required>
<button type="submit">Submit Template</button>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer Section -->
<footer id="footer">
<div class="container">
<p>© 2025 MapKit</p>
<p style="margin-top: 3px;">Thank you Google!</p>
</div>
</footer>
<script src="script.js"></script>
<script>
function downloadTemplate(filename) {
console.log("Download function called with:", filename);
const link = document.createElement('a');
link.href = filename;
console.log("Link href:", link.href);
link.download = filename;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
}
</script>
</body>
</html>