-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtalks.html
More file actions
164 lines (143 loc) · 6.8 KB
/
talks.html
File metadata and controls
164 lines (143 loc) · 6.8 KB
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
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Past Talks - Lux TechPulse Meetup</title>
<meta name="description"
content="Archive of past talks and presentations from the Lux TechPulse community. Featuring topics on Frontend, Backend, Web Technologies, Mobile, AI, and more.">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/x-icon" href="favicon.ico">
<link rel="icon" type="image/png" sizes="192x192" href="favicon-192.png">
<link rel="icon" type="image/png" sizes="512x512" href="favicon-512.png">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="./css/style.css" />
</head>
<body>
<a href="#main" class="skip-to-main">Skip to main content</a>
<div class="page-wrapper">
<section class="banner" role="banner">
<a href="./index.html" class="logo">
<img src="img/logo.svg" alt="Lux TechPulse">
</a>
</section>
<main id="main">
<section id="talks" class="wrapper alt">
<div class="inner">
<div class="content">
<h1 class="major">Previous Presentations</h1>
<p>Archive of presentations from our amazing speakers</p>
<div class="talks-grid" role="list">
<!-- Talks will be dynamically loaded here -->
</div>
</div>
</div>
</section>
</main>
<section class="wrapper" role="contentinfo">
<div class="inner">
<div class="content">
<h2 class="major">Keep in touch</h2>
<nav aria-label="Social links">
<ul class="contact">
<li><a href="https://www.meetup.com/luxtechpulse/" target="_blank" rel="noopener noreferrer" aria-label="Join us on Meetup"><i class="fab fa-meetup"></i> Become a member</a></li>
<li><a href="https://docs.google.com/forms/d/e/1FAIpQLScPpqGs0eq5zByMwpLf7EN8yofJOP7u_WMpuz9JrmW9ell0ag/viewform?usp=dialog" target="_blank" rel="noopener noreferrer" aria-label="Submit a talk proposal"><i class="far fa-file-alt"></i> Call for papers</a></li>
<li><a href="https://www.linkedin.com/company/luxtechpulse" target="_blank" rel="noopener noreferrer" aria-label="Visit our LinkedIn page"><i class="fab fa-linkedin"></i> Our LinkedIn</a></li>
<li><a href="https://www.youtube.com/@LuxTechPulse" target="_blank" rel="noopener noreferrer" aria-label="Subscribe to our YouTube channel"><i class="fab fa-youtube"></i> Our YouTube</a></li>
<li><a href="https://twitter.com/luxembourgjs" target="_blank" rel="noopener noreferrer" aria-label="Follow us on Twitter"><i class="fab fa-twitter"></i> Our Twitter</a></li>
</ul>
</nav>
</div>
</div>
</section>
</div>
<footer class="site-footer" role="contentinfo">
<div class="inner">
<a href="./code-of-conduct.html">Code of Conduct</a>
</div>
</footer>
<script type="module">
import { load_presentation_data } from "./data/load_data.js";
function load_avatar(author, authorHtml) {
// if author has no image, try to fetch from Github API
if (author.github) {
const url = new URL(author.github);
const username = url.pathname.replace(/^\/(\w+)/, '$1');
authorHtml.push(`<img src="https://github.com/${username}.png" alt="${author.name}" class="author-avatar" loading="lazy">`);
} else {
authorHtml.push(`<div class="author-avatar-placeholder" title="${author.name}" role="img" aria-label="Avatar placeholder for ${author.name}"></div>`);
}
}
load_presentation_data().then(presentation_data => {
const talksGrid = document.querySelector('.talks-grid');
presentation_data.slides.forEach(talk => {
const talkElement = document.createElement('article');
talkElement.setAttribute('role', 'listitem');
talkElement.className = 'talk-card';
const link = document.createElement('a');
link.href = talk.link || talk.eventLink || talk.slidesLink || '#';
link.className = 'talk-link';
if (talk.link || talk.eventLink || talk.slidesLink) {
link.target = '_blank';
link.rel = 'noopener noreferrer';
}
link.setAttribute('aria-label', `View presentation: ${talk.title}`);
const thumb = document.createElement('div');
thumb.className = 'talk-thumb';
if (talk.thumb) {
const img = document.createElement('img');
img.src = talk.thumb;
img.alt = `Thumbnail for ${talk.title}`;
img.loading = 'lazy';
thumb.appendChild(img);
}
const info = document.createElement('div');
info.className = 'talk-info';
const title = document.createElement('h3');
title.textContent = talk.title;
const meta = document.createElement('div');
meta.className = 'talk-meta';
const authors = document.createElement('div');
authors.className = 'talk-authors';
authors.innerHTML = talk.authors.map(author => {
const authorHtml = [];
if (author.image) {
authorHtml.push(`<img src="${author.image}" alt="${author.name}" class="author-avatar" loading="lazy">`);
} else {
load_avatar(author, authorHtml);
}
if (author.link) {
authorHtml.push(`<a href="${author.link}" target="_blank" rel="noopener noreferrer">${author.name}</a>`);
} else {
authorHtml.push(author.name);
}
if (author.github) {
authorHtml.push(`- <a href="${author.github}" target="_blank" rel="noopener noreferrer">Github</a>`);
}
return `<div class="author">${authorHtml.join('')}</div>`;
}).join('');
const links = document.createElement('div');
links.className = 'talk-links';
if (talk.slidesLink) {
links.innerHTML = `<a href="${talk.slidesLink}" target="_blank" rel="noopener noreferrer"><i class="fas fa-external-link-alt"></i> View Presentation</a>`;
}
if (talk.eventLink) {
links.innerHTML = `${links.innerHTML}<a href="${talk.eventLink}" target="_blank" rel="noopener noreferrer"><i class="fas fa-external-link-alt"></i> Details</a>`;
}
const date = document.createElement('div');
date.className = 'talk-date';
date.textContent = talk.date;
date.setAttribute('aria-label', `Presented on ${talk.date}`);
meta.appendChild(authors);
meta.appendChild(links);
meta.appendChild(date);
info.appendChild(title);
info.appendChild(meta);
link.appendChild(thumb);
link.appendChild(info);
talkElement.appendChild(link);
talksGrid.appendChild(talkElement);
});
});
</script>
</body>
</html>