Repository navigation
Expand file tree
/
Copy pathapp.js
More file actions
276 lines (263 loc) · 19.3 KB
/
Copy pathapp.js
File metadata and controls
276 lines (263 loc) · 19.3 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
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
'use strict';
const cases = {
build: {
label: 'Build / Developer tooling', title: 'Community signal hub',
body: `<p>At Interledger Foundation, I built a custom TypeScript community signal hub and contribution leaderboard to make developer participation visible to the team.</p><p>Working with GitHub and Slack activity helps connect community conversations to the people building the product.</p><h3>From signals to useful feedback</h3><ul><li>Track developer engagement and repository activity to understand the impact of community programs.</li><li>Turn recurring questions into documentation improvements, program changes, and product feedback.</li><li>Share community insights in company-wide meetings to inform product and campaign direction.</li></ul><h3>Community intelligence</h3><p>I track participation and engagement in HubSpot, and built AI-assisted workflows with the GitHub and Slack APIs that produce a monthly open source impact report and support new-member onboarding.</p><h3>Open source: community signals into Asana</h3><p>I created <a href="https://github.com/MattBibi/community-signals-asana" target="_blank" rel="noopener noreferrer">community-signals-asana</a> to measure and automate community signals with Asana. A Claude agent triages new GitHub issues and Slack questions into prioritized Asana tasks. When a task is completed, the app replies on the original issue or thread, closing the loop with the community. Each week, Claude reads the project through Asana’s MCP server and drafts a community update.</p><p class="mono case-tags">TypeScript · Claude · Asana API + MCP · GitHub · Slack · Webhooks</p>`,
links: [['View community-signals-asana', 'https://github.com/MattBibi/community-signals-asana'], ['Read how I built it', 'https://dev.to/bibschan/turning-community-signals-into-asana-tasks-4gok'], ['Explore my GitHub', 'https://github.com/bibschan']]
},
teach: {
label: 'Teach / Developer education', title: 'Learn by building.',
body: `<p>I design practical learning experiences that help developers move from a new idea to a working implementation.</p><h3>Open Payments API workshop</h3><p>Designed and teach a hands-on workshop for university students, with approximately 50 students per session working directly with the Open Payments API. Alumni join the Interledger Student Network, which I created to keep them connected.</p><h3>Open Payments Learning Month</h3><p>A bilingual, gamified program that reached 66 developers across 8+ countries. With English and Spanish announcements and Zealy quests, Slack #general message volume grew 3,927% during the program.</p><h3>Hacktoberfest 2026</h3><p>Led a campaign across 11 Interledger repositories. 29 contributors submitted 260 pull requests, with 127 merged.</p><h3>Programs that keep people coming back</h3><p>I host AMAs, webinars, office hours and the monthly community call with recurring community spotlights, and run gamified programs like a GitHub Easter egg hunt and a 16-project ecosystem tournament.</p>`,
links: [['Explore the workshop', 'https://github.com/bibschan/OP-workshop'], ['Technical writing', 'https://dev.to/bibschan']]
},
connect: {
label: 'Connect / Community leadership', title: 'Communities that grow.',
body: `<p>I love creating spaces where people feel welcome, find their voice, and keep coming back.</p><h3>Women in Tech® Canada</h3><p>Founded the British Columbia chapter from zero and recruited a 9-person volunteer leadership team. In 13 months we delivered 6 free public events for 1,217 attendees, including 230 people at Amazon, and launched a one-on-one mentorship program for 100+ women, most of them immigrants and students entering Canadian tech.</p><p>I secured $100,000+ in sponsorships from partners including Microsoft, Amazon and Dell Technologies, reinvested in free programming or donated to local charities, and curated keynote stages featuring provincial government ministers.</p><p>Today, as Head of Community and Events and Board Vice President, I set national direction across provincial chapters, standardizing event quality and sharing playbooks.</p><h3>Interledger Foundation</h3><p>I lead global community strategy across ambassadors, contributors, digital communities, events and developer education. That includes running the ambassador program from application to offboarding, and managing and moderating the Slack and Forem communities for a distributed global contributor base.</p><h3>VanJS</h3><p>Revived Vancouver’s dormant JavaScript meetup, growing monthly attendance from 30 to 100+ developers while owning venue, sponsor and speaker relationships. I conceived and solo-produced Super VanJS, a one-day developer conference for 130 attendees, and moderate the VanJS Discord.</p><h3>On air</h3><p>I host Vamos Tech Talks, conversations with technology leaders about the ideas and experiences behind their work, and The Women’s Playbook podcast.</p><h3>Also serving</h3><p>Board Member, Vancouver Women in Technology (VanWIT) · Committee Member, Canadian Public Cloud Association.</p>`,
links: [['Watch Vamos Tech Talks', 'https://www.mattandbibi.com/'], ['Connect on LinkedIn', 'https://linkedin.com/in/bibschan']]
},
about: {
label: 'About / Bibiana Souza', title: 'An engineer’s mind. A community builder’s heart.',
body: `<p>I’m Bibi, a community engagement and advocacy leader with a software engineering background, based in Vancouver.</p><p>My work brings together hands-on engineering, developer education, open-source programs, and community leadership. I can talk implementation details with developers, then bring their experience back to product and engineering teams.</p><h3>Technical roots</h3><p>I spent six years as a software engineer across frontend, full-stack, founding engineer and engineering leadership roles. As Engineering Team Lead and Founding Software Engineer at Blossom, I led a React-to-Next.js migration that reduced initial load time by 2.8 seconds. At Atomic47 Labs, I built agentic automations and MCP connectors.</p><p>I also co-founded GREYDATA Holdings, an AI-enabled software and managed-IT company for regulated industries like healthcare and legal. We grew the team from 0 to 10 in 14 months, building HIPAA-grade products with compliance designed in from day one, before I exited through a shareholder buyout.</p><h3>Human connection</h3><p>I’m Community Manager at Interledger Foundation, Head of Community and Events and Board Vice President at Women in Tech® Canada, and co-organizer of VanJS. I also host Vamos Tech Talks and The Women’s Playbook podcast.</p><p class="language-note">English / Português / Español</p>`,
links: [['Experience on LinkedIn', 'https://linkedin.com/in/bibschan'], ['Let’s connect', 'https://linkedin.com/in/bibschan']]
}
};
const eventPhotos = [
{ src: 'assets/community-speaking.webp', alt: 'Bibi speaking to a seated audience, holding a presentation remote.', caption: 'Sharing ideas with the technology community.' },
{ src: 'assets/women-in-tech-stage.webp', alt: 'A Women in Tech event in Vancouver, with Bibi on stage and the audience in the foreground.', caption: 'Women in Tech · Vancouver · February 2026' },
{ src: 'assets/fireside-panel.webp', alt: 'A fireside panel discussing women, creativity, and an agentic world.', caption: 'Fireside chat: Women leading creativity in an agentic world.' },
{ src: 'assets/community-gathering.webp', alt: 'Speakers addressing a seated audience at a community gathering.', caption: 'Bringing people together.' }
];
function createEventGallery() {
const gallery = document.createElement('section');
gallery.className = 'event-gallery';
gallery.setAttribute('aria-label', 'Community event photographs');
gallery.innerHTML = `<figure class="gallery-figure"><a class="gallery-full-image" target="_blank" rel="noopener noreferrer" aria-label="Open this event photo in a new tab"><img class="gallery-image" width="1600" height="1067" alt=""><span class="photo-expand" aria-hidden="true">↗</span></a><figcaption class="gallery-caption" aria-live="polite"></figcaption></figure><div class="gallery-toolbar"><div class="gallery-thumbnails" aria-label="Choose a photo"></div><div class="gallery-pagination"><button class="gallery-previous" type="button" aria-label="Previous photo">←</button><span class="gallery-counter"></span><button class="gallery-next" type="button" aria-label="Next photo">→</button></div></div>`;
const image = gallery.querySelector('.gallery-image');
const fullImage = gallery.querySelector('.gallery-full-image');
const caption = gallery.querySelector('.gallery-caption');
const counter = gallery.querySelector('.gallery-counter');
const thumbnails = gallery.querySelector('.gallery-thumbnails');
let selected = 0;
const buttons = eventPhotos.map((photo, index) => {
const button = document.createElement('button');
button.className = 'gallery-thumbnail';
button.type = 'button';
button.setAttribute('aria-label', `Show photo ${index + 1}: ${photo.caption}`);
button.innerHTML = `<img src="${photo.src}" alt="" loading="lazy" width="72" height="48">`;
button.addEventListener('click', () => select(index));
thumbnails.append(button);
return button;
});
function select(index) {
selected = (index + eventPhotos.length) % eventPhotos.length;
const photo = eventPhotos[selected];
image.src = photo.src;
image.alt = photo.alt;
fullImage.href = photo.src;
caption.textContent = photo.caption;
counter.textContent = `${selected + 1} / ${eventPhotos.length}`;
buttons.forEach((button, i) => button.setAttribute('aria-pressed', String(i === selected)));
}
gallery.querySelector('.gallery-previous').addEventListener('click', () => select(selected - 1));
gallery.querySelector('.gallery-next').addEventListener('click', () => select(selected + 1));
gallery.addEventListener('keydown', event => {
if (event.key === 'ArrowLeft' || event.key === 'ArrowRight') {
event.preventDefault();
select(selected + (event.key === 'ArrowRight' ? 1 : -1));
}
});
select(0);
return gallery;
}
const dialog = document.getElementById('detail-dialog');
const dialogContent = document.getElementById('dialog-content');
const dialogScroll = document.querySelector('.dialog-scroll');
let returnFocus;
let closeTimer = 0;
document.querySelectorAll('[data-dialog]').forEach(button => button.addEventListener('click', () => {
const key = button.dataset.dialog;
const item = cases[key];
if (!item) return;
returnFocus = button;
clearTimeout(closeTimer);
dialog.classList.remove('is-closing');
dialog.classList.toggle('photo-dialog', key === 'connect');
dialogContent.innerHTML = `<p class="eyebrow">${item.label}</p><h2 id="dialog-title">${item.title}</h2>${key === 'connect' ? '<div id="event-gallery-mount"></div>' : ''}${item.body}<div class="dialog-links">${item.links.map(([label, url]) => `<a class="button secondary" href="${url}" target="_blank" rel="noopener noreferrer">${label} <span aria-hidden="true">↗</span></a>`).join('')}</div>`;
if (key === 'connect') document.getElementById('event-gallery-mount').append(createEventGallery());
dialog.showModal();
dialogScroll.scrollTop = 0;
document.body.classList.add('dialog-open');
}));
function closeDetails() {
if (!dialog.open || dialog.classList.contains('is-closing')) return;
if (window.matchMedia('(prefers-reduced-motion: reduce)').matches) { dialog.close(); return; }
dialog.classList.add('is-closing');
closeTimer = window.setTimeout(() => dialog.close(), 145);
}
document.querySelector('.dialog-close').addEventListener('click', closeDetails);
dialog.addEventListener('cancel', event => { event.preventDefault(); closeDetails(); });
dialog.addEventListener('click', event => {
if (event.target !== dialog) return;
const rect = dialog.getBoundingClientRect();
if (event.clientX < rect.left || event.clientX > rect.right || event.clientY < rect.top || event.clientY > rect.bottom) closeDetails();
});
dialog.addEventListener('close', () => {
clearTimeout(closeTimer);
dialog.classList.remove('is-closing');
document.body.classList.remove('dialog-open');
returnFocus?.focus({ preventScroll: true });
});
// Continuous gentle sway, with occasional independently timed blinks.
// Separate rigid pieces hinge at their roots; the artwork is never distorted.
const illustration = document.getElementById('bibi-illustration');
const motionToggle = document.getElementById('motion-toggle');
const reducedMotion = window.matchMedia('(prefers-reduced-motion: reduce)');
let motionPaused = reducedMotion.matches;
const frontHair = document.getElementById('front-hair-motion');
const rightHair = document.getElementById('right-hair-motion');
const leftHair = document.getElementById('left-hair-motion');
const topLeaf = document.getElementById('top-leaf-motion');
const rightLeaf = document.getElementById('right-leaf-motion');
const leftLeaf = document.getElementById('left-leaf-motion');
const broadLeaf = document.getElementById('broad-leaf-motion');
const upperRightLeaf = document.getElementById('upper-right-leaf-motion');
const blinkOverlay = document.getElementById('blink-overlay');
const leftEye = document.getElementById('left-eye-motion');
const rightEye = document.getElementById('right-eye-motion');
const closedEyelashes = document.getElementById('closed-eyelashes');
let nextBlinkAt = 0;
let blinkStartedAt = null;
let previousBlink = -1;
let breezeFrame = 0;
let breezeStartedAt = 0;
let lastBreezeFrame = 0;
let heroVisible = true;
let previousHair = '';
let previousLeaves = '';
function setBreeze(hair, leaves) {
const hairValue = (hair / 42).toFixed(3);
const leafValue = (leaves / 65).toFixed(3);
if (hairValue !== previousHair) {
frontHair.setAttribute('transform', `rotate(${(hair / 42 * 2.25).toFixed(3)} 520 680)`);
rightHair.setAttribute('transform', `rotate(${(-hair / 42 * 1.9).toFixed(3)} 842 548)`);
leftHair.setAttribute('transform', `rotate(${(hair / 42 * 1.8).toFixed(3)} 344 625)`);
}
if (leafValue !== previousLeaves) {
topLeaf.setAttribute('transform', `rotate(${(leaves / 65 * 4.2).toFixed(3)} 344 950)`);
rightLeaf.setAttribute('transform', `rotate(${(-leaves / 65 * 3.5).toFixed(3)} 365 957)`);
leftLeaf.setAttribute('transform', `rotate(${(leaves / 65 * 3.6).toFixed(3)} 92 995)`);
broadLeaf.setAttribute('transform', `rotate(${(-leaves / 65 * 3.4).toFixed(3)} 211 933)`);
upperRightLeaf.setAttribute('transform', `rotate(${(leaves / 65 * 3.1).toFixed(3)} 395 958)`);
}
previousHair = hairValue;
previousLeaves = leafValue;
}
function animateBreeze(now) {
if (motionPaused || document.hidden || !heroVisible) return;
// Keep the same small rotations, without a gust envelope or rest period.
if (now - lastBreezeFrame >= 32) {
lastBreezeFrame = now;
const phase = (now - breezeStartedAt) / 1000;
const hair = Math.sin(phase * 1.65) * 42 + Math.sin(phase * 2.8) * 8;
const leaves = Math.sin(phase * 1.65) * 65 + Math.sin(phase * 3.1) * 9;
setBreeze(hair, leaves);
}
// Eyelids close quickly, hold briefly, then reopen more softly (230 ms).
if (blinkStartedAt === null && now >= nextBlinkAt) blinkStartedAt = now;
if (blinkStartedAt !== null) {
const elapsed = now - blinkStartedAt;
if (elapsed >= 230) {
setBlink(0);
blinkStartedAt = null;
nextBlinkAt = now + 4500 + Math.random() * 5000;
} else {
const closure = elapsed < 75 ? elapsed / 75 : elapsed < 110 ? 1 : 1 - (elapsed - 110) / 120;
setBlink(closure * closure * (3 - 2 * closure));
}
}
breezeFrame = requestAnimationFrame(animateBreeze);
}
function setBlink(closure) {
const value = closure.toFixed(3);
if (value === previousBlink) return;
previousBlink = value;
blinkOverlay.setAttribute('opacity', closure > 0 ? '1' : '0');
const openness = Math.max(0.001, 1 - closure).toFixed(3);
leftEye.setAttribute('transform', `translate(0 352) scale(1 ${openness}) translate(0 -352)`);
rightEye.setAttribute('transform', `translate(0 378) scale(1 ${openness}) translate(0 -378)`);
leftEye.setAttribute('opacity', closure > 0.94 ? '0' : '1');
rightEye.setAttribute('opacity', closure > 0.94 ? '0' : '1');
closedEyelashes.setAttribute('opacity', String(Math.max(0, (closure - 0.7) / 0.3)));
illustration.dataset.blinkState = closure > 0 ? 'blinking' : 'open';
}
function updateMotion() {
cancelAnimationFrame(breezeFrame);
const paused = motionPaused || document.hidden || !heroVisible;
setBreeze(0, 0);
setBlink(0);
blinkStartedAt = null;
illustration.dataset.breezeState = paused ? 'paused' : 'playing';
if (!paused) {
breezeStartedAt = performance.now();
nextBlinkAt = breezeStartedAt + 3500 + Math.random() * 2500;
lastBreezeFrame = 0;
breezeFrame = requestAnimationFrame(animateBreeze);
}
motionToggle.textContent = motionPaused ? 'Enable motion' : 'Pause motion';
motionToggle.setAttribute('aria-pressed', String(!motionPaused));
motionToggle.hidden = false;
}
motionToggle.addEventListener('click', () => { motionPaused = !motionPaused; updateMotion(); });
reducedMotion.addEventListener('change', () => { motionPaused = reducedMotion.matches; updateMotion(); });
document.addEventListener('visibilitychange', updateMotion);
if ('IntersectionObserver' in window) {
new IntersectionObserver(entries => {
const visible = entries[0].isIntersecting;
if (visible !== heroVisible) { heroVisible = visible; updateMotion(); }
}).observe(illustration);
}
updateMotion();
// Speaking gallery lightbox.
(() => {
const links = [...document.querySelectorAll('.speaking-photo')];
const box = document.getElementById('photo-lightbox');
if (!links.length || !box || typeof box.showModal !== 'function') return;
const img = box.querySelector('img');
const caption = box.querySelector('.lightbox-caption');
const count = box.querySelector('.lightbox-count');
let current = 0;
let opener = null;
const show = index => {
current = (index + links.length) % links.length;
const link = links[current];
img.src = link.getAttribute('href');
img.alt = link.querySelector('img').alt;
caption.textContent = link.dataset.caption;
count.textContent = `${current + 1} / ${links.length}`;
[-1, 1].forEach(step => { new Image().src = links[(current + step + links.length) % links.length].getAttribute('href'); });
};
links.forEach((link, index) => link.addEventListener('click', event => {
if (event.metaKey || event.ctrlKey || event.shiftKey) return;
event.preventDefault();
opener = link;
show(index);
box.showModal();
}));
box.querySelector('.lightbox-prev').addEventListener('click', () => show(current - 1));
box.querySelector('.lightbox-next').addEventListener('click', () => show(current + 1));
box.querySelector('.lightbox-close').addEventListener('click', () => box.close());
box.addEventListener('click', event => { if (event.target === box) box.close(); });
box.addEventListener('keydown', event => {
if (event.key === 'ArrowLeft') { event.preventDefault(); show(current - 1); }
if (event.key === 'ArrowRight') { event.preventDefault(); show(current + 1); }
});
let touchX = null;
box.addEventListener('touchstart', event => { touchX = event.touches[0].clientX; }, { passive: true });
box.addEventListener('touchend', event => {
if (touchX === null) return;
const dx = event.changedTouches[0].clientX - touchX;
if (Math.abs(dx) > 45) show(current + (dx < 0 ? 1 : -1));
touchX = null;
});
box.addEventListener('close', () => { img.removeAttribute('src'); opener?.focus({ preventScroll: true }); });
})();