From 8862af7e3cb80454ca815d71049b0329a958dccf Mon Sep 17 00:00:00 2001 From: Niko Date: Sat, 17 May 2025 10:42:35 +0200 Subject: [PATCH 1/4] Add link to jump from session to schedule. --- src/components/schedule/session.astro | 3 +- src/pages/schedule.astro | 81 +++++++++++++++++++++++++++ src/pages/session/[slug].astro | 3 + 3 files changed, 86 insertions(+), 1 deletion(-) diff --git a/src/components/schedule/session.astro b/src/components/schedule/session.astro index 7747f3e1a..6b253ee1f 100644 --- a/src/components/schedule/session.astro +++ b/src/components/schedule/session.astro @@ -1,6 +1,7 @@ --- import Speakers from "./speakers.astro"; import { slugify } from "@utils/content"; +import Headline from "@ui/Headline.astro"; export interface props { style: any; @@ -69,7 +70,7 @@ const hasFooter = true; --> -

{session.title}

+

{session.title}

{ hasFooter && ( diff --git a/src/pages/schedule.astro b/src/pages/schedule.astro index 4f98b673e..a17e9bb68 100644 --- a/src/pages/schedule.astro +++ b/src/pages/schedule.astro @@ -27,3 +27,84 @@ const days = await getCollection("days"); )) } + diff --git a/src/pages/session/[slug].astro b/src/pages/session/[slug].astro index d7f851105..216eb92be 100644 --- a/src/pages/session/[slug].astro +++ b/src/pages/session/[slug].astro @@ -8,6 +8,7 @@ import { YouTube } from "@astro-community/astro-embed-youtube"; import { Picture } from "astro:assets"; import Markdown from "@ui/Markdown.astro"; import Section from "@ui/Section.astro"; +import Button from "@ui/Button.astro"; export async function getStaticPaths() { const sessions = await getCollection("sessions"); @@ -100,6 +101,8 @@ const nextSessionsOrdered = sameRoomNextSession
Duration:
{entry.data.duration} minutes
+ +

Abstract

From 0bb1cab9a11b75c4f7f45af3b8053f934379d275 Mon Sep 17 00:00:00 2001 From: Niko Date: Sat, 17 May 2025 14:08:13 +0200 Subject: [PATCH 2/4] Fix posters. --- src/pages/schedule.astro | 32 ++++++-------------------------- 1 file changed, 6 insertions(+), 26 deletions(-) diff --git a/src/pages/schedule.astro b/src/pages/schedule.astro index a17e9bb68..b838e2ed6 100644 --- a/src/pages/schedule.astro +++ b/src/pages/schedule.astro @@ -34,35 +34,15 @@ window.addEventListener('load', function() { if (!currentAnchor) return; - const targetElement = document.getElementById(currentAnchor); - - const targetByName = targetElement || document.querySelector(`[name="${currentAnchor}"]`); - - let targetH2; - - if (targetByName && targetByName.tagName === 'H2') { - targetH2 = targetByName; - } else if (targetByName) { - const h2InTarget = targetByName.querySelector('h2'); - if (h2InTarget) { - targetH2 = h2InTarget; - } - } else { - const allH2s = document.querySelectorAll('h2'); - for (const h2 of allH2s) { - if (h2.id === currentAnchor || h2.getAttribute('name') === currentAnchor) { - targetH2 = h2; - break; - } - } - } + const allMatching = document.querySelectorAll(`h2#${currentAnchor}`); + const targetH2 = allMatching[allMatching.length - 1]; if (targetH2) { - const parentElement = targetH2.parentElement; + const parentElement: any = targetH2.parentElement; if (parentElement) { const originalBorder = parentElement.style.border; - const originalBorderRadius = parentElement.style.borderRadius; + const originalBackground = parentElement.style.background; let blinkCount = 0; const maxBlinks = 5; @@ -71,7 +51,7 @@ window.addEventListener('load', function() { function toggleBorder() { if (blinkCount >= maxBlinks * 2) { parentElement.style.border = originalBorder; - parentElement.style.back = originalBorder; + parentElement.style.background = originalBackground; return; } @@ -80,7 +60,7 @@ window.addEventListener('load', function() { parentElement.style.background = 'white'; } else { parentElement.style.border = originalBorder; - parentElement.style.background = originalBorder; + parentElement.style.background = originalBackground; } blinkCount++; From e41deec15ae18f1db8c4217fe0a3f85f7feb9d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niko=C5=9B?= Date: Mon, 19 May 2025 10:26:30 +0200 Subject: [PATCH 3/4] Update src/pages/session/[slug].astro Co-authored-by: Ege Akman --- src/pages/session/[slug].astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/session/[slug].astro b/src/pages/session/[slug].astro index 216eb92be..93d7f96a7 100644 --- a/src/pages/session/[slug].astro +++ b/src/pages/session/[slug].astro @@ -101,7 +101,7 @@ const nextSessionsOrdered = sameRoomNextSession
Duration:
{entry.data.duration} minutes
- + From fdf2d878bc2ef8da99f413dcaf91e2e111c60cbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niko=C5=9B?= Date: Wed, 21 May 2025 09:46:15 +0200 Subject: [PATCH 4/4] Update src/pages/session/[slug].astro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Mia Bajić <38294198+clytaemnestra@users.noreply.github.com> --- src/pages/session/[slug].astro | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/session/[slug].astro b/src/pages/session/[slug].astro index 93d7f96a7..96f47dafc 100644 --- a/src/pages/session/[slug].astro +++ b/src/pages/session/[slug].astro @@ -101,7 +101,7 @@ const nextSessionsOrdered = sameRoomNextSession
Duration:
{entry.data.duration} minutes
- +