-
-
Notifications
You must be signed in to change notification settings - Fork 387
/
Copy path+page.svelte
184 lines (176 loc) · 5.89 KB
/
+page.svelte
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
<script lang="ts">
import { writable } from 'svelte/store';
import InfoBox from '$lib/layout/InfoBox.svelte';
import PageLayout from '$lib/layout/PageLayout.svelte';
import Logo from '$lib/layout/Logo.svelte';
import discord from './discord.svg';
import github from './github.svg';
import linkedIn from './linked-in.png';
import skyline from './skyline.svg';
import twitter from './twitter.svg';
import mastodon from './mastodon.svg';
import WhatToExpect from './WhatYouCanExpect.svelte';
import {
getRegistrationState,
registrationClosessAt,
registrationOpensAt,
timeLeft
} from '$lib/participants/registration';
import { base } from '$app/paths';
import Partners from '$lib/sponsoring/Partners.svelte';
import Sponsors from '$lib/sponsoring/Sponsors2024.svelte';
import Schedule from './Schedule.svelte';
import type { PageData } from './$types';
export let data: PageData;
const countdown = writable<string>('');
const registrationState = writable<'not-yet' | 'closed' | 'open'>(getRegistrationState());
const updateCountdown = () => {
const now = +new Date();
if (registrationOpensAt <= now && now <= registrationClosessAt) {
$registrationState = 'closed';
return;
}
const { days, hours, minutes, seconds } = timeLeft(now, registrationOpensAt);
const timeAsStringArray = [
days > 0 ? `${days} days` : '',
hours > 0 ? `${hours} hours` : '',
minutes > 0 ? `${minutes} minutes` : '',
seconds > 0 ? `${seconds} seconds` : ''
].filter((s) => s !== '');
$countdown =
timeAsStringArray.length > 1
? `That's in <strong>${timeAsStringArray.slice(0, -1).join(', ')} and ${
timeAsStringArray[timeAsStringArray.length - 1]
}</strong>.`
: timeAsStringArray.length === 1
? `Only <strong>${timeAsStringArray[0]}</strong> left!`
: '';
setTimeout(updateCountdown, 1000);
};
updateCountdown();
</script>
<PageLayout>
<h1>Welcome to JSCraftCamp 2024! ✅</h1>
<p style="display: flex; align-items: center;">
Our hashtag is <b>#jscc24</b> find us on <a
href="https://mastodontech.de/tags/jscc24"
><img src={mastodon} alt="mastodon" style="height: 1.5rem;" /></a
>
<a href="https://twitter.com/search?q=%23jscc24"
><img src={twitter} alt="twitter" style="height: 1.5rem;" /></a
>
</p>
<section>
<InfoBox title="When?">
<p><strong>7. & 8. June 2024</strong></p>
{#if $registrationState === 'not-yet'}
<p>Registration will open on April 22nd, 2024. {@html $countdown}</p>
{:else if $registrationState === 'closed'}
<p>
Registration is closed, we're full! <a href="{base}/registration">Join the wait list</a>!
</p>
{:else}
<p><a href="{base}/registration">Registration is open!</a></p>
<p>Grab your spot!</p>
<p>Friday: <strong>{100 - data.fridayParticipants}</strong> spots left</p>
<p>
Saturday: <strong>{100 - data.saturdayParticipants}</strong> spots left
</p>
{/if}
</InfoBox>
<InfoBox title="Where?">
<p>
Thanks to Maiborn Wolff, this year we'll be at the <a
href="https://www.maibornwolff.de/location/muenchen-kraftwerk/"
rel="external noopener noreferrer"
>München Kraftwerk
</a>! <br />
</p>
<p>
MaibornWolff GmbH<br />
Drygalski-Allee 25<br />
81477 München <br />
(<a href="https://maps.app.goo.gl/hUhbheFci2sSJ7SZ6">Google Maps</a>)
</p>
</InfoBox>
<Schedule />
<InfoBox title="How much does it cost?">
<p>
For participants, you do not need any money to attend. We expect everyone to pay by their
active participation during the event and committing themselves to it by creating a PR for
themselves. We want everybody to contribute to discussions, share their experiences and help
each other to learn something new.
</p>
</InfoBox>
<InfoBox title="Still looking for sponsors!">
<p>
Do you represent a company looking for talented developers? Want to support the JavaScript
community? Take a look at <a href="{base}/sponsoring">our sponsoring page</a> and find out
about what items are still open and how your company can benefit from sponsoring. Or go
directly to
<a href="https://github.com/orgs/jscraftcamp/projects/7" rel="external"
><strong>our GitHub Sponsorship Board</strong></a
> and pick something.
</p>
</InfoBox>
<InfoBox title="JSCraftCamp is ...">
<p>
... a
<a href="https://en.wikipedia.org/wiki/Unconference#Barcamp" rel="external"
>BarCamp / OpenSpace / Unconference</a
> event for JavaScript enthusiasts of all levels. BarCamps and OpenSpaces are participant-driven
conferences where attendees create the schedule and lead discussions, making it a truly community-driven
experience.
</p>
<p>
JSCraftCamp provides a platform for JavaScript enthusiasts to network and participate in
workshops, similar to the <a href="https://www.socrates-conference.de/" rel="external"
>SoCraTes conference</a
>.
</p>
</InfoBox>
<Logo animateYears style="max-width: 100%;" />
<div>
<a href="https://twitter.com/jscraftcamp" rel="external"
><img src={twitter} alt="Twitter" /></a
>
<a href="https://github.com/jscraftcamp/website" rel="external"
><img src={github} alt="GitHub" /></a
>
<a
href="https://www.linkedin.com/events/jscraftcamp2023-jscc237033512998556028929/comments/"
rel="external"><img src={linkedIn} alt="LinkedIn" height="128" width="128" /></a
>
<a href="https://discord.gg/3mHhaXVEjP" rel="external"><img src={discord} alt="Discord" /></a>
</div>
<img src={skyline} alt="Munich skyline" />
<Sponsors />
<Partners />
<WhatToExpect />
</section>
</PageLayout>
<style>
h1 {
text-align: center;
}
section {
display: flex;
flex-flow: column;
align-items: center;
gap: 2em;
}
div {
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: center;
gap: 1em;
}
div img {
height: 40px;
width: 40px;
}
img {
max-width: 100%;
}
</style>