-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbundle.js
512 lines (484 loc) · 18.3 KB
/
bundle.js
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
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
const page = require('..')
function demo (cb) {
let font = new FontFace('Magic School One', 'url("https://fonts.cdnfonts.com/s/56374/MagicSchoolOne.woff")')
document.fonts.add(font)
font.load()
const favicon = document.createElement('link')
favicon.setAttribute('rel', 'icon')
favicon.setAttribute('type', 'imagine/png')
favicon.setAttribute('href', './assets/Wizard-Amigos---Stickers---WIZARD-BALL---TRANSPARENT---2022.png')
document.head.append(favicon)
const codecamp = page(cb)
return codecamp
}
var count = 0
const el = demo(async () => {
await document.fonts.ready
const style = document.createElement('style')
style.textContent = `
html, body {
height: 100%;
background-color: hsla(245, 55%, 50%, 1);
font-size: 1.3em;
margin: 0;
padding: 0;
}
`
document.body.append(style, el)
})
},{"..":2}],2:[function(require,module,exports){
const list = require('speakers')()
module.exports = page
function page (cb) {
const el = document.createElement('div')
const shadow = el.attachShadow({ mode: 'closed' })
const booking_button = document.createElement('button')
booking_button.innerText = 'Tickets / Booking'
booking_button.onclick = () => book()
const map_button = document.createElement('button')
map_button.innerText = 'Map'
map_button.onclick = () => open_map()
const speakers = document.createElement('div')
speakers.classList.add('box')
speakers.innerHTML = `<h2> Speakers </h2> </div>`
const container = document.createElement('div')
container.classList.add('speakers')
speakers.append(container)
list.forEach(item => {
const img = document.createElement('img')
img.setAttribute('src', `./assets/speakers/${item.name}`)
img.classList.add((item.from === 'remote') ? 'remote' : 'local' )
const name = document.createElement('div')
name.innerText = item.name
name.classList.add('name')
const project = document.createElement('div')
project.innerText = item.project
project.classList.add('project')
const speaker = document.createElement('a')
if (item.link) speaker.setAttribute('href', item.link)
speaker.setAttribute('target', '_blank')
speaker.classList.add('speaker')
speaker.append(img, name, project)
container.append(speaker)
})
shadow.innerHTML = `
<link rel="preload" href'./assets/astral3.jpg' as="image">
<link rel="preload" href'./assets/astral9.jpg' as="image">
<link rel="preload" href'./assets/astral1.jpg' as="image">
<link rel="preload" href'./assets/astral8.jpg' as="image">
<link rel="preload" href'./assets/astral10.jpg' as="image">
<link rel="preload" href'./assets/astral7.jpg' as="image">
<link rel="preload" href'./assets/astral5.jpg' as="image">
<link rel="preload" href'./assets/astral2.jpg' as="image">
<link rel="preload" href'./assets/astral4.jpg' as="image">
<link rel="preload" href'./assets/astral6.jpg' as="image">
<link rel="preload" href'./assets/astral11.jpg' as="image">
<link rel="preload" href'./assets/astral12.jpg' as="image">
<link rel="preload" href'./assets/astral3.jpg' as="image">
<div class='main'>
<img class='logo' src='./assets/Wizard-Amigos---Stickers---FOUR-FACES---TRANSPARENT---2022.png'></img>
<h1>
<span>Wizard Amigos</span>
<span> Code Camp</span>
</h1>
<div class='date'>Sept 26 - Oct 10 2022, Wales (UK)</div>
<div class='box'>
<p>Wizard Amigos code camp was a 2 week DIY event from September 26 to October 10.</p>
<p>
First week was reserved for freestyle coworking, outdoor activities and just easy going hanging out with the like-minded people and the second week for informal talks and workshops.
</p>
<p>Half a month of living, breathing and learning P2P and the future of the internet.</p>
</div>
<div class='box'>
<h2> Talks </h2>
<p> All 33 talks and workshops are now available <a target='_blank' href='https://www.youtube.com/playlist?list=PLubqJ-IuY27C6crYh0UzjGL3_GrmaabL_'> on this link.</a></p>
<p> You can also check out <a target='_blank' href='https://photos.google.com/share/AF1QipNmD4-fYqt3gpszGQj7Xf_ny3PBCkxDEnPWu4bOs9p9MhDsmYmcznX-87Rn8VfDbQ?key=MjhCRVFfS3J2alVFdzVHZHZrd3NaNzBMY1F4UGJB'> photos and videos from the event.</a></p>
<p>To support Wizard Amigos, please donate through our <a target='_blank' href='https://opencollective.com/wizardamigos'> Open Collective page. </a></p>
</div>
<speakers></speakers>
<div class='venue box'>
<h2>Venue</h2>
<p>
Accommodation was provided by the Astralship, a hackerspace that promotes
creativity, collaboration and innovation located in
Deiniolen, Wales. You can get there by taking a
<a target='_blank' href='https://www.thetrainline.com/book/results?origin=2144c4ddc11461cf9b03af198933e8df&destination=da5bb7333af0b34c0c39e59b5a53b139&outwardDate=2022-09-26T09%3A45%3A00&outwardDateType=departAfter&journeySearchType=single&passengers%5B%5D=1992-08-07&directSearch=false&selectedOutward=SAhkJK5SWK8%3D%3AyRnNMstN3X8%3D'>direct train</a>
to Bangor (approx. 3h from London)
and then a taxi to Deniolen (approx. £20).
</p>
<map_button></map_button>
<p class='astralship'>
The Astralship is based in a 200 year old chapel, where the mountains of Snowdonia
meet the sea. The chapel dates from 1838 and is located in an unbelievably beautiful area,
with endless mountains, beaches and quarries to explore.
It's the perfect place to be if you like hiking, climbing and wild swimming.
</p>
<div class='gallery'>
<img src='./assets/astral3.jpg'></img>
<img src='./assets/astral9.jpg'></img>
<img src='./assets/astral1.jpg'></img>
<img src='./assets/astral8.jpg'></img>
<img src='./assets/astral10.jpg'></img>
<img src='./assets/astral7.jpg'></img>
<img src='./assets/astral5.jpg'></img>
<img src='./assets/astral4.jpg'></img>
<img src='./assets/astral6.jpg'></img>
<img src='./assets/astral11.jpg'></img>
<img src='./assets/astral13.jpg'></img>
<img src='./assets/astral2.jpg'></img>
<img src='./assets/astral12.jpg'></img>
</div>
</div>
<div class='faq box'>
<h2>About</h2>
<h3>Who is organizing this?</h3>
<p>
This event is being organised by enthusiasts, for enthusiasts.
Namely <a href='https://twitter.com/ninabreznik' target="_blank">ninabreznik</a>
and <a href='https://twitter.com/serapath' target="_blank">serapath</a> who are active within the P2P community.
Anybody who would like to help organize next events should shoot us a message in <a href='https://discord.gg/8FzZPHkp44' target="_blank">WizardAmigos Discord</a>.
</p>
<h3>Is event sponsored?</h3>
<p>
No. We have not yet asked for, nor recieved any interest in sponsorship.
If you would like to support Wizard Amigos, you can donate through our <a href="https://opencollective.com/wizardamigos" target="_blank">Open Collective page.</a>
</p>
</div>
</div>
`
shadow.querySelector('img').onload = cb
shadow.querySelector('speakers').replaceWith(speakers)
shadow.querySelector('map_button').replaceWith(map_button)
// shadow.adoptedStyleSheets = [sheet]
const style = document.createElement('style')
style.textContent = get_theme()
shadow.append(style)
return el
// handlers
function book () {
window.open('https://forms.zohopublic.com/virtualoffice22084/form/WizardAmigosCodeCamp/formperma/W61690fN8Q0cci-bY3M-87kMmQ2kvKBjybp4ZNaX60Y')
}
function open_map () {
window.open('https://www.openstreetmap.org/way/308537567')
}
}
function get_theme () {
return `
:host {
font-family: "Courier New", Courier, monospace;
--pink: hsla(291, 100%, 81%, 1);
--light-purple: hsla(247, 89%, 70%, 1);
--fluo-green: hsla(121, 97%, 65%, 1);
--green: hsla(163, 76%, 58%, 1);
--red: hsla(316, 56%, 32%, 1);
}
.main {
display: grid;
justify-items: center;
line-height: 2rem;
grid-template-columns: 1fr 4fr 1fr;
justify-items: center;
}
.logo {
min-width: 350px;
max-width: 450px;
width: 20%;
height: auto;
grid-column-start: 2;
}
h1 {
font-family: 'Magic School One', sans-serif;
display: block;
line-height: 0.8;
text-align: center;
font-size: 4rem;
font-weight: 100;
color: var(--pink);
grid-column-start: 2;
}
h2 {
font-family: 'Magic School One', sans-serif;
text-align: center;
line-height: 1;
font-size: 3em;
font-weight: 100;
color: var(--fluo-green);
grid-column-start: 2;
}
h3 {
color: var(--green);
grid-column-start: 2;
}
p {
color: var(--green);
display: subgrid;
justify-items: space-between;
grid-column-start: 2;
}
a {
color: var(--green);
transition: color .3s;
min-width: 280px;
max-width: 350px;
width: 20%;
height: auto;
}
a:hover {
text-decoration: underline;
color: var(--fluo-green);
transition: color .3s;
cursor: pointer;
}
button {
font-size: 1rem;
border: none;
padding: 1em;
background-color: var(--pink);
transition: background-color .3s ease-in-out;
color: var(--red);
grid-column-start: 2;
margin: 3% 0 3% 0;
width: 215px;
height: 70px;
}
button:hover {
background-color: var(--fluo-green);
transition: background-color .3s ease-in-out;
cursor: pointer;
}
.date {
font-family: "Courier New", Courier, monospace;
justify-items: center;
text-align: center;
font-size: 2rem;
font-weight: 600;
color: var(--fluo-green);
grid-column-start: 2;
}
.box {
grid-column-start: 2;
border: 16px solid var(--light-purple);
transition: box-shadow .3s ease-in-out;
padding: 3%;
margin: 5% 5% 0 5%;
text-align: center;
font-size: 1.5rem;
width: 90%;
}
.speakers {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
justify-items: center;
}
.speaker {
padding: 10px;
text-decoration: none;
}
.speaker:hover {
text-decoration: none;
}
.speaker .name {
text-align: center;
font-weight: 700;
font-size: 1.2rem;
color: var(--fluo-green);
}
.speaker .project {
text-align: center;
font-size: 1rem;
color: var(--green);
}
.speaker img {
border-radius: 50%;
margin-top: 20%;
min-width: 150px;
max-width: 150px;
width: 50%;
height: auto;
transition: all 0.5s ease-in-out 0s;
}
.speaker img:hover {
cursor: pointer;
transform: translate(5%, 10%);
box-shadow: var(--purple);
-moz-box-shadow: var(--purple);
-webkit-box-shadow: var(--purple);
-o-box-shadow: var(--purple);
transition: all 0.3s ease-in-out 0s;
}
.local {
box-shadow: 7px 7px var(--pink);
-moz-box-shadow: 7px 7px var(--pink);
-webkit-box-shadow: 7px 7px var(--pink);
-o-box-shadow: 7px 7px var(--pink);
}
.remote {
box-shadow: 7px 7px var(--fluo-green);
-moz-box-shadow: 7px 7px var(--fluo-green);
-webkit-box-shadow: 7px 7px var(--fluo-green);
-o-box-shadow: 7px 7px var(--fluo-green);
}
.booking {
}
.venue {
}
.faq {
word-break: break-word;
}
.astralship {
font-style: italic;
font-size: 1rem;
padding: 0 3% 3% 3%;
}
.gallery {
grid-column-start: 2;
grid-column-end: 3;
display: grid;
grid-template-columns: repeat(8, 1fr);
grid-template-rows: repeat(31, 5vw);
grid-gap: 15px;
}
.gallery img {
height: 100%;
width: 100%;
object-fit: cover;
transition: border .3s, opacity .3s ease-in-out;
}
.gallery img:hover {
opacity: 0.8;
transition: border .3s, opacity .3s ease-in-out;
}
.gallery img:nth-child(1) {
grid-column-start: 1;
grid-column-end: 6;
grid-row-start: 1;
grid-row-end: 7;
}
.gallery img:nth-child(2) {
grid-column-start: 6;
grid-column-end: 9;
grid-row-start: 1;
grid-row-end: 4;
}
.gallery img:nth-child(3) {
grid-column-start: 1;
grid-column-end: 6;
grid-row-start: 12;
grid-row-end: 18;
}
.gallery img:nth-child(4) {
grid-column-start: 4;
grid-column-end: 9;
grid-row-start: 7;
grid-row-end: 12;
}
.gallery img:nth-child(5) {
grid-column-start: 6;
grid-column-end: 9;
grid-row-start: 4;
grid-row-end: 7;
}
.gallery img:nth-child(6) {
grid-column-start: 6;
grid-column-end: 9;
grid-row-start: 12;
grid-row-end: 18;
}
.gallery img:nth-child(7) {
grid-column-start: 1;
grid-column-end: 4;
grid-row-start: 7;
grid-row-end: 12;
}
.gallery img:nth-child(8) {
grid-column-start: 4;
grid-column-end: 9;
grid-row-start: 18;
grid-row-end: 23;
}
.gallery img:nth-child(9) {
grid-column-start: 1;
grid-column-end: 4;
grid-row-start: 18;
grid-row-end: 23;
}
.gallery img:nth-child(10) {
grid-column-start: 1;
grid-column-end: 6;
grid-row-start: 23;
grid-row-end: 28;
}
.gallery img:nth-child(11) {
grid-column-start: 6;
grid-column-end: 9;
grid-row-start: 23;
grid-row-end: 28;
}
.gallery img:nth-child(12) {
grid-column-start: 1;
grid-column-end: 4;
grid-row-start: 28;
grid-row-end: 33;
}
.gallery img:nth-child(13) {
grid-column-start: 4;
grid-column-end: 9;
grid-row-start: 28;
grid-row-end: 33;
}
@media screen and (max-width: 956px) {
.main {
grid-template-columns: 1fr 5fr 1fr;
font-size: 1vw;
};
}
@media only screen and (max-width: 768px) {
.main {
grid-template-columns: 1fr 8fr 1fr;
font-size: 1vw;
};
}
`
}
},{"speakers":3}],3:[function(require,module,exports){
module.exports = get_speakers
function get_speakers () {
const list = [
{ name: 'mafintosh', project: 'Hypercore & Holepunch', from: 'remote', link: 'https://twitter.com/mafintosh' },
{ name: 'jam10o', project: 'Shokunin network', from: 'local', link: 'https://twitter.com/jam10o'},
{ name: 'dboutcert', project: 'WizardAmigos', from: 'remote', link: 'https://twitter.com/dboutcert'},
{ name: 'noraliucode', project: 'x-To-Earn', from: 'local', link: 'https://twitter.com/noraliucode' },
{ name: 'MBrinsleyHarris', project: 'Hacktion Lab', from: 'local' , link: 'https://twitter.com/MBrinsleyHarris'},
{ name: 'kumavis_', project: 'LavaMoat & MetaMask', from: 'remote', link: 'https://twitter.com/kumavis_'},
{ name: 'heapwolf', project: 'Socket Supply', from: 'remote', link: 'https://twitter.com/heapwolf'},
{ name: 'carax', project: 'Sher & Geut', from: 'remote', link: 'https://twitter.com/carax'},
{ name: 'ninabreznik', project: 'DatDot & WizardAmigos', from: 'local', link: 'https://twitter.com/ninabreznik'},
{ name: 'zobroj', project: 'Art & Design', from: 'local', link: 'https://twitter.com/zobroj'},
{ name: 'RangerMauve', project: 'Agregore', from: 'remote', link: 'https://twitter.com/RangerMauve'},
{ name: 'Aglae Bindi', project: 'Astralship & TyddynTeg', from: 'local', link: 'https://twitter.com/AstralMarlene'},
{ name: 'serapath', project: 'DatDot & WizardAmigos', from: 'local', link: 'https://twitter.com/serapath'},
{ name: 'liamkurmos', project: 'Astralship', from: 'local', link: 'https://twitter.com/liamkurmos'},
{ name: 'naugtur', project: 'Endo & MetaMask', from: 'remote', link: 'https://twitter.com/naugtur'},
{ name: 'telamohn', project: 'Pico Stack', from: 'remote', link: 'https://twitter.com/telamohn'},
{ name: 'hugozap', project: 'Rust in JS', from: 'remote', link: 'https://twitter.com/hugozap'},
{ name: 'xylodrone', project: 'Ordum', from: 'local', link: 'https://twitter.com/xylodrone'},
{ name: 'jeffemmett', project: 'Commons stack', from: 'remote', link: 'https://twitter.com/jeffemmett'},
{ name: 'MikolaLysenko', project: '0fps & Socket Security', from: 'remote', link: 'https://twitter.com/MikolaLysenko'},
{ name: 'nicksellen', project: 'Karrot', from: 'local', link: 'https://nicksellen.co.uk/'},
{ name: 'micahscopes', project: 'Wondering Xyz', from: 'remote', link: 'https://twitter.com/micahscopes'},
{ name: 'julianne becker', project: 'Coconat', from: 'remote', link: 'https://www.facebook.com/juliannebecker'},
{ name: 'whimful', project: 'Ahau', from: 'remote', link: 'https://twitter.com/whimful'},
{ name: 'shaneo_donnell', project: 'Value Flows', from: 'remote', link: 'https://twitter.com/shaneo_donnell'},
{ name: 'Hdegroote', project: 'HyperPubees', from: 'remote', link: 'https://gitlab.com/HDegroote'},
{ name: 'Stephen Reid', project: 'Worker Cooperatives and DAOs', from: 'remote', link: 'https://twitter.com/lunarpunk_0x'},
{ name: 'Daniel Bar', project: 'Pink Valley Farm', from: 'remote', link: 'https://twitter.com/danieltbar'},
{ name: 'Aral Balkan', project: 'Small World Tech & Kitten', from: 'remote' },
{ name: 'Toshi', project: ' Freelance', from: 'remote' },
{ name: 'Mirsal', project: 'Peertube', from: 'local' },
{ name: 'Naomi', project: 'Freelance', from: 'remote' },
{ name: 'Leslie', project: 'Zen', from: 'remote' },
]
return list
}
},{}]},{},[1]);