This is an automated email from the ASF dual-hosted git repository. dashorst pushed a commit to branch asf-site in repository https://gitbox.apache.org/repos/asf/wicket-site.git
commit eb4fe5694decb68f2c31b01bf9826304aec12d72 Author: Martijn Dashorst <[email protected]> AuthorDate: Tue Oct 27 00:31:32 2026 +0100 Seasons: the reeds for summer, and the photos dimmed at night Summer is reeds against the evening sun, by D R on Unsplash, instead of the 2005 windscreen. In dark mode each photo shows at its season's `night` brightness (default 0.6), so bright photos don't glare beside the dark page; the dark autumn and Halloween photos keep 1. Co-Authored-By: Claude Opus 5.5 <[email protected]> --- _data/seasons.yml | 25 +++++++++++++++---------- _includes/season-photo.html | 2 +- _sass/ribbon/_chrome.scss | 5 +++++ img/seasons/README.txt | 2 +- img/seasons/summer-reeds-1600.jpg | Bin 0 -> 213271 bytes img/seasons/summer-reeds-2400.jpg | Bin 0 -> 394835 bytes img/seasons/summer-reeds-900.jpg | Bin 0 -> 85405 bytes img/seasons/summer-windscreen-1600.jpg | Bin 192118 -> 0 bytes img/seasons/summer-windscreen-2160.jpg | Bin 342695 -> 0 bytes img/seasons/summer-windscreen-900.jpg | Bin 65659 -> 0 bytes javascript/ribbon.js | 2 +- 11 files changed, 23 insertions(+), 13 deletions(-) diff --git a/_data/seasons.yml b/_data/seasons.yml index ec0e2aa5..40e1df5b 100644 --- a/_data/seasons.yml +++ b/_data/seasons.yml @@ -22,6 +22,9 @@ # shift moves the photo further right (a share of its own width) # size makes it smaller (a share of the hero's height, from the top) # ground continues the photo's colours to the left and below (a CSS gradient) +# night how bright the photo shows in dark mode, from 0 to 1 (default 0.6): a bright +# photo is dimmed so it doesn't glare beside the dark page; 1 for a photo that +# is dark already # credit, url who took the photo and where it comes from, shown small in the photo's # corner; leave both out for the project's own photos # @@ -49,20 +52,20 @@ seasons: focus_narrow: "56% 50%" soft: true - # The orange-red windscreen on the beach, from the 2005 SourceForge site. + # Reeds against the evening sun. - name: summer label: Summer months: [6, 7, 8] - photo: summer-windscreen-1600.jpg + photo: summer-reeds-1600.jpg srcset: - - { file: summer-windscreen-900.jpg, width: 900 } - - { file: summer-windscreen-1600.jpg, width: 1600 } - - { file: summer-windscreen-2160.jpg, width: 2160 } - focus: "50% 50%" - focus_narrow: "50% 50%" - anchor: right - shift: "33%" - ground: "linear-gradient(180deg, #44649E 0%, #4D6FA8 10%, #597FB4 20%, #7393C0 30%, #9DABC1 42%, #93A4B8 54%, #859AB2 56.5%, #9A8A79 57.5%, #BBB3B2 62%, #B1A79F 85%, #ACA39C 100%)" + - { file: summer-reeds-900.jpg, width: 900 } + - { file: summer-reeds-1600.jpg, width: 1600 } + - { file: summer-reeds-2400.jpg, width: 2400 } + focus: "50% 55%" + focus_narrow: "62% 60%" + night: 0.82 + credit: D R on Unsplash + url: https://unsplash.com/photos/u7ldh_tgH3s - name: autumn label: Autumn @@ -78,6 +81,7 @@ seasons: shift: "2%" ground: "linear-gradient(180deg, #2B2C2E 0%, #333536 20%, #3D403F 32%, #34373B 50%, #4A5246 62%, #6E7160 75%, #6F7350 90%, #4B454A 100%)" veil: strong + night: 1 credit: Veronika Biro on Unsplash url: https://unsplash.com/photos/CCAoWVqolxM @@ -98,5 +102,6 @@ occasions: size: "80%" ground: "linear-gradient(180deg, #150C02 0%, #1A0F03 40%, #21170A 80%, #17120A 100%)" veil: strong + night: 1 credit: Ashley Levinson on Unsplash url: https://unsplash.com/photos/ApYECGtZa4A diff --git a/_includes/season-photo.html b/_includes/season-photo.html index 63dc4004..24f37c4d 100644 --- a/_includes/season-photo.html +++ b/_includes/season-photo.html @@ -8,7 +8,7 @@ {%- assign s = site.data.seasons.seasons | first -%} {%- for season in site.data.seasons.seasons -%}{%- if season.months contains month -%}{%- assign s = season -%}{%- endif -%}{%- endfor -%} {%- capture base %}{{ site.baseurl }}/img/seasons/{% endcapture -%} -<div class="photo" data-season="{{ s.name }}"{% if s.soft %} data-soft{% endif %}{% if s.anchor %} data-anchor="{{ s.anchor }}"{% endif %}{% if s.veil %} data-veil="{{ s.veil }}"{% endif %}{% if s.size %} data-sized{% endif %} style="--focus-wide: {{ s.focus }}; --focus-narrow: {{ s.focus_narrow }};{% if s.shift %} --shift: {{ s.shift }};{% endif %}{% if s.size %} --size: {{ s.size }};{% endif %}{% if s.ground %} --ground: {{ s.ground }};{% endif %}" aria-hidden="true"> +<div class="photo" data-season="{{ s.name }}"{% if s.soft %} data-soft{% endif %}{% if s.anchor %} data-anchor="{{ s.anchor }}"{% endif %}{% if s.veil %} data-veil="{{ s.veil }}"{% endif %}{% if s.size %} data-sized{% endif %} style="--focus-wide: {{ s.focus }}; --focus-narrow: {{ s.focus_narrow }};{% if s.shift %} --shift: {{ s.shift }};{% endif %}{% if s.size %} --size: {{ s.size }};{% endif %}{% if s.ground %} --ground: {{ s.ground }};{% endif %}{% if s.night %} --night: {{ s.night }} [...] <img src="{{ base }}{{ s.photo }}"{% if s.srcset %} srcset="{% for f in s.srcset %}{{ base }}{{ f.file }} {{ f.width }}w{% unless forloop.last %}, {% endunless %}{% endfor %}" sizes="100vw"{% endif %} alt=""{% if include.hero %} fetchpriority="high"{% endif %}> </div> <div class="photo-meta"> diff --git a/_sass/ribbon/_chrome.scss b/_sass/ribbon/_chrome.scss index e18ad8bd..2171931b 100644 --- a/_sass/ribbon/_chrome.scss +++ b/_sass/ribbon/_chrome.scss @@ -127,6 +127,11 @@ nav.mainmenu.is-home .nav-sections { margin-left: 0; } object-fit: cover; object-position: var(--focus-wide, 50% 50%); } .photo[data-soft] img { filter: blur(1.4px) saturate(.92); transform: scale(1.03); } +// At night a bright photo is dimmed beside the dark page; `night` in _data/seasons.yml says how far. +@media (prefers-color-scheme: dark) { + .photo img { filter: brightness(var(--night, .6)); } + .photo[data-soft] img { filter: blur(1.4px) saturate(.92) brightness(var(--night, .6)); } +} // A photo whose subject stands mid-frame keeps its full height at the right; its own sky and land continue to the left. .photo[data-anchor="right"] { background: var(--ground, #C9D6CF); } diff --git a/img/seasons/README.txt b/img/seasons/README.txt index 44dd7c10..ee1d9b6e 100644 --- a/img/seasons/README.txt +++ b/img/seasons/README.txt @@ -1,6 +1,6 @@ Seasonal photographs for the homepage hero and the title band of every page. _data/seasons.yml says which photo shows in which months, and holds the credit for photos that are not the project's own. winter-frosted-leaf-*.jpg: frosted red leaf, the project's own (original 2400 px; 1600 and 900 px copies). spring-meadow.jpg: sunlit meadow with daisies, the project's own (only available at 1024 x 575; shown slightly softened). -summer-windscreen-*.jpg: the orange-red windscreen on the beach from the 2005 SourceForge site, the project's own (original 2160 px; 1600 and 900 px copies). +summer-reeds-*.jpg: reeds against the evening sun, by D R on Unsplash, https://unsplash.com/photos/u7ldh_tgH3s (original 5665 px; 2400, 1600 and 900 px copies). autumn-ink-cap-*.jpg: ink cap among autumn leaves, by Veronika Biro on Unsplash, https://unsplash.com/photos/CCAoWVqolxM (original 2400 px; 1600 and 900 px copies). halloween-pumpkin-*.jpg: jack-o'-lantern among dried flowers, by Ashley Levinson on Unsplash, https://unsplash.com/photos/ApYECGtZa4A (original 2400 px; 1600 and 900 px copies). Shown 24 October to 1 November. diff --git a/img/seasons/summer-reeds-1600.jpg b/img/seasons/summer-reeds-1600.jpg new file mode 100644 index 00000000..104abed4 Binary files /dev/null and b/img/seasons/summer-reeds-1600.jpg differ diff --git a/img/seasons/summer-reeds-2400.jpg b/img/seasons/summer-reeds-2400.jpg new file mode 100644 index 00000000..7a08cb96 Binary files /dev/null and b/img/seasons/summer-reeds-2400.jpg differ diff --git a/img/seasons/summer-reeds-900.jpg b/img/seasons/summer-reeds-900.jpg new file mode 100644 index 00000000..f2ca6070 Binary files /dev/null and b/img/seasons/summer-reeds-900.jpg differ diff --git a/img/seasons/summer-windscreen-1600.jpg b/img/seasons/summer-windscreen-1600.jpg deleted file mode 100644 index 48fdb24d..00000000 Binary files a/img/seasons/summer-windscreen-1600.jpg and /dev/null differ diff --git a/img/seasons/summer-windscreen-2160.jpg b/img/seasons/summer-windscreen-2160.jpg deleted file mode 100644 index 85d6f825..00000000 Binary files a/img/seasons/summer-windscreen-2160.jpg and /dev/null differ diff --git a/img/seasons/summer-windscreen-900.jpg b/img/seasons/summer-windscreen-900.jpg deleted file mode 100644 index 48df38da..00000000 Binary files a/img/seasons/summer-windscreen-900.jpg and /dev/null differ diff --git a/javascript/ribbon.js b/javascript/ribbon.js index 3c7962d6..70a60868 100644 --- a/javascript/ribbon.js +++ b/javascript/ribbon.js @@ -53,7 +53,7 @@ document.documentElement.classList.replace('no-js', 'js'); photo.toggleAttribute('data-sized', !!s.size); if (s.anchor) photo.dataset.anchor = s.anchor; else delete photo.dataset.anchor; if (s.veil) photo.dataset.veil = s.veil; else delete photo.dataset.veil; - const vars = { '--focus-wide': s.focus, '--focus-narrow': s.focus_narrow, '--shift': s.shift, '--size': s.size, '--ground': s.ground }; + const vars = { '--focus-wide': s.focus, '--focus-narrow': s.focus_narrow, '--shift': s.shift, '--size': s.size, '--ground': s.ground, '--night': s.night }; for (const k in vars) { if (vars[k]) photo.style.setProperty(k, vars[k]); else photo.style.removeProperty(k); } const credit = photo.parentElement.querySelector('.photo-credit');
