From d9a1b04f8996f7d831b0f218e72f279f8937ff71 Mon Sep 17 00:00:00 2001 From: Richard Bergsma Date: Sun, 15 Jun 2025 19:23:38 +0200 Subject: [PATCH] Implement touch handling for modals in Certifications, Education, and Skills components - Introduced touch event listeners to enhance mobile interactivity for certification, education, and skills cards. - Refactored modal display logic to improve user experience by allowing smooth scrolling and restoring scroll position after modal closure. - Updated event handling to prevent default actions and ensure modals function correctly across devices. --- .../widgets/ModernCertifications.astro | 176 +++++++++++---- src/components/widgets/ModernEducation.astro | 213 ++++++++++++------ src/components/widgets/ModernSkills.astro | 168 ++++++++++---- 3 files changed, 397 insertions(+), 160 deletions(-) diff --git a/src/components/widgets/ModernCertifications.astro b/src/components/widgets/ModernCertifications.astro index 6f1b728..3df6ea9 100644 --- a/src/components/widgets/ModernCertifications.astro +++ b/src/components/widgets/ModernCertifications.astro @@ -226,60 +226,140 @@ const getImageSrc = (imagePath: string) => { \ No newline at end of file diff --git a/src/components/widgets/ModernEducation.astro b/src/components/widgets/ModernEducation.astro index 24bb658..986b8f6 100644 --- a/src/components/widgets/ModernEducation.astro +++ b/src/components/widgets/ModernEducation.astro @@ -188,80 +188,157 @@ const getEducationStyle = (title: string) => { \ No newline at end of file diff --git a/src/components/widgets/ModernSkills.astro b/src/components/widgets/ModernSkills.astro index d708724..31d69da 100644 --- a/src/components/widgets/ModernSkills.astro +++ b/src/components/widgets/ModernSkills.astro @@ -187,56 +187,136 @@ if (uncategorizedSkills.length > 0) { \ No newline at end of file