From 013d1a1b4658335843b29eca42392f987508af4b Mon Sep 17 00:00:00 2001 From: Andrey Latyshev Date: Sun, 5 Jul 2026 09:56:36 +0200 Subject: [PATCH 01/10] Generate a script to make a photo gallery --- assets/css/customsty.css | 141 +++++++++++++++++++++++++++++++++++++++ conference/2026.md | 108 ++++++++++++++++++++++++++++++ 2 files changed, 249 insertions(+) diff --git a/assets/css/customsty.css b/assets/css/customsty.css index 5975a377..3fef5704 100644 --- a/assets/css/customsty.css +++ b/assets/css/customsty.css @@ -346,3 +346,144 @@ a.iconlink:hover { color:#0F79D0 !important; transition: 0.3s; } + +/* Image Gallery & Lightbox Styles */ +.image-gallery { + display: grid; + grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); + gap: 20px; + margin: 30px 0; +} + +.gallery-item { + position: relative; + aspect-ratio: 1 / 1; + overflow: hidden; + border-radius: 8px; + box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); + cursor: pointer; + background-color: #f0f0f0; + transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease; +} + +.gallery-item:hover { + transform: translateY(-4px) scale(1.02); + box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15); +} + +.gallery-item img { + width: 100%; + height: 100%; + object-fit: cover; + display: block; + margin: 0; + transition: filter 0.3s ease; +} + +/* Lightbox Modal */ +.lightbox-modal { + display: none; + position: fixed; + z-index: 10000; + left: 0; + top: 0; + width: 100%; + height: 100%; + background-color: rgba(15, 15, 15, 0.9); + backdrop-filter: blur(8px); + -webkit-backdrop-filter: blur(8px); + align-items: center; + justify-content: center; + opacity: 0; + transition: opacity 0.3s ease-in-out; +} + +.lightbox-modal.show { + display: flex; + opacity: 1; +} + +.lightbox-content { + position: relative; + max-width: 85%; + max-height: 85%; + display: flex; + justify-content: center; + align-items: center; +} + +#lightbox-img { + max-width: 100%; + max-height: 85vh; + object-fit: contain; + border-radius: 4px; + box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); + transition: opacity 0.15s ease-in-out; + opacity: 1; +} + +/* Close & Navigation Buttons */ +.lightbox-close { + position: absolute; + top: 25px; + right: 35px; + color: rgba(255, 255, 255, 0.7); + font-size: 40px; + font-weight: 300; + cursor: pointer; + transition: color 0.2s ease, transform 0.2s ease; + user-select: none; + z-index: 10010; +} + +.lightbox-close:hover { + color: #ffffff; + transform: scale(1.1); +} + +.lightbox-prev, +.lightbox-next { + position: absolute; + top: 50%; + transform: translateY(-50%); + color: rgba(255, 255, 255, 0.6); + font-size: 36px; + font-weight: bold; + padding: 16px 24px; + cursor: pointer; + user-select: none; + transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease; + z-index: 10010; + text-decoration: none !important; +} + +.lightbox-prev { + left: 20px; + border-radius: 0 8px 8px 0; +} + +.lightbox-next { + right: 20px; + border-radius: 8px 0 0 8px; +} + +.lightbox-prev:hover, +.lightbox-next:hover { + color: #ffffff; + background-color: rgba(255, 255, 255, 0.1); + transform: translateY(-50%) scale(1.05); +} + +@media (max-width: 768px) { + .lightbox-prev, + .lightbox-next { + padding: 12px 18px; + font-size: 28px; + } + .lightbox-close { + top: 15px; + right: 20px; + font-size: 35px; + } +} + diff --git a/conference/2026.md b/conference/2026.md index 46c52ba9..ec544e0f 100644 --- a/conference/2026.md +++ b/conference/2026.md @@ -250,8 +250,116 @@ Best Presentation and Poster Awards. - [Claire Lestringant](http://www.dalembert.upmc.fr/home/lestringant/), Sorbonne Université. - [Corrado Maurini](http://www.lmm.jussieu.fr/~corrado/), Sorbonne Université. - [Ridgway Scott](https://people.cs.uchicago.edu/~ridg/), University of Chicago. +## Photo Gallery + + + + + + + + ## Contact If you have any questions about the conference organization, please contact: [fenics-2026@dalembert.upmc.fr](mailto:fenics-2026@dalembert.upmc.fr?cc=corrado.maurini%40sorbonne-universite.fr%2Cridg%40uchicago.edu&subject=FEniCS26%3A%20). + From 0cc43a826c26b0a410afb55bbcdf61a094915801 Mon Sep 17 00:00:00 2001 From: Andrey Latyshev Date: Sun, 5 Jul 2026 10:00:51 +0200 Subject: [PATCH 02/10] Add slider --- assets/css/customsty.css | 66 ++++++++++++++++++++++++++++++++++++++-- conference/2026.md | 63 +++++++++++++++++++++++--------------- 2 files changed, 102 insertions(+), 27 deletions(-) diff --git a/assets/css/customsty.css b/assets/css/customsty.css index 3fef5704..564818b4 100644 --- a/assets/css/customsty.css +++ b/assets/css/customsty.css @@ -347,12 +347,37 @@ a.iconlink:hover { transition: 0.3s; } -/* Image Gallery & Lightbox Styles */ +/* Image Gallery Slider Styles */ +.gallery-slider-container { + position: relative; + display: flex; + align-items: center; + width: 100%; + margin: 30px 0; +} + +.gallery-scroll-wrapper { + overflow-x: auto; + overflow-y: hidden; + scrollbar-width: none; /* Firefox */ + -ms-overflow-style: none; /* IE 10+ */ + width: 100%; + scroll-behavior: smooth; + padding: 10px 0; /* Add padding for translateY hover translations */ +} + +.gallery-scroll-wrapper::-webkit-scrollbar { + display: none; /* Safari and Chrome */ +} + .image-gallery { display: grid; - grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); + grid-template-rows: repeat(2, 180px); + grid-auto-flow: column; + grid-auto-columns: 180px; gap: 20px; - margin: 30px 0; + width: max-content; + margin: 0; } .gallery-item { @@ -380,6 +405,41 @@ a.iconlink:hover { transition: filter 0.3s ease; } +/* Slider buttons for the thumbnail grid */ +.slider-btn { + background-color: rgba(255, 255, 255, 0.9); + border: 1px solid rgba(0, 0, 0, 0.15); + border-radius: 50%; + width: 44px; + height: 44px; + font-size: 18px; + color: #333333; + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); + transition: background-color 0.2s, color 0.2s, transform 0.2s; + z-index: 10; + user-select: none; +} + +.slider-btn:hover { + background-color: #0F79D0; + color: #ffffff; + border-color: #0F79D0; + transform: scale(1.05); +} + +.prev-btn { + margin-right: 15px; +} + +.next-btn { + margin-left: 15px; +} + + /* Lightbox Modal */ .lightbox-modal { display: none; diff --git a/conference/2026.md b/conference/2026.md index ec544e0f..c599cb3a 100644 --- a/conference/2026.md +++ b/conference/2026.md @@ -252,31 +252,37 @@ Best Presentation and Poster Awards. - [Ridgway Scott](https://people.cs.uchicago.edu/~ridg/), University of Chicago. ## Photo Gallery -