From 0858c664c9b8f54abe83ee043786ff5bbdaf8e82 Mon Sep 17 00:00:00 2001 From: Chris Lowis Date: Wed, 17 Dec 2025 12:45:15 +0000 Subject: [PATCH] Use to show co-op info when JS available This commit progressively enhances the co-op grid to show the contents of the `/co-op/` page in a HTML `` element. This improves the existing experience by retaining the scroll position and returning the user to the correct page when the dialog is closed. In case JS isn't available, and for SEO purposes we link to the co-op pages as previously (but with the disadvantage that the "close" button always returns to the homepage irrespective of where the co-op grid is used). --- _includes/our_members.html | 42 ++++++++++++++++++++++++++++++++++++++ assets/css/app.css | 19 +++++++++++++++++ 2 files changed, 61 insertions(+) diff --git a/_includes/our_members.html b/_includes/our_members.html index 7a8f81b..1fdc48d 100644 --- a/_includes/our_members.html +++ b/_includes/our_members.html @@ -11,8 +11,50 @@ {% endfor %} + + +
+
+
+
Hire our co-ops
+ + diff --git a/assets/css/app.css b/assets/css/app.css index 95c809d..9aacbf4 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -487,3 +487,22 @@ footer { overflow: hidden; background: var(--cotech-black); } + +#coop-dialog { + max-width: 800px; + max-height: 90vh; + margin-left: auto; + margin-right: auto; + border: none; + border-radius: var(--space-sm); + padding: 0; + background: rgba(0, 0, 0, 0.7); +} + +#coop-dialog::backdrop { + background: rgba(0, 0, 0, 0.7); +} + +.coop-dialog-container { + overflow-y: auto; +}