forked from wizardamigos/codecamp2023
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bundle.js
512 lines (481 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%;
font-size: 1.3em;
margin: 0;
padding: 0;
background-color: black;
}
`
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 register = document.createElement('button')
register.innerText = 'Register'
register.onclick = () => book()
const speakers = document.createElement('div')
speakers.classList.add('box')
speakers.innerHTML = `<h2> Wizards </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/alvados3.png' as="image">
<link rel="preload" href'./assets/alvados9.png' as="image">
<link rel="preload" href'./assets/alvados1.png' as="image">
<link rel="preload" href'./assets/alvados8.png' as="image">
<link rel="preload" href'./assets/alvados10.png' as="image">
<link rel="preload" href'./assets/alvados7.png' as="image">
<link rel="preload" href'./assets/alvados5.png' as="image">
<link rel="preload" href'./assets/alvados2.png' as="image">
<link rel="preload" href'./assets/alvados4.png' as="image">
<link rel="preload" href'./assets/alvados6.png' as="image">
<link rel="preload" href'./assets/alvados11.png' as="image">
<link rel="preload" href'./assets/alvados12.png' as="image">
<link rel="preload" href'./assets/alvados3.png' as="image">
<div class='main'>
<img class='logo' src='./assets/Wizard-Amigos---Stickers---CAT-NOMAD---TRANSPARENT---2022.png'></img>
<h1>
<span>Wizard Amigos</span>
<span> Code Camp</span>
</h1>
<div class='date'>October 2023, Portugal</div>
<div class='box'>
<p>Wizard Amigos code camp is a DIY gathering that will this year stretch over the whole October.</p>
<p>
A full month of co-living, co-working and organizing an unconference (with remote guests) sharing knowledge about
P2P / federated / co-governed tech, care for people & the future, sustainability and exploring pathways toward a real systemic change.
</p>
<p>Are you thinking of joining? The camp starts very soon and there is still a few spots available :)</p>
<register></register>
</div>
<div class='box'>
<h2> Talks, Workshops & Discussions </h2>
<p></p>
<p> Talks from the code camp will be recorded (some will be live-streamed) and available on our <a target='_blank' href='https://peertube.1312.media/a/wizardamigos/video-channels'> PeerTube</a> and <a target='_blank' href='https://www.youtube.com/@wizardamigos4213'> Youtube</a> channels. </p>
<p>To support Wizard Amigos, You can drop a coin in the tip jar through our <a target='_blank' href='https://opencollective.com/wizardamigos'> Open Collective page. </a></p>
</div>
<speakers></speakers>
<div class='venue box'>
<h2>Location</h2>
<p>
Wizard Amigos code camp 2023 is set in a villa on a valley with a breathtaking view of the mountains around it. It is located in a quiet village in Portugal called Alvados, where you can experience the old days' rural life.
Surrounded by nature 360º you will feel like you've been immersed into relaxing mode.
We plan to work, learn from each other and relax inside the house or outside beneath the shade of an olive tree, by the pool or on the terrace facing the mountains, or even hiking/biking around the kms and kms of indigenous nature trails that surround the wizard villa.
</p>
<div class='gallery'>
<img src='./assets/alvados1.png'></img>
<img src='./assets/alvados11.png'></img>
<img src='./assets/alvados4.png'></img>
<img src='./assets/alvados2.png'></img>
<img src='./assets/alvados13.png'></img>
<img src='./assets/alvados8.png'></img>
<img src='./assets/alvados6.png'></img>
<img src='./assets/alvados9.png'></img>
<img src='./assets/alvados7.png'></img>
<img src='./assets/alvados5.png'></img>
<img src='./assets/alvados10.png'></img>
<img src='./assets/alvados3.png'></img>
<img src='./assets/alvados12.png'></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.
We are a group doing this together, and we want to learn how to do things together. If you want to <a href='https://discord.gg/8FzZPHkp44' target="_blank">tag along</a>, you are in the group. We are we.
</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('register').replaceWith(register)
// 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/WizardAmigosCodeCamp1/formperma/D8aoqyrH9shhhLqNxLFWLczATUOBKHfmvTLJVvIOUs8')
}
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);
--light-yellow: hsla(44, 87%, 78%, 1);
}
.main {
display: grid;
justify-items: center;
line-height: 2rem;
grid-template-columns: 1fr 4fr 1fr;
justify-items: center;
}
.logo {
margin-top: 55px;
min-width: 550px;
max-width: 550px;
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: 'nora', project: 'Patronage', from: 'local', link: 'https://twitter.com/noraliucode' },
{ name: 'jam10o', project: 'Shokunin', from: 'local', link: 'https://twitter.com/jam10o'},
{ name: 'rtn', project: 'Linkping', from: 'remote', link: ' https://github.com/ralphtheninja'},
{ name: 'derhuerst', project: 'Open Transport', from: 'local' , link: 'https://twitter.com/derhuerst'},
{ name: 'adelayde', project: 'Hacktion Lab', from: 'local' , link: 'https://twitter.com/MBrinsleyHarris'},
{ name: 'gus', project: 'Templo', from: 'local', link: 'https://medium.com/@gustavo_64625'},
{ name: 'ninjabirdy', project: 'DatDot & WizardAmigos', from: 'local', link: 'https://twitter.com/ninabreznik'},
// { name: 'fredrik', project: 'digital philosopher', from: 'local' , link: ''},
{ name: 'miguel', project: 'Codice Lda', from: 'local', link: 'https://www.linkedin.com/in/miguel-marques-4322101a8/'},
// { 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: '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: 'mariha', project: 'Sleepy bikes', from: 'remote', link: 'https://liberapay.com/mariha'},
{ 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: 'HyperPubee', from: 'local', 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]);