forked from community-service/hour.gg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
271 lines (254 loc) · 14.7 KB
/
index.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
---
layout: none
---
<!doctype html>
<html lang="en">
<head>
<title>Community Service Hour</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css" integrity="sha256-u2/YzYU5TLNn6KxY5HKS8taOsoj6Evq2jmVDCl3fzkg=" crossorigin="anonymous">
<link rel="alternate" type="application/rss+xml" title="Community Service Hour" href="/podcast.xml">
<style>
:root {
--bs-body-bg: #341334;
--bs-body-color: #f8fafc;
--bs-primary-rgb: 242, 47, 84;
--bs-link-color-rgb: 242, 47, 84;
}
.navbar-nav {
--bs-nav-link-color: rgba(255, 255, 255, 0.85);
}
.btn-primary {
--bs-btn-bg: #f22f54;
--bs-btn-border-color: #f22f54;
--bs-btn-hover-color: #fff;
--bs-btn-hover-bg: #ce3e59;
--bs-btn-hover-border-color: #ce3e59;
--bs-btn-focus-shadow-rgb: 0 0 0;
--bs-btn-active-color: #fff;
--bs-btn-active-bg: #a84b5c;
--bs-btn-active-border-color: #a84b5c;
--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
/* temp hack */
.link-primary:hover {
color: #c61838 !important;
-webkit-text-decoration-color: #c61838 !important;
text-decoration-color: #c61838 !important;
}
</style>
</head>
<body>
<header class="container-xl py-4">
<div class="row row-cols-1 row-cols-lg-2 gap-5 justify-content-center">
<svg xmlns="http://www.w3.org/2000/svg" style="max-width: 300px; filter: drop-shadow(0 0 1rem #f22f54);" viewBox="0 0 161.8 100" class="col">
<path d="M28.17 19.109c-45.824-39.923 172.844-5.067 127.813 18.454-45.03 23.522-30.728 17.525.786 50.89C188.283 121.82-39.228 64.332 7.397 59.694c46.625-4.638 66.599-.661 20.774-40.584Z" style="fill:#f22f54"/>
<text xml:space="preserve" x="94.682" y="31.862" style="font-weight:700;font-size:17px;font-family:Rockwell;fill:var(--bs-body-color);text-align:center;text-anchor:middle;">
<tspan x="120" y="31.862">COMMUNITY</tspan>
<tspan x="120" y="53.911">SERVICE</tspan>
<tspan x="120" y="75.959">HOUR</tspan>
</text>
</svg>
<div class="col align-self-center">
<h5>Next show: <span id="next-show" class="fw-bold">Loading…</span></h5>
<p>
<div class="dropdown d-inline-block">
<span id="next-show-time" class="fst-italic">Loading…</span>
<button class="btn btn-primary dropdown-toggle rounded-pill" type="button" data-bs-toggle="dropdown" aria-expanded="false">
Add to calendar
</button>
<ul class="dropdown-menu bg-dark">
<li><a class="dropdown-item" href="https://calendar.google.com/calendar/ical/liurhb5cqvar2i6n6ekeanap44%40group.calendar.google.com/public/basic.ics">ICS</a></li>
<li><a class="dropdown-item" href="https://calendar.google.com/event?action=TEMPLATE&tmeid=NHA4ZXBrZWJkczlsamdmMzJpYmc2MnVqNWxfMjAyMjA2MjFUMjIwMDAwWiBsaXVyaGI1Y3F2YXIyaTZuNmVrZWFuYXA0NEBn&tmsrc=liurhb5cqvar2i6n6ekeanap44%40group.calendar.google.com&scp=ALL">Google Calendar</a></li>
<li><a class="dropdown-item" href="https://discord.com/invite/6nTGNdjQ3B">Discord (click "events")</a></li>
</ul>
</div>
</p>
<div class="hstack gap-2">
<a href="https://twitter.com/fulldecent" class="btn btn-primary rounded-pill">Join <i class="bi bi-twitter-x"></i></a>
<a href="https://www.twitch.tv/fulldecent" class="btn btn-primary rounded-pill">Join <i class="bi bi-twitch"></i></a>
<a href="https://docs.google.com/document/d/1ta_6tSCGfC31iIfhz4bfC_oBKyNZGEdDsZkD-BRXY_Y/edit#" class="btn btn-primary rounded-pill">Show notes <i class="bi bi-file-earmark-text"></i></a>
</div>
</div>
</div>
</header>
<nav class="navbar navbar-expand-sm bg-primary navbar-dark fs-4 my-4">
<div class="container-xl">
<ul class="navbar-nav mb-0">
<li class="nav-item">
<a class="nav-link" href="#about-us">
<span>About us</span>
<!-- Randomly show 5 participants -->
{% assign all_participants = "" | split: "" -%}
{% for participant in site.data.participants -%}
{% assign all_participants = all_participants | push: participant[0] -%}
{% endfor -%}
{% assign participants = all_participants | sample: 5 -%}
{% for participant in participants -%}
<img src="/assets/participants/{{ participant }}.jpg" class="rounded-circle" style="width: 2rem; height: 2rem; margin-right: -0.5rem;" alt="Photo of {{ participant }}">
{% endfor -%}
<span class="badge rounded-pill text-bg-warning" style="margin-left: -0.2rem;">+
{{- site.data.participants.size | minus: 5 -}}
</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#projects">Projects
<span class="badge text-bg-warning rounded-pill">16</span>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#how-to-csh">How to CSH?</a>
</li>
</ul>
</div>
</nav>
<aside class="text-end">
<img src="assets/divider.svg" style="max-height: 3rem;" alt="Divider">
</aside>
<section class="container-xl py-4">
<div class="hstack my-4">
<form action="https://phor.us9.list-manage.com/subscribe/post?u=8b49e10ddf197497c02ff4eae&id=e3fcfddf94&MERGE1=blog.phor.net" method="post">
<div class="input-group">
<input type="email" name="EMAIL" class="form-control" placeholder="Email address" required>
<button type="submit" class="btn btn-primary ms-2 rounded-pill"><i class="bi bi-bell-fill"></i> Monthly<span class="d-none d-lg-inline"> email</span></button>
</div>
</form>
</div>
<h1 class="my-4">
<a class="link-primary" href="/episodes">Episodes</a>
<a class="btn btn-sm rounded-pill btn-primary" href="https://podcasts.apple.com/us/podcast/community-service-hour/id1662422217">Apple Podcasts</a>
<a class="btn btn-sm rounded-pill btn-primary" href="https://open.spotify.com/show/3k4PnmjfLiuNo9HpXemCdJ">Spotify</a>
<a class="btn btn-sm rounded-pill btn-primary" href="https://www.youtube.com/playlist?list=PLaMigeN8Exx-ChNPpO-j6pFQ3F8oJWrBN">YouTube</a>
<a class="btn btn-sm rounded-pill btn-primary" href="https://www.tiktok.com/@fulldecent">TikTok</a>
</h1>
{% assign episodes = site.episodes | where: "posted", true | sort: 'date' | reverse | slice: 0, 10 %}
{% for episode in episodes %}
<div class="row my-4">
<div class="col-12 col-lg-10 position-relative">
<h2 class="fs-4">
<a href="{{ episode.url | relative_url }}" class="link-primary hstack">
<div>
{{ episode.itunes-episode}} / {{ episode.title | escape }}
{% if episode.subtitle != "" %}
<br><small>{{ episode.subtitle }}</small>
{% endif %}
</div>
<span class="hstack d-inline-flex ms-1">
<!-- Participants from this specific episode -->
{% assign some_participant_ids = episode.badges | sample: 3 | map: "participant" %}
{% for participant_id in some_participant_ids %}
<img src="/assets/participants/{{ participant_id }}.jpg" class="rounded-circle" style="width: 2.5rem; height: 2.5rem; margin-right: -0.5rem;" alt="Photo of {{ participant_id }}">
{% endfor %}
<!-- + how many not shown... -->
{% assign remaining = episode.badges.size | minus: 3 %}
{% if remaining > 0 %}
<span class="badge rounded-pill text-bg-warning" style="margin-left: -0.2rem;">+
{{- remaining -}}
</span>
{% endif %}
</span>
</a>
</h2>
<p>{{ episode.description | escape }}</p>
</div>
{% if episode.youtube-full %}
{% assign youtube-id = episode.youtube-full | split: '/' | last %}
<div class="col-12 col-lg-2">
<iframe src="https://www.youtube-nocookie.com/embed/{{ youtube-id }}" allow="accelerometer; autoplay; gyroscope; picture-in-picture" allowfullscreen class="rounded-5" style="max-width: 100%;"></iframe>
</div>
{% endif %}
</div>
{% endfor %}
<p class="mt-5">
<a class="link-primary" href="episodes">All episodes…</a>
</p>
</section>
<section class="container-xl mt-4">
<h1 id="about-us">About us</h1>
<p class="lead">Your cohosts on the weekly call are William Entriken and Daniel Tedesco. </p>
<p class="lead">Participants in <em>Community Service Hour</em> are recognized for joining in our weekly call, and presenting projects. They direct the future of our program. <!-- TODO: Participants from the past 10 weeks are shown below -->. Badges provide access to special groups, decision making and may possibly be redeemed for a blockchain token in the future.</p>
<!--<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 row-cols-xl-4 row-cols-xxl-5">-->
<div class="row row-cols-1 row-cols-lg-2 row-cols-xl-3 row-cols-xxl-4">
<!-- Show all participants (TODO: only show those with activity in the past 10 weeks) -->
{% assign all_participants2 = "" | split: "" -%}
{% for participant in site.data.participants -%}
{% assign all_participants2 = all_participants2 | push: participant[0] -%}
{% endfor -%}
{% for participant in all_participants2 -%}
<div class="col hstack align-self-start gap-2 mb-3">
<img src="/assets/participants/{{ participant }}.jpg" alt="{{ participant }}" class="rounded-circle" style="width: 3rem; height: 3rem;">
<div>
<h5 class="card-title"><a class="link-primary" href="https://twitter.com/{{ site.data.participants[participant].x }}">@{{ site.data.participants[participant].x }}</a><!--<span class="badge text-bg-warning rounded-pill ms-2">+12</span>--></h5>
<p class="card-text">{{ site.data.participants[participant].name }}</p>
</div>
</div>
{% endfor %}
</div>
</section>
<section class="container-xl my-4 py-4">
<h1 class="my-4" id="projects">
Projects
</h1>
<p class="lead">See some of the open projects we have discussed are on our <a class="link-primary" href="https://github.com/users/fulldecent/projects/2/views/1">GitHub project board</a>. But also feel free to choose your own path.</p>
</section>
<section class="container-xl my-4 py-4">
<h1 class="my-4" id="how-to-csh">
How to CSH?
</h1>
<p class="lead">Learn tech, pitch projects, <a href="https://twitter.com/intent/tweet?text=Hello%20@fulldecent%20I%20have%20a%20question%20for%20%23CommunityServiceHour">ask anything</a>, <a href="https://hour.gg/#about-us">earn badges</a>.</p>
<p>Currently there is a focus on blockchain, NFTs and neural networks.</p>
<p>You're welcome do join us. All it takes is one hour a week to further your own interests & career in technology, plus a few extra minutes to show yourself off. The basic way to start is to by joining our weekly phone call (Twitter Spaces + Twitch streaming), see links <a class="link-primary" href="#top">at top</a>.</p>
<p>Next, if you've never contributed to an open source project before… that is the best place to start. Because you will directly connect with people, you are welcome everywhere and everything you do goes straight into your portfolio. A good way to start is to create a profile on GitHub (fill it out ENTIRELY), find any project you are interested (for example <a class="link-primary" href="">this web page you are reading is open source</a>), edit to fix a typo there and then send your contribution however to the project maintainer. On GitHub this is called "save", "fork" and "pull request", you get all those by clicking the green buttons after you save your change.</p>
<p>From your first typo-fix, you have already passed 80% of the world in building your portfolio in technology. Yes really. Put it on your resume. Yes really. Then imagine what other project you will take on next. You're welcome to share with us on the call, and can expect lots of encouragement.</p>
</section>
<aside class="text-start">
<img src="assets/divider.svg" style="max-height: 3rem;" alt="Divider">
</aside>
<footer class="container-xl my-4 py-4">
<a class="lead link-primary icon-link" href="https://github.com/community-service/hour.gg"><i class="bi bi-github"></i> Edit this page …</a>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
<script>
// Load next show from assets/upcoming-episodes.json
fetch('/assets/upcoming-episodes.json')
.then(response => response.json())
.then(data => {
for (const episode of data) {
const startTime = new Date(episode.time);
const endTime = new Date(startTime.getTime() + 60 * 60 * 1000);
// If this episode ended, skip it
if (endTime < new Date()) {
continue;
}
document.getElementById('next-show').innerHTML = episode.title;
// If is live now, show it
if (startTime < new Date()) {
document.getElementById('next-show-time').innerHTML = 'Live now!';
return;
}
// If starting within 8 hours, show countdown
const now = new Date();
const eightHours = 8 * 60 * 60 * 1000;
if (1) {
//if (startTime < new Date(now.getTime() + eightHours)) {
// show countdown and update every second
setInterval(() => {
const now = new Date();
const diff = startTime - now;
const hours = Math.floor(diff / (1000 * 60 * 60));
const minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
const seconds = Math.floor((diff % (1000 * 60)) / 1000);
document.getElementById('next-show-time').innerHTML = `Starts in ${hours}h ${minutes}m ${seconds}s`;
}, 1000);
document.getElementById('next-show-time').innerHTML = `Starts in …`;
return;
}
// Otherwise, show next episode
document.getElementById('next-show-time').innerHTML = "Starts Tuesday 6pm, New York time";
return;
}
});
</script>
</body>
</html>