Skip to content

Commit 8fdc02c

Browse files
timothymamoTimothy Mamo
andauthored
Adding Ams 2025 program and speakers (#14935)
Co-authored-by: Timothy Mamo <tim@themamo.com>
1 parent b8d4037 commit 8fdc02c

4 files changed

Lines changed: 84 additions & 6 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
+++
2+
Title = "Schedule"
3+
Type = "event"
4+
Description = "Speakers, sessions, ignites, meals"
5+
+++
6+
7+
<script type="text/javascript" src="https://talks.devopsdays.org/devopsdays-amsterdam-2025/widgets/schedule.js"></script>
8+
<pretalx-schedule event-url="https://talks.devopsdays.org/devopsdays-amsterdam-2025/" locale="en" format="grid" style="--pretalx-clr-primary: #f69b33"></pretalx-schedule>
9+
<noscript>
10+
<div class="pretalx-widget">
11+
<div class="pretalx-widget-info-message">
12+
JavaScript is disabled in your browser. To access our schedule without JavaScript,
13+
please <a target="_blank" href="https://talks.devopsdays.org/devopsdays-amsterdam-2025/schedule/">click here</a>.
14+
</div>
15+
</div>
16+
</noscript>
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
+++
2+
Title = "Speakers"
3+
Type = "speakers"
4+
Description = "Meet our speakers for DevOpsDays Amsterdam 2025"
5+
+++
6+
7+
<div id="speakers" class="row"></div>
8+
<noscript>
9+
<div class="pretalx-widget">
10+
<div class="pretalx-widget-info-message">
11+
JavaScript is disabled in your browser. To access our speaker list without JavaScript,
12+
please <a target="_blank" href="https://talks.devopsdays.org/devopsdays-amsterdam-2025/speakers/">click here</a>.
13+
</div>
14+
</div>
15+
</noscript>
16+
17+
<script>
18+
const ul = document.getElementById('speakers');
19+
const list = document.createDocumentFragment();
20+
const url = 'https://talks.devopsdays.org/api/events/devopsdays-amsterdam-2025/speakers/?limit=50';
21+
22+
fetch(url)
23+
.then((response) => {
24+
return response.json();
25+
})
26+
.then((data) => {
27+
let speakers = data.results;
28+
29+
console.log(speakers);
30+
31+
speakers.map(function(speaker) {
32+
let li = document.createElement('div');
33+
li.className = `col-lg-3 col-md-6 p-3`;
34+
let name = document.createElement('h3');
35+
let pic = document.createElement('img');
36+
let bio = document.createElement('details');
37+
bio.className = `p-1`;
38+
let talk = document.createElement('a');
39+
40+
name.innerHTML = `${speaker.name}`;
41+
pic.src = speaker.avatar.length != 0 ? `${speaker.avatar}`: '/img/speaker-default.jpg';
42+
pic.className = `speakers-page`;
43+
bio.innerHTML = `<summary><b>About ${speaker.name}</b></summary><p>${speaker.biography ? `${speaker.biography}`: `Ipsum`}</p>`;
44+
talk.setAttribute('href', speaker.submissions[0] ? `https://talks.devopsdays.org/devopsdays-amsterdam-2025/talk/${speaker.submissions[0]}` : ``);
45+
talk.setAttribute('target', '_blank');
46+
talk.className = `btn btn-primary`;
47+
talk.innerHTML = `Link to talk`;
48+
49+
li.appendChild(name);
50+
li.appendChild(pic);
51+
li.appendChild(bio);
52+
li.appendChild(talk);
53+
list.appendChild(li);
54+
});
55+
})
56+
.catch(function(error) {
57+
console.log(error);
58+
})
59+
.finally(() => {
60+
ul.appendChild(list);
61+
});
62+
</script>

content/events/2025-amsterdam/welcome.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Description = "DevOpsDays Amsterdam will take place June 18-20, 2025! The group
2727
</div>
2828
</div>
2929

30-
<div class = "row">
30+
<!-- <div class = "row">
3131
<div class = "col-md-2">
3232
<strong>Propose</strong>
3333
</div>
@@ -36,7 +36,7 @@ Description = "DevOpsDays Amsterdam will take place June 18-20, 2025! The group
3636
Propose a talk!
3737
</a>
3838
</div>
39-
</div>
39+
</div> -->
4040

4141
<div class = "row">
4242
<div class = "col-md-2">
@@ -56,7 +56,7 @@ Description = "DevOpsDays Amsterdam will take place June 18-20, 2025! The group
5656
</div>
5757
</div>
5858

59-
<!-- <div class = "row">
59+
<div class = "row">
6060
<div class = "col-md-2">
6161
<strong>Program</strong>
6262
</div>
@@ -72,7 +72,7 @@ Description = "DevOpsDays Amsterdam will take place June 18-20, 2025! The group
7272
<div class = "col-md-8">
7373
Check out the {{< event_link page="speakers" text="speakers!" >}}
7474
</div>
75-
</div> -->
75+
</div>
7676

7777
<div class = "row">
7878
<div class = "col-md-2">

data/events/2025/amsterdam/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ nav_elements: # List of pages you want to show up in the navigation of your page
4242
# - name: propose
4343
- name: location
4444
- name: registration
45-
# - name: program
46-
# - name: speakers
45+
- name: program
46+
- name: speakers
4747
- name: sponsor
4848
icon: "money"
4949
- name: contact

0 commit comments

Comments
 (0)