Repository navigation
Expand file tree
/
Copy pathparcels.html
More file actions
446 lines (416 loc) · 17.7 KB
/
Copy pathparcels.html
File metadata and controls
446 lines (416 loc) · 17.7 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
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
---
layout: default
title: "Parcels — Vacaville"
description: "Opportunity parcels in Vacaville, California. Explore on the map, share your ideas for what you'd like to see, and get involved."
permalink: /parcels/
---
<!-- Project overview modal -->
<div
id="intro-modal"
class="fixed inset-0 z-50 overflow-y-auto"
style="display: none;">
<div class="flex min-h-full items-center justify-center p-4">
<div
id="intro-backdrop"
class="fixed inset-0 bg-gray-900/60 backdrop-blur-sm transition-opacity">
</div>
<div class="relative rounded-lg bg-white shadow-2xl max-w-lg w-full overflow-hidden">
<div class="relative bg-gradient-to-br from-teal-600 to-cyan-700 px-6 py-8 text-white">
<button
id="intro-close-x"
aria-label="Close"
class="absolute top-3 right-3 rounded-md p-1 text-white/70 hover:text-white hover:bg-white/10 transition-colors focus:outline-none focus:ring-2 focus:ring-white/50">
<svg class="h-5 w-5" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12" />
</svg>
</button>
<h2 class="text-2xl font-bold tracking-tight">
Parcels
</h2>
<p class="mt-1 text-teal-100 text-sm">
Exploring feedback, information, and action
</p>
</div>
<div class="px-6 py-6 space-y-4 text-gray-700 text-[15px] leading-relaxed">
<p>
Every city has parcels sitting idle — vacant lots, empty storefronts, underused spaces.
Information about them exists in public records, but it's not connected to the people who can do something about it.
</p>
<p>
This project surfaces that latent information, collects public feedback, and connects places to people whose interests can bring a parcel to life.
</p>
<p class="text-xl font-semibold text-gray-900">
Pick a parcel. Tell us what you'd like to see there.
</p>
</div>
<div class="px-6 pb-6 space-y-3">
<button
id="intro-close"
class="w-full rounded-lg bg-teal-600 px-4 py-2.5 text-sm font-semibold text-white hover:bg-teal-500 transition-colors">
Explore parcels
</button>
<div class="bg-gray-50 border border-gray-200 rounded px-4 py-3 text-xs text-gray-500 leading-relaxed">
<p>
Not endorsed by the City of Vacaville or property owners.
Built from public assessor records as a civic interest project.
</p>
<p class="mt-1">
A project by <a href="https://civic.studio" target="_blank" rel="noopener" class="font-medium text-gray-700 underline hover:text-gray-900">Civic Studio</a>.
</p>
</div>
</div>
</div>
</div>
</div>
<main class="isolate pt-28">
<div class="relative isolate -z-10 overflow-hidden bg-gradient-to-b from-amber-100/20">
</div>
<section class="mx-auto max-w-7xl px-6 lg:px-8 mb-8">
<div class="flex items-center gap-4 mb-6">
<div
class="flex h-16 w-16 items-center justify-center rounded-2xl bg-gradient-to-br from-amber-500 to-amber-600 text-white shadow-lg">
<svg
class="h-8 w-8"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor">
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M15 10.5a3 3 0 11-6 0 3 3 0 016 0z" />
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1115 0z" />
</svg>
</div>
<div>
<h1 class="text-3xl font-bold tracking-tight text-gray-900 sm:text-4xl">
Vacaville Parcels
</h1>
<p class="mt-2 text-lg leading-8 text-gray-600">
{{ site.data.vacaville_parcels.count }} opportunity parcels.
What would you like to see here?
</p>
</div>
</div>
<!-- Summary stats -->
<div class="grid gap-4 sm:grid-cols-3 mb-8">
{% assign commercial_count = 0 %}
{% assign industrial_count = 0 %}
{% assign residential_count = 0 %}
{% assign total_acres = 0 %}
{% for parcel in site.data.vacaville_parcels.parcels %}
{% if parcel.zoning == "Commercial" %}
{% assign commercial_count = commercial_count | plus: 1 %}
{% elsif parcel.zoning == "Industrial" %}
{% assign industrial_count = industrial_count | plus: 1 %}
{% elsif parcel.zoning == "Residential" %}
{% assign residential_count = residential_count | plus: 1 %}
{% endif %}
{% assign total_acres = total_acres | plus: parcel.acres %}
{% endfor %}
<div class="bg-white border border-gray-200 rounded-xl p-5">
<div class="text-sm font-medium text-gray-500">Total Acreage</div>
<div class="text-2xl font-bold text-gray-900 mt-1">
{{ total_acres }} acres
</div>
</div>
<div class="bg-white border border-gray-200 rounded-xl p-5">
<div class="text-sm font-medium text-gray-500">Zoning</div>
<div class="mt-1 flex flex-wrap gap-2">
<span class="inline-flex items-center rounded-md bg-amber-50 px-2 py-1 text-xs font-medium text-amber-700 ring-1 ring-inset ring-amber-700/10">
{{ commercial_count }} Commercial
</span>
<span class="inline-flex items-center rounded-md bg-indigo-50 px-2 py-1 text-xs font-medium text-indigo-700 ring-1 ring-inset ring-indigo-700/10">
{{ industrial_count }} Industrial
</span>
<span class="inline-flex items-center rounded-md bg-emerald-50 px-2 py-1 text-xs font-medium text-emerald-700 ring-1 ring-inset ring-emerald-700/10">
{{ residential_count }} Residential
</span>
</div>
</div>
<div class="bg-white border border-gray-200 rounded-xl p-5">
<div class="text-sm font-medium text-gray-500">Get Involved</div>
<p class="mt-1 text-sm text-gray-700">
Click any parcel to share your ideas and sign up to participate.
</p>
</div>
</div>
<!-- Map -->
<div
id="parcels-map"
class="w-full rounded-2xl border border-gray-200 shadow-sm overflow-hidden mb-8"
style="height: 480px;">
</div>
<!-- Filter buttons -->
<div class="flex flex-wrap gap-2 mb-6">
<button
class="parcel-filter active inline-flex items-center rounded-lg border border-gray-300 bg-white px-3 py-1.5 text-sm font-medium text-gray-700 hover:bg-gray-50 transition-colors"
data-filter="all">
All ({{ site.data.vacaville_parcels.count }})
</button>
<button
class="parcel-filter inline-flex items-center gap-1.5 rounded-lg border border-amber-300 bg-amber-50 px-3 py-1.5 text-sm font-medium text-amber-800 hover:bg-amber-100 transition-colors"
data-filter="Commercial">
<span class="h-2 w-2 rounded-full bg-amber-500"></span>
Commercial ({{ commercial_count }})
</button>
<button
class="parcel-filter inline-flex items-center gap-1.5 rounded-lg border border-indigo-300 bg-indigo-50 px-3 py-1.5 text-sm font-medium text-indigo-800 hover:bg-indigo-100 transition-colors"
data-filter="Industrial">
<span class="h-2 w-2 rounded-full bg-indigo-500"></span>
Industrial ({{ industrial_count }})
</button>
<button
class="parcel-filter inline-flex items-center gap-1.5 rounded-lg border border-emerald-300 bg-emerald-50 px-3 py-1.5 text-sm font-medium text-emerald-800 hover:bg-emerald-100 transition-colors"
data-filter="Residential">
<span class="h-2 w-2 rounded-full bg-emerald-500"></span>
Residential ({{ residential_count }})
</button>
</div>
<!-- Parcels grid -->
<div
class="grid gap-4 sm:grid-cols-2 lg:grid-cols-3"
id="parcels-grid">
{% assign sorted_parcels = site.data.vacaville_parcels.parcels | sort: "address" %}
{% for parcel in sorted_parcels %}
<a
href="/parcels/{{ parcel.slug }}/"
class="parcel-card group block bg-white border border-gray-200 rounded-xl overflow-hidden hover:border-amber-300 hover:shadow-md transition-all"
data-zoning="{{ parcel.zoning }}">
{% if parcel.image %}
<img
src="{{ parcel.image }}"
alt="Photo of {{ parcel.address }}"
class="w-full h-40 object-cover" />
{% else %}
<div class="w-full h-40 bg-gray-100 flex items-center justify-center">
<svg
class="h-12 w-12 text-gray-300"
fill="none"
viewBox="0 0 24 24"
stroke-width="1"
stroke="currentColor">
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M2.25 15.75l5.159-5.159a2.25 2.25 0 013.182 0l5.159 5.159m-1.5-1.5l1.409-1.409a2.25 2.25 0 013.182 0l2.909 2.909M3.75 21h16.5A2.25 2.25 0 0022.5 18.75V5.25A2.25 2.25 0 0020.25 3H3.75A2.25 2.25 0 001.5 5.25v13.5A2.25 2.25 0 003.75 21z" />
</svg>
</div>
{% endif %}
<div class="p-5">
<div class="flex items-start justify-between gap-3">
<div>
<h2 class="font-semibold text-gray-900 group-hover:text-amber-700 transition-colors">
{{ parcel.address }}
</h2>
<p class="text-sm text-gray-500 mt-0.5">
{{ parcel.description }}
</p>
</div>
<span class="inline-flex items-center rounded-md px-2 py-1 text-xs font-medium shrink-0
{% if parcel.zoning == 'Commercial' %}bg-amber-50 text-amber-700 ring-1 ring-inset ring-amber-700/10
{% elsif parcel.zoning == 'Mixed Use' %}bg-indigo-50 text-indigo-700 ring-1 ring-inset ring-indigo-700/10
{% else %}bg-emerald-50 text-emerald-700 ring-1 ring-inset ring-emerald-700/10{% endif %}">
{{ parcel.zoning }}
</span>
</div>
<div class="mt-3 flex items-center gap-3 text-sm text-gray-500">
<span>{{ parcel.acres }} acres</span>
<span class="text-gray-300">|</span>
<span>APN {{ parcel.apn }}</span>
</div>
</div>
</a>
{% endfor %}
</div>
<!-- Share banner -->
<div class="mt-8 bg-amber-50 border border-amber-200 rounded-xl p-6 flex flex-col sm:flex-row items-start sm:items-center gap-4">
<div class="flex-1">
<h3 class="text-base font-semibold text-amber-900">
Share this page
</h3>
<p class="text-sm text-amber-700 mt-1">
Know someone who would have ideas for these parcels?
Spread the word.
</p>
</div>
<div class="flex gap-2">
<a
id="share-twitter"
href="#"
target="_blank"
rel="noopener"
class="inline-flex items-center gap-1.5 rounded-lg bg-white border border-amber-300 px-3 py-2 text-sm font-medium text-amber-800 hover:bg-amber-100 transition-colors">
<svg class="h-4 w-4" fill="currentColor" viewBox="0 0 24 24">
<path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z" />
</svg>
Post
</a>
<a
id="share-facebook"
href="#"
target="_blank"
rel="noopener"
class="inline-flex items-center gap-1.5 rounded-lg bg-white border border-amber-300 px-3 py-2 text-sm font-medium text-amber-800 hover:bg-amber-100 transition-colors">
<svg class="h-4 w-4" fill="currentColor" viewBox="0 0 24 24">
<path d="M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z" />
</svg>
Share
</a>
<button
id="share-copy"
class="inline-flex items-center gap-1.5 rounded-lg bg-white border border-amber-300 px-3 py-2 text-sm font-medium text-amber-800 hover:bg-amber-100 transition-colors">
<svg class="h-4 w-4" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor">
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M13.19 8.688a4.5 4.5 0 011.242 7.244l-4.5 4.5a4.5 4.5 0 01-6.364-6.364l1.757-1.757m9.86-2.54a4.5 4.5 0 00-1.242-7.244l-4.5-4.5a4.5 4.5 0 00-6.364 6.364L5.07 8.621" />
</svg>
Copy link
</button>
</div>
</div>
<!-- Attribution -->
<div class="mt-4 bg-gray-50 border border-gray-200 rounded-xl p-4">
<p class="text-xs text-gray-500">
Parcel data sourced from Solano County assessor records.
<a
href="/2026/05/15/vacaville-parcels-activating-dormant-spaces/"
class="underline hover:text-gray-700">Read about this project</a> or
<a
href="/map/"
class="underline hover:text-gray-700">view the county map</a>.
</p>
</div>
</section>
</main>
<!-- Leaflet -->
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
crossorigin="" />
<script
src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"
integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo="
crossorigin="">
</script>
<script>
(function() {
var parcels = [
{% for parcel in site.data.vacaville_parcels.parcels %}
{
slug: {{ parcel.slug | jsonify }},
address: {{ parcel.address | jsonify }},
lat: {{ parcel.lat }},
lng: {{ parcel.lng }},
description: {{ parcel.description | jsonify }},
acres: {{ parcel.acres }},
zoning: {{ parcel.zoning | jsonify }}
}{% unless forloop.last %},{% endunless %}
{% endfor %}
];
var ZONING_COLORS = {
'Commercial': '#f59e0b',
'Industrial': '#6366f1',
'Residential': '#10b981'
};
var map = L.map('parcels-map', {
center: [38.353, -121.982],
zoom: 13,
scrollWheelZoom: true
});
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
maxZoom: 19,
attribution: '© OpenStreetMap contributors'
}).addTo(map);
var markers = [];
parcels.forEach(function(p) {
var color = ZONING_COLORS[p.zoning] || '#f59e0b';
var marker = L.circleMarker([p.lat, p.lng], {
radius: 10,
fillColor: color,
color: '#fff',
weight: 2,
fillOpacity: 0.85
}).addTo(map);
marker.bindPopup(
'<div style="min-width:180px">' +
'<strong>' + p.address + '</strong><br>' +
'<span style="color:#666">' + p.description + '</span><br>' +
'<span style="color:#999;font-size:0.85em">' + p.acres + ' acres · ' + p.zoning + '</span><br>' +
'<a href="/parcels/' + p.slug + '/" style="color:#d97706;font-weight:600;font-size:0.9em">Share your ideas →</a>' +
'</div>'
);
marker.parcelZoning = p.zoning;
markers.push(marker);
});
// Filter buttons
var filters = document.querySelectorAll('.parcel-filter');
var cards = document.querySelectorAll('.parcel-card');
filters.forEach(function(btn) {
btn.addEventListener('click', function() {
var filter = this.getAttribute('data-filter');
filters.forEach(function(b) {
b.classList.remove('active', 'ring-2', 'ring-offset-1', 'ring-gray-400');
});
this.classList.add('active', 'ring-2', 'ring-offset-1', 'ring-gray-400');
// Filter cards
cards.forEach(function(card) {
if (filter === 'all' || card.getAttribute('data-zoning') === filter) {
card.style.display = '';
} else {
card.style.display = 'none';
}
});
// Filter markers
markers.forEach(function(m) {
if (filter === 'all' || m.parcelZoning === filter) {
m.setStyle({ fillOpacity: 0.85 });
m.setRadius(10);
} else {
m.setStyle({ fillOpacity: 0.15 });
m.setRadius(5);
}
});
});
});
// Share buttons
var pageUrl = encodeURIComponent(window.location.href);
var pageTitle = encodeURIComponent('Vacaville Parcels — What would you like to see here?');
document.getElementById('share-twitter').href =
'https://x.com/intent/tweet?url=' + pageUrl + '&text=' + pageTitle;
document.getElementById('share-facebook').href =
'https://www.facebook.com/sharer/sharer.php?u=' + pageUrl;
document.getElementById('share-copy').addEventListener('click', function() {
navigator.clipboard.writeText(window.location.href).then(function() {
var btn = document.getElementById('share-copy');
var original = btn.innerHTML;
btn.textContent = 'Copied!';
setTimeout(function() { btn.innerHTML = original; }, 2000);
});
});
// Intro modal — show once per session
var introModal = document.getElementById('intro-modal');
var introClose = document.getElementById('intro-close');
var introBackdrop = document.getElementById('intro-backdrop');
if (!sessionStorage.getItem('parcels-intro-seen')) {
introModal.style.display = '';
}
function dismissIntro() {
introModal.style.display = 'none';
sessionStorage.setItem('parcels-intro-seen', '1');
}
introClose.addEventListener('click', dismissIntro);
document.getElementById('intro-close-x').addEventListener('click', dismissIntro);
introBackdrop.addEventListener('click', dismissIntro);
document.addEventListener('keydown', function(e) {
if (e.key === 'Escape' && introModal.style.display !== 'none') {
dismissIntro();
}
});
})();
</script>