-
Notifications
You must be signed in to change notification settings - Fork 3
/
index_old.html
441 lines (375 loc) · 16.5 KB
/
index_old.html
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
---
title: Fab City Global
layout: home
---
<!-- https://datamaps.github.io/ -->
<div class="landing-page page-content">
<div class="landing-hero flex align-content-center">
<div class="col-sm-12 col-md-6">
<h1 class="landing-headline fabcity-mb-25">
Locally produced,<br/>
Globally connected
</h1>
<h5>The transition towards productive and regenerative economies in regions and cities, driven by people</h5>
</div>
</div>
<!--
<div class="home-banner" id="home-banner">
<div class="flex-row align-items-center home-banner-container">
<div class="inline-flex">
Apply now 👉 Master in Design X Distributed Innovation
</div>
<div class="inline-flex">
🎧 Listen to the new episode of <a href="https://fablabbcn.org/podcast" target="_blank">Future Talks</a>
</div>
<div class="inline-flex">
🌿 <a href="https://fablabbcn.org/education/academies/fab-academy-barcelona" target="_blank"> Fab Academy 2022</a>
</div>
</div>
</div>
-->
<div class="marquee-container ">
<div class="menu__item">
<div class="marquee">
<div class="marquee__inner" aria-hidden="true">
<span>Apply now 👉 Master in Design X Distributed Innovation</span>
<span>🎧 Listen to the new episode of <a href="https://fablabbcn.org/podcast" target="_blank">Future Talks</a></span>
<span>🌿 <a href="https://fablabbcn.org/education/academies/fab-academy-barcelona" target="_blank"> Fab Academy 2022</a></span>
<span>Apply now 👉 Master in Design X Distributed Innovation</span>
<span>🎧 Listen to the new episode of <a href="https://fablabbcn.org/podcast" target="_blank">Future Talks</a></span>
<span>🌿 <a href="https://fablabbcn.org/education/academies/fab-academy-barcelona" target="_blank">Fab Academy 2022</a></span>
<span>Apply now 👉 Master in Design X Distributed Innovation</span>
<span>🎧 Listen to the new episode of <a href="https://fablabbcn.org/podcast" target="_blank">Future Talks</a></span>
<span>🌿 <a href="https://fablabbcn.org/education/academies/fab-academy-barcelona" target="_blank">Fab Academy 2022</a></span>
<span>Apply now 👉 Master in Design X Distributed Innovation</span>
<span>🎧 Listen to the new episode of <a href="https://fablabbcn.org/podcast" target="_blank">Future Talks</a></span>
<span>🌿 <a href="https://fablabbcn.org/education/academies/fab-academy-barcelona" target="_blank">Fab Academy 2022</a></span>
<span>Apply now 👉 Master in Design X Distributed Innovation</span>
<span>🎧 Listen to the new episode of <a href="https://fablabbcn.org/podcast" target="_blank">Future Talks</a></span>
<span>🌿 <a href="https://fablabbcn.org/education/academies/fab-academy-barcelona" target="_blank">Fab Academy 2022</a></span>
<span>Apply now 👉 Master in Design X Distributed Innovation</span>
<span>🎧 Listen to the new episode of <a href="https://fablabbcn.org/podcast" target="_blank">Future Talks</a></span>
<span>🌿 <a href="https://fablabbcn.org/education/academies/fab-academy-barcelona" target="_blank">Fab Academy 2022</a></span>
<span>Apply now 👉 Master in Design X Distributed Innovation</span>
<span>🎧 Listen to the new episode of <a href="https://fablabbcn.org/podcast" target="_blank">Future Talks</a></span>
<span>🌿 <a href="https://fablabbcn.org/education/academies/fab-academy-barcelona" target="_blank">Fab Academy 2022</a></span>
<span>Apply now 👉 Master in Design X Distributed Innovation</span>
<span>🎧 Listen to the new episode of <a href="https://fablabbcn.org/podcast" target="_blank">Future Talks</a></span>
<span>🌿 <a href="https://fablabbcn.org/education/academies/fab-academy-barcelona" target="_blank">Fab Academy 2022</a></span>
</div>
</div>
</div>
</div>
<div class="container fabcity-m-tb-50">
<div class="row justify-content-center">
<div class="col-sm-12 col-md-8">
<h2 class="text-center fabcity-mb-50">
What is Fab City?
</h2>
<p class="fabcity-mb-40 fabcity-font-size-20">
Fab City proposes a new urban, economic, social and industrial model that relocalises production to the city and its bioregional context.
It is a challenge to transform how we produce and consume (almost) everything.
The provocation has grown into a global movement, which is facilitated by the Fab City Foundation, a Network of
cities and a Collective of thinkers, makers, and innovators.
</p>
<div class="display-block text-center">
<a href="about.html" class="">
<button class="fabcity-btn text-center" >
About Fab City
</button>
</a>
</div>
</div>
</div>
</div>
<!-- Second section / Map -->
<div class="map-container fabcity-p-tb-40">
<div class="container-fluid">
<div class="row">
<div class="col-md-6">
<h2>
Fab City Network
</h2>
</div>
<div class="col-md-6">
<p>
Central to the global initiative is a network of cities,
regions and settlements who have taken up the challenge to move towards local production by 2054.
New members are welcomed to the Network at the annual Fab City Summit.
</p>
</div>
</div>
<div id="map-container" class="worldmap"></div>
<div class="text-center about-the-network">
<a href="network.html" class="">
<button class="fabcity-btn">
About the network
</button>
</a>
</div>
</div>
</div>
<div id="get-involved" class="bg-beige with-line-separator fabcity-p-tb-50 container-fluid">
<div class="row">
<div class="col-md-12">
<h3>
Get Involved
</h3>
</div>
</div>
<div class="row">
<div class="col-md-6 fabcity-mt-35">
<img src="assets/images/pages/home/FabCityweb_manifesto.jpg" alt="" class="img-fluid fabcity-mb-35 min-width-100">
<a href="/assets/documents/FabCity_Manifesto.pdf" target="_blank" class="fab-city-link display-block">
Read the Manifesto →
</a>
</div>
<div class="col-md-6 fabcity-mt-35">
<img src="assets/images/pages/home/FabCityweb_summit.jpg" alt="" class="img-fluid fabcity-mb-35 min-width-100">
<a href="/events.html" class="fab-city-link display-block">
Join the Summit →
</a>
</div>
</div>
</div>
<!-- Blog -->
<div class="container-fluid fabcity-p-tb-50">
<div class="row">
<div class="col-md-12">
<h3 class="text-black">
Blog post from the Network
</h3>
</div>
</div>
<div id="blog-container" class="row fabcity-m-tb-35"></div>
<div class="row" >
<div class="col-md-12 text-center fabcity-mt-35">
<a href="https://blog.fab.city/" target="_blank" class="">
<button class="fabcity-btn">
More Stories
</button>
</a>
</div>
</div>
</div>
<!-- UPCOMING -->
<!--
<div class="container-fluid fabcity-p-tb-50 bg-orange with-line-separator">
<div class="row">
<div class="col-md-12">
<h3>
Upcoming
</h3>
</div>
</div>
<div class="display-block" style="height: 200px;"></div>
</div>
-->
<!-- RESOURCES -->
<div class="container-fluid fabcity-p-tb-50 with-line-separator">
<div class="row">
<div class="col-md-6 flex mobile-row-separator">
<div>
<h3 class="fabcity-mb-20">
Resources
</h3>
<p class="col-md-10 fabcity-pl-0 fabcity-mb-20">
Here you find a selection of the Fab City’s most efficient and thoroughly tested tools that you can use in your work and as source of inspiration.
</p>
</div>
<a href="https://fabcity.gitbook.io/handbook" target="_blank" class="fab-city-link align-self-flex-end">
See the Handbook →
</a>
</div>
<div class="col-md-6 flex align-items-center">
<img src="assets/images/pages/home/FabCityweb_resources.jpg" alt="" class="img-fluid min-width-100">
</div>
</div>
</div>
<!-- Don't miss out -->
<div class="bg-beige container-fluid">
<div class="row fabcity-p-tb-40">
<div class="col-12 col-md-6">
<h2>
Don't miss out!
</h2>
<p class="fabcity-mt-15">
Sign up for our newsletter to stay in the loop
</p>
</div>
<div class="col-12 col-md-6 flex align-items-center">
<div class="newsletter-form">
<form action="https://city.us12.list-manage.com/subscribe/post?u=9fda6809b952c81883e74c723&id=0dbf33f1d5" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<fieldset>
<input type="email" placeholder="Type your address" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</fieldset>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_9fda6809b952c81883e74c723_0dbf33f1d5" tabindex="-1" value=""></div>
<div class="button">
<button type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="fabcity-btn">More stories</button>
</div>
</form>
</div>
</div>
</div>
</div>
<script type='text/javascript' src='//s3.amazonaws.com/downloads.mailchimp.com/js/mc-validate.js'></script>
<script type='text/javascript'>
(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';fnames[5]='MMERGE5';ftypes[5]='text';fnames[6]='MMERGE6';ftypes[6]='text';fnames[7]='MMERGE7';ftypes[7]='text';}(jQuery));var $mcj = jQuery.noConflict(true);
</script>
<!-- Our online learning community -->
<div class="fabcity-p-tb-50 container-fluid">
<div class="row">
<div class="col-md-12">
<h3>
Our online learning Community
</h3>
</div>
</div>
<div class="row">
<div class="col-md-6 fabcity-mt-35">
<img src="assets/images/pages/home/FabCityweb_manifesto.jpg" alt="" class="img-fluid fabcity-mb-35 min-width-100">
<!--
<a href="#" class="fab-city-link display-block">
Join the community →
</a>
-->
</div>
<div class="col-md-6 fabcity-mt-35">
<img src="assets/images/pages/home/FabCityweb_summit.jpg" alt="" class="img-fluid fabcity-mb-35 min-width-100">
<!--
<a href="#" class="fab-city-link display-block">
Join the community →
</a>
-->
</div>
</div>
</div>
<!-- javascript -->
<script type="text/javascript">
// Initializes Map
function initMap() {
let bombMap = new Datamap({
element: document.getElementById('map-container'),
scope: 'world',
geographyConfig: {
popupOnHover: false,
highlightOnHover: false,
borderWidth: 1,
borderOpacity: 1,
borderColor: '#fff'
},
height: null,
width: null,
fills: {
'IND': '#22dba4',
defaultFill: 'rgba(28, 109, 80, 0.8)'
}
});
let bombs = [
{% for city in site.data.global-initiative.cities %} // Begin for loop for implementing Liquid, generates items for each city in _data/global-initiative.yml
// This Worldmap library puts the cities according to the coordinates the right spot
{ name: '{{ city.name }}',
city: '{{ city.name }}',
country: '{{ city.country }}',
radius: 8,
fillKey: 'IND',
significance: '{{ city.org }}',
date: '{{ city.joined }}',
latitude: '{{ city.latitude }}',
longitude: '{{ city.longitude }}',
link: '{{ city.webpresence }}',
},
{% endfor %} // End for loop
];
// draw bubbles for bombs
bombMap.bubbles(bombs, {
popupTemplate: function (geo, data) {
// HTML output format ! Watch it! Variables below are written in JS from the Worldmap library so don't use Liquid
return [
'<div id="popup" class=\"map-card popup fabcity-p-tb-10\" style="min-width:250px;position:absolute; z-index:3000;">',
'<div class=\"card-map-city-header flex space-between fabcity-p-lr-10 fabcity-pb-10 align-items-center\">',
'<span class=\"card-map-city-title \">' + data.city,
'</span>',
'<span class=\"close-map-card\" onclick=\"d3.selectAll(\'.popup\').style(\'display\', \'none\');">' +
'</span>',
'</div>',
//'<div class="borderline dark w-100 thin"></div>',
'<div class="map-card-content">',
'<p class=\"fabcity-mt-10 fabcity-font-size-18\">' + data.significance +'</p>',
'<a href=\"network.html"' + data.link + '\" class="">Read more →</a>',
'</div>',
'</div>'].join('');
}
});
}
initMap();
/*
window.addEventListener("resize", () => {
initMap();
});
*/
// BLOG
// Select HTML Tag for ouput
let blogContainer = document.getElementById('blog-container');
// Create variable for HttpRequest
let xhr1 = new XMLHttpRequest();
// Loads the requested data and puts it in the right HTML tags with css classes
xhr1.onreadystatechange = function() {
if (xhr1.readyState === 4 && xhr1.status === 200) {
let data = JSON.parse(xhr1.responseText);
if (data.status === 'ok') {
let i = 0, t = 4; // t = number of articles
for (; i < t; ++i ){ // For each individual article from the blog do :
let item = data.items[i];
// Creates list element
let article = document.createElement('div');
article.setAttribute('id' , i);
article.setAttribute('class' , 'col-md-3 article-item');
// Surtitle
let itemSurtitleContainer = document.createElement('div');
itemSurtitleContainer.setAttribute('class' , 'flex article-surtitle');
let itemDate = document.createElement('p');
itemDate.setAttribute('class' , 'article-date');
let date = new Date(item.pubDate);
let day = ("0" + date.getDate()).slice(-2)
let month = ("0" + (date.getMonth() + 1)).slice(-2)
let year = date.getFullYear();
year = year.toString().substr(-2)
itemDate.innerText = `${day}-${month}-${year}`;
let itemPlace = document.createElement('p');
itemPlace.setAttribute('class' , 'article-place');
//itemPlace.innerText = "Barcelona";
itemPlace.innerText = "";
// Title
let itemTitle = document.createElement('a');
itemTitle.setAttribute('class' , 'fab-city-link display-block article-title');
itemTitle.setAttribute('href' , item.link);
itemTitle.innerText = `${item.title} →`;
// Thumbnail
let thumbnail = document.createElement('img');
thumbnail.setAttribute('src' , item.thumbnail);
thumbnail.setAttribute('class', 'img-fluid article-thumbnail');
blogContainer.appendChild(article); // PUSHING
article.appendChild(itemSurtitleContainer); // PUSHING
itemSurtitleContainer.appendChild(itemDate); // PUSHING
itemSurtitleContainer.appendChild(itemPlace); // PUSHING
article.appendChild(itemTitle); // PUSHING
article.appendChild(thumbnail) // PUSHING
}
}
}
};
// Requests HTTP in XML format
xhr1.open(
'GET',
'https://api.rss2json.com/v1/api.json?rss_url=https%3A%2F%2Fblog.fab.city%2Ffeed',
true
);
xhr1.send();
</script>
</div>
</div>