From 5965f17c5a62e3c263e37bea674ebf8306822746 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Wed, 4 Nov 2026 20:42:45 -0800 Subject: [PATCH 01/17] Restyle the homepage below the hero as /community/ cards The hero stays the only full-width band. Everything below it moves onto the light /community/ canvas as white cards with kicker headings: latest release and past releases stacked beside the latest blog posts, then Learn more, then the participant logo strip. The logo strip becomes a logo_strip component shared with /community/, whose HTML is unchanged by the move. It replaces the homepage participant carousel, so its include, carousel.js (loaded on every page) and its styles go, along with the old purple section styles. Signed-off-by: Madelyn Olson --- content/_index.md | 2 +- sass/_community.scss | 172 +++++- sass/_valkey.scss | 546 ------------------- static/assets/js/carousel.js | 212 ------- templates/community-home.html | 11 +- templates/includes/head.html | 3 - templates/includes/participant-carousel.html | 61 --- templates/index.html | 207 ++++--- templates/macros/community.html | 18 +- 9 files changed, 288 insertions(+), 944 deletions(-) delete mode 100644 static/assets/js/carousel.js delete mode 100644 templates/includes/participant-carousel.html diff --git a/content/_index.md b/content/_index.md index 16ea142e..7304484b 100644 --- a/content/_index.md +++ b/content/_index.md @@ -56,7 +56,7 @@ title= "Read the docs" +++ -## Learn more +## Learn more {.community-home-kicker} Valkey can run as either a **standalone** daemon or in a **cluster**, with options for **replication** and **high availability**. Valkey natively supports a rich collection of datatypes, including **strings**, **numbers**, **hashes**, **lists**, **sets**, **sorted sets**, **bitmaps**, **hyperloglogs** and more. You can operate on data structures in-place with an expressive collection of commands. diff --git a/sass/_community.scss b/sass/_community.scss index a143a17b..76d8d466 100644 --- a/sass/_community.scss +++ b/sass/_community.scss @@ -2,6 +2,7 @@ // The "Ways to contribute" tiles reuse the shared .community-card styles // from _valkey.scss. Everything here is specific to the landing page: // participant logo strip, photo hero, connect bar, and photo carousel. +// The homepage cards at the end of the file reuse these pieces. $community-purple-900: #2d2471; $community-purple-800: #35247e; @@ -10,6 +11,13 @@ $community-ink: #072150; // Shared pieces -------------------------------------------------------------- +// White panel: the Connect card and the homepage cards. +@mixin community-panel { + background: #fff; + border-radius: 18px; + box-shadow: 0 10px 28px rgba(60, 60, 130, 0.08); +} + .community-home-kicker { display: inline-block; margin: 0; @@ -249,9 +257,7 @@ $community-ink: #072150; max-width: var(--max-width); margin: 3.4rem auto; padding: 2.7rem 3.4rem; - background: #fff; - border-radius: 18px; - box-shadow: 0 10px 28px rgba(60, 60, 130, 0.08); + @include community-panel; @include respond-min(900px) { flex-direction: row; @@ -439,3 +445,163 @@ $community-ink: #072150; } } } + +// Homepage (templates/index.html) ------------------------------------------- + +// Every block below the hero is a card on .community-home-canvas. Two columns +// from 900px: the release cards stack beside the blog card, then Learn more +// and the logo strip run full width. The 1fr row takes any height the blog +// card has over the two release cards, so the release card keeps its natural +// height and the past releases card stretches to line up the bottoms. +.homepage-grid { + display: grid; + gap: 2rem; + max-width: var(--max-width); + margin: 3.4rem auto; + + @include respond-min(900px) { + grid-template-columns: 1fr 1fr; + grid-template-rows: auto 1fr auto auto; + grid-template-areas: + "release blog" + "past blog" + "learn learn" + "participants participants"; + + .homepage-card-release { grid-area: release; } + .homepage-card-past { grid-area: past; } + .homepage-card-blog { grid-area: blog; } + .homepage-card-learn { grid-area: learn; } + .homepage-card-participants { grid-area: participants; } + } +} + +// Connect's padding is too wide for a 390px screen, so cards start tighter. +.homepage-card { + @include community-panel; + min-width: 0; + padding: 2.2rem 2rem; + + @include respond-min(768px) { + padding: 2.7rem 3.4rem; + } + + > :last-child { + margin-bottom: 0; + } + + .release-headline { + margin-bottom: 1rem; + } + + // Keeps the head no taller than the kicker alone, so kickers line up + // across the cards in a row. + .community-home-section-head .link-readmore { + margin: 0; + line-height: 1; + } +} + +// One row per post, split by the logo strip's hairline. The row is an anchor, +// so the title takes the global link colour like the release links beside it. +.homepage-blog-card { + display: block; + padding: 1.4rem 0; + border-top: 1px solid #e9ebf4; + text-decoration: none; + + &:first-child { + padding-top: 0; + border-top: 0; + } + + &:last-child { + padding-bottom: 0; + } + + &:hover .homepage-blog-card-title { + text-decoration: underline; + } +} + +.homepage-blog-card-title { + margin: 0 0 0.3rem; + font-size: 1.7rem; + font-weight: 700; + line-height: 1.3; +} + +.homepage-blog-card-meta { + margin: 0 0 0.5rem; + color: #606985; + font-size: 1.3rem; +} + +.homepage-blog-card-description { + display: -webkit-box; + margin: 0; + overflow: hidden; + color: #47506b; + font-size: 1.4rem; + line-height: 1.45; + -webkit-line-clamp: 3; + -webkit-box-orient: vertical; +} + +// The kicker is the markdown heading in content/_index.md. Flex keeps the +// inline-block kicker off the parent's line box, which would push it below +// the kickers in the other cards. +.homepage-learn-intro { + display: flex; + flex-direction: column; + align-items: flex-start; + + p { + max-width: 100rem; + margin: 1.2rem 0 0; + color: #47506b; + font-size: 1.6rem; + line-height: 1.6; + } +} + +.homepage-learn-grid { + display: grid; + gap: 2.4rem; + margin-top: 2.4rem; + + @include respond-min(600px) { + grid-template-columns: 1fr 1fr; + } + + @include respond-min(1100px) { + grid-template-columns: repeat(4, 1fr); + } +} + +.homepage-learn-item { + display: flex; + flex-direction: column; + align-items: flex-start; + gap: 0.8rem; + padding-top: 1.8rem; + border-top: 1px solid #e9ebf4; + + h3 { + margin: 0; + color: $community-purple-800; + font-size: 1.8rem; + font-weight: 700; + } + + p { + margin: 0 0 0.6rem; + color: #47506b; + font-size: 1.5rem; + line-height: 1.5; + } + + .community-home-btn { + margin-top: auto; + } +} diff --git a/sass/_valkey.scss b/sass/_valkey.scss index c49e0f05..5a785312 100644 --- a/sass/_valkey.scss +++ b/sass/_valkey.scss @@ -1834,180 +1834,6 @@ html.banner-hidden .banner { } } -// Documentation Section Styles -.documentation-section { - padding: 2rem 2rem 4rem; - - // Continues the .whats-new-section gradient, finishing on the #6983ff that - // .homepage-participants-section starts from. - background: linear-gradient(rgb(81, 85, 193), #6983FF); - position: relative; - text-align: center; - color: white; - - @include respond-min(768px) { - padding-bottom: 8rem; - } - - .col { - max-width: 890px; - margin: 0 auto; - } - - a { - color: white; - text-decoration: underline; - } - - h2 { - width: 100%; - line-height: 1.2; - font-size: 3.75rem; - text-align: center; - font-weight: 700; - margin-bottom: 1.75rem; - - @include respond-min(768px) { - font-size: 6rem; - } - } - - p { - margin-bottom: 2rem; - } -} - -.documentation-card-grid { - margin-top: 4rem; - - @media (max-width: 1100px) { - .col { - flex: 1 1 50%; - margin-bottom: 3rem; - } - } - - @media (max-width: 768px) { - .col { - flex: 1 1 100%; - } - } -} - -.documentation-card { - display: flex; - flex-direction: column; - - // Spaces title from description, and keeps the button off the description - // even when `margin-top: auto` has no slack left to push it down. - gap: 1.5rem; - padding: 4rem; - border-radius: 20px; - color: white; - background: #2d2471; - - @include respond-min(768px) { - min-height: 100%; - } - - h3 { - font-weight: 700; - font-size: 2rem; - line-height: 1.2; - text-align: center; - color: white; - margin: 0 0 .5rem; - } - - p { - text-align: left; - margin: 0; - } - - ul { - text-align: left; - padding: 0 0 0 18px; - margin: 10px 0 20px; - } - - a.btn { - color: white; - border-radius: 24px; - border: 1px solid currentcolor; - padding: 1rem; - margin-top: auto; - text-decoration: none; - } -} - -// What's New Section Styles -.whats-new-section { - padding-bottom: 4rem; - - // Stops short of the full #6983ff so the section doesn't end glaring bright. - // .documentation-section picks the gradient up from here. - background-image: linear-gradient(rgb(48, 23, 110), rgb(81, 85, 193)); - - @include respond-min(768px) { - padding: 0 0 4rem; - } - - h2 { - width: 100%; - line-height: 1.2; - font-size: 3.75rem; - color: white; - text-align: center; - font-weight: 700; - margin: 0 0 1.75rem; - - @include respond-min(768px) { - font-size: 6rem; - } - } -} - -.whats-new-inner { - display: flex; - width: 100%; - padding: 2rem; - border-radius: 20px; - background: rgba(255, 255, 255, 0.2); - - @include respond-min(768px) { - padding: 2.5rem; - } - - h3 { - color: white; - font-size: 2.75rem; - font-weight: 700; - width: 100%; - margin: 0 0 1rem; - } - - .inner-card { - background: white; - padding: 3rem; - border-radius: 10px; - margin: 0 0 3rem; - - // The panel's own padding closes out the column; a trailing card margin - // would stack on top of it. - &:last-child { - margin-bottom: 0; - } - - h4 { - margin: 0 0 1rem; - } - - hr { - margin: 2rem 0; - } - } -} - .release-headline { display: flex; flex-wrap: wrap; @@ -2398,378 +2224,6 @@ blockquote { } } -// Homepage blog cards: text-only cards stacked vertically, matching the release -// cards in the other column. -.homepage-blog-section { - display: flex; - flex-direction: column; - gap: 1.5rem; - margin-bottom: 3rem; -} - -// The card is itself an anchor, so it takes its colour from the global -// `a, a:visited` rule. That is the same rule the release links next to it use, -// which is the point: the two white cards in this panel cannot drift apart. -// Do not set a colour here or on the title. -.homepage-blog-card { - background: #fff; - border-radius: 10px; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); - padding: 2rem 2.5rem; - transition: box-shadow 0.2s ease; - display: block; - text-decoration: none; - - &:hover { - box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18); - } -} - -.homepage-blog-card-title { - margin: 0 0 0.5rem 0; - font-size: 1.8rem; - line-height: 1.3; - font-weight: 700; -} - -.homepage-blog-card-meta { - margin: 0 0 1rem; - font-size: 1.3rem; - color: #4a5568; -} - -.homepage-blog-card-description { - margin: 0; - font-size: 1.4rem; - line-height: 1.4; - color: #4a5568; - display: -webkit-box; - -webkit-line-clamp: 3; - -webkit-box-orient: vertical; - overflow: hidden; -} - -// Sits on the heading row rather than under the cards, so the column ends on a -// card edge instead of a stray link. -.homepage-blog-heading { - display: flex; - align-items: baseline; - flex-wrap: wrap; - justify-content: space-between; - gap: 0 1.5rem; - - h3 { - width: auto; - } -} - -// `&:visited` is not redundant: the global `a:visited` is more specific than a -// bare class, so without it the link falls back to the blue link colour. -// Underlined rather than tinted to set it apart from the white heading: no tint -// distinct from white keeps 4.5:1 contrast where the gradient sits on mobile. -.homepage-blog-more { - &, - &:visited, - &:hover { - color: white; - } - - @include sans-serif; - font-size: 1.4rem; - font-weight: 700; - text-transform: uppercase; - text-decoration: underline; - white-space: nowrap; - - // inline-block keeps the underline off the chevron. - &:after { - content: '›'; - display: inline-block; - margin-left: 0.3em; - font-size: 1.2em; - } -} - -// Responsive adjustments for homepage blog cards -@media (max-width: 768px) { - .homepage-blog-card { - padding: 1.5rem 1.8rem; - } - - .homepage-blog-card-title { - font-size: 1.6rem; - } - - .homepage-blog-card-description { - font-size: 1.3rem; - } -} - -// Homepage Participant Carousel Styles -.homepage-participants-section { - background: linear-gradient(180deg, #6983FF 0%, #BCB5E7 100%); - padding: 8rem 0; - - .homepage-participants-container { - max-width: var(--max-width); - margin: 0 auto; - padding: 0 2rem; - } - - .homepage-participants-header { - text-align: center; - margin-bottom: 6rem; - } - - // Same scale as the "Learn more" h2 above it. - .homepage-participants-title { - color: $white; - font-size: 3.75rem; - font-weight: 700; - margin: 0 0 2rem 0; - letter-spacing: -1px; - - @include respond-min(768px) { - font-size: 6rem; - } - } - - .homepage-participants-description { - color: $white; - font-size: 1.8rem; - line-height: 1.6; - max-width: 80rem; - margin: 0 auto; - opacity: 0.95; - } - - .homepage-participants-error { - background: $white; - border-radius: 2rem; - padding: 4rem; - text-align: center; - - p { - color: $text-light; - font-size: 1.6rem; - margin: 0; - } - } - - .homepage-participants-carousel-container { - background: $white; - border-radius: 2rem; - position: relative; - overflow: hidden; - } - - .homepage-participants-carousel { - overflow: hidden; - position: relative; - - .homepage-participants-track { - display: flex; - transition: transform 0.5s ease-in-out; - width: 100%; - } - - .homepage-participant-card { - flex: 0 0 33.33%; - min-width: 0; - min-height: 100%; - border-radius: 1.2rem; - padding: 4rem; - transition: all 0.3s ease; - cursor: pointer; - - .homepage-participant-image-container { - display: flex; - align-items: center; - justify-content: center; - margin-bottom: 2rem; - } - - .homepage-participant-image { - object-fit: contain; - max-height: 40px; - margin-inline: auto; - } - - .homepage-participant-image-placeholder { - width: 6rem; - height: 6rem; - background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - color: $white; - font-size: 2.4rem; - font-weight: 700; - text-transform: uppercase; - } - - .homepage-participant-name { - font-size: 2rem; - font-weight: 700; - color: $text; - text-align: center; - margin: 0 0 1.2rem 0; - line-height: 1.3; - } - - .homepage-participant-offering { - font-size: 1.4rem; - line-height: 1.5; - color: $text-light; - margin: 0; - text-align: center; - word-wrap: break-word; - overflow-wrap: break-word; - display: -webkit-box; - -webkit-line-clamp: 7; - -webkit-box-orient: vertical; - overflow: hidden; - - a { - color: $text-link-alternate; - text-decoration: none; - transition: color 0.2s ease; - - &:hover { - color: $text-link-alternate-lighter; - text-decoration: underline; - } - } - } - } - } - - .homepage-participants-navigation { - display: flex; - justify-content: center; - margin-top: 1.25rem; - - .homepage-participants-dots { - display: flex; - gap: 0.5rem; - align-items: center; - - .homepage-participant-dot { - width: 0.5rem; - height: 0.5rem; - border-radius: 50%; - border: none; - background: rgba($color: #000000, $alpha: 0.25); - cursor: pointer; - transition: all 0.2s ease; - padding: 0; - - &:hover, - &:focus { - background: #000; - transform: scale(1.1); - outline-offset: 2px; - } - - &[aria-current="true"], - &.active { - background: #000; - transform: scale(1.2); - } - } - } - } -} - -// Responsive design for homepage participant carousel -@media (max-width: 1200px) { - .homepage-participants-section { - .homepage-participants-carousel { - .homepage-participant-card { - flex: 0 0 50%; - } - } - } -} - -@media (max-width: 768px) { - .homepage-participants-section { - padding: 6rem 2rem; - - .homepage-participants-container { - padding: 0 1.5rem; - } - - .homepage-participants-description { - font-size: 1.6rem; - max-width: 100%; - } - - .homepage-participants-carousel { - .homepage-participant-card { - flex: 0 0 100%; - padding: 1.8rem; - - .homepage-participant-image-container { - margin-bottom: 1.5rem; - } - - .homepage-participant-name { - font-size: 1.8rem; - margin-bottom: 1rem; - } - - .homepage-participant-offering { - font-size: 1.3rem; - } - } - } - - .homepage-participants-navigation { - margin-top: 2rem; - - .homepage-participants-dots { - gap: 0.75rem; - - .homepage-participant-dot { - width: 0.75rem; - height: 0.75rem; - } - } - } - } -} - -@media (max-width: 480px) { - .homepage-participants-section { - .homepage-participants-carousel { - .homepage-participant-card { - padding: 1.5rem; - } - } - - .homepage-participants-title { - font-size: 3rem; - } - - .homepage-participants-description { - font-size: 1.5rem; - } - - .homepage-participants-navigation { - .homepage-participants-dots { - gap: 1rem; - - .homepage-participant-dot { - width: 1rem; - height: 1rem; - } - } - } - } -} - // Events Calendar .events-calendar { max-width: 800px; diff --git a/static/assets/js/carousel.js b/static/assets/js/carousel.js deleted file mode 100644 index 467cd9af..00000000 --- a/static/assets/js/carousel.js +++ /dev/null @@ -1,212 +0,0 @@ -/** - * Homepage Participant Carousel Module - * - * Features: - * - Auto-scrolling carousel with pause on hover - * - Responsive design (1/2/3 cards per slide based on screen size) - * - Keyboard navigation support - * - Intersection Observer for performance optimization - * - Accessibility features with ARIA labels - * - */ - -(function() { - 'use strict'; - - // Cache DOM elements to avoid repeated queries - let carousel, track, dots, cards; - let currentSlide = 0; - let autoScrollInterval = null; - let dotButtons = []; - let isVisible = true; - let resizeTimeout; - - /** - * Get number of cards per slide based on screen size - * @returns {number} Number of cards to show per slide - */ - function getCardsPerSlide() { - const width = window.innerWidth; - if (width <= 768) { - return 1; // Mobile: 1 card per slide - } else if (width <= 1200) { - return 2; // Tablet: 2 cards per slide - } else { - return 3; // Desktop: 3 cards per slide - } - } - - /** - * Update dots based on current screen size - */ - function updateDotsForScreenSize() { - const cardsPerSlide = getCardsPerSlide(); - const totalSlides = Math.ceil(cards.length / cardsPerSlide); - - // Clear existing dots - dots.innerHTML = ''; - - // Create new dots - for (let i = 0; i < totalSlides; i++) { - const dot = document.createElement('button'); - dot.className = 'homepage-participant-dot'; - dot.setAttribute('data-slide', i); - dot.setAttribute('aria-label', `Go to slide ${i + 1}`); - dot.setAttribute('aria-current', 'false'); - - dot.addEventListener('click', () => { - goToSlide(i); - }); - - dots.appendChild(dot); - } - - // Update reference to dot buttons - dotButtons = dots.querySelectorAll('.homepage-participant-dot'); - - // Ensure current slide is valid - if (currentSlide >= totalSlides) { - currentSlide = totalSlides - 1; - } - - updateDots(); - } - - /** - * Start auto-scroll functionality - */ - function startAutoScroll() { - if (dotButtons.length <= 1 || !isVisible) return; // Don't auto-scroll if only one slide or not visible - - autoScrollInterval = setInterval(() => { - currentSlide = (currentSlide + 1) % dotButtons.length; - updateCarousel(); - }, 5000); // 5 seconds - } - - /** - * Update carousel position - */ - function updateCarousel() { - const slideWidth = carousel.offsetWidth; - const translateX = -currentSlide * slideWidth; - track.style.transform = `translateX(${translateX}px)`; - updateDots(); - } - - /** - * Update dot states - */ - function updateDots() { - dotButtons.forEach((dot, index) => { - if (index === currentSlide) { - dot.setAttribute('aria-current', 'true'); - dot.classList.add('active'); - } else { - dot.setAttribute('aria-current', 'false'); - dot.classList.remove('active'); - } - }); - } - - /** - * Go to specific slide - * @param {number} slideIndex - Index of slide to navigate to - */ - function goToSlide(slideIndex) { - currentSlide = Math.max(0, Math.min(slideIndex, dotButtons.length - 1)); - updateCarousel(); - } - - /** - * Add keyboard support for participant cards - */ - function setupKeyboardSupport() { - cards.forEach(card => { - card.addEventListener('keydown', (e) => { - if (e.key === 'Enter' || e.key === ' ') { - e.preventDefault(); - card.click(); - } - }); - }); - } - - /** - * Setup event listeners - */ - function setupEventListeners() { - // Pause auto-scroll on hover - carousel.addEventListener('mouseenter', () => { - if (autoScrollInterval) { - clearInterval(autoScrollInterval); - autoScrollInterval = null; - } - }); - - carousel.addEventListener('mouseleave', () => { - startAutoScroll(); - }); - - // Handle window resize with debouncing - window.addEventListener('resize', () => { - clearTimeout(resizeTimeout); - resizeTimeout = setTimeout(() => { - updateDotsForScreenSize(); - updateCarousel(); - }, 250); - }); - - // Add Intersection Observer to pause carousel when not visible - if ('IntersectionObserver' in window) { - const observer = new IntersectionObserver((entries) => { - entries.forEach(entry => { - isVisible = entry.isIntersecting; - if (isVisible) { - startAutoScroll(); - } else if (autoScrollInterval) { - clearInterval(autoScrollInterval); - autoScrollInterval = null; - } - }); - }, { threshold: 0.1 }); - - observer.observe(carousel); - } - } - - /** - * Initialize the carousel - */ - function init() { - carousel = document.getElementById('homepageParticipantsCarousel'); - track = document.getElementById('homepageParticipantsTrack'); - dots = document.getElementById('homepageParticipantsDots'); - - if (!carousel || !track || !dots) { - console.warn('Participant carousel elements not found'); - return; - } - - cards = track.querySelectorAll('.homepage-participant-card'); - - if (cards.length === 0) { - console.warn('No participant cards found'); - return; - } - - // Setup carousel functionality - updateDotsForScreenSize(); - setupKeyboardSupport(); - setupEventListeners(); - startAutoScroll(); - } - - // Initialize when DOM is ready - if (document.readyState === 'loading') { - document.addEventListener('DOMContentLoaded', init); - } else { - init(); - } - -})(); diff --git a/templates/community-home.html b/templates/community-home.html index cf0b8f33..e2ddb4f1 100644 --- a/templates/community-home.html +++ b/templates/community-home.html @@ -9,16 +9,7 @@ {% if participants and participants | length > 0 %}
-
- Valkey participants - -
-
-
- {{< logo_set participants={participants} />}} - {{< logo_set participants={participants} duplicate={true} />}} -
-
+ {{< logo_strip participants={participants} />}}
{% endif %} diff --git a/templates/includes/head.html b/templates/includes/head.html index 2bf49492..3555fa5a 100644 --- a/templates/includes/head.html +++ b/templates/includes/head.html @@ -60,9 +60,6 @@ - - - diff --git a/templates/includes/participant-carousel.html b/templates/includes/participant-carousel.html deleted file mode 100644 index 87a30a2c..00000000 --- a/templates/includes/participant-carousel.html +++ /dev/null @@ -1,61 +0,0 @@ -{% set participants = load_data(path="_data/participants.yml") %} - -
-
-
-

Participants

-

- The Valkey project participants are a diverse group of organizations that have come together to maintain and contribute to the project. Valkey participants are more than vendors, they are dedicated to continuously strengthening the long-term health and viability of this project so that everyone can benefit from it. Since its inception Valkey has enjoyed steady adoption demonstrating the industry's desire for an open, community-driven database solution. We look forward to seeing our list of participants grow as more companies work on our project. -

-
- - {% if participants and participants | length > 0 %} - - -
-
- {% set total_participants = participants | length %} - {% set total_slides = (total_participants / 3) | round(method="ceil") | int %} - {% if total_slides > 1 %} - {% for i in range(start=1, end=total_slides + 1) %} - - {% endfor %} - {% endif %} -
-
- {% else %} -
-

Unable to load participant information at this time. Please try again later.

-
- {% endif %} -
- -
diff --git a/templates/index.html b/templates/index.html index 46d578bb..9378c7dc 100644 --- a/templates/index.html +++ b/templates/index.html @@ -20,131 +20,124 @@

{{ heading }}

{% endif %} -
-
-
- {# The newest stable release on each major.minor line, newest line first. #} - {% set release_section = get_section(path="download/releases/_index.md") %} - {% set_global keyed_lines = [] %} - {% set_global seen_lines = [] %} - {% for candidate in release_section.pages | sort(attribute="date") | reverse %} - {% if candidate.extra.tag is not matching(pat=".*-.*") %} - {% set candidate_parts = candidate.extra.tag | split(pat=".") %} - {% set candidate_line = candidate_parts[:2] | join(sep=".") %} - {% if candidate_line not in seen_lines %} - {% set_global seen_lines = [...seen_lines, candidate_line] %} - {% set_global keyed_lines = [...keyed_lines, {"version": (candidate_parts[0] | int) * 1000 + (candidate_parts[1] | int), "release": candidate}] %} - {% endif %} - {% endif %} - {% endfor %} +{# Below the hero, every block is a white card on the light canvas /community/ + uses. The grid is in the homepage section of _community.scss. #} +
+
+ {# The newest stable release on each major.minor line, newest line first. #} + {% set release_section = get_section(path="download/releases/_index.md") %} + {% set_global keyed_lines = [] %} + {% set_global seen_lines = [] %} + {% for candidate in release_section.pages | sort(attribute="date") | reverse %} + {% if candidate.extra.tag is not matching(pat=".*-.*") %} + {% set candidate_parts = candidate.extra.tag | split(pat=".") %} + {% set candidate_line = candidate_parts[:2] | join(sep=".") %} + {% if candidate_line not in seen_lines %} + {% set_global seen_lines = [...seen_lines, candidate_line] %} + {% set_global keyed_lines = [...keyed_lines, {"version": (candidate_parts[0] | int) * 1000 + (candidate_parts[1] | int), "release": candidate}] %} + {% endif %} + {% endif %} + {% endfor %} - {# Dates pick each line's newest patch but cannot order the lines: every - supported line usually ships a patch on the same day. #} - {% set_global release_lines = [] %} - {% for keyed in keyed_lines | sort(attribute="version") | reverse %} - {% set_global release_lines = [...release_lines, keyed.release] %} - {% endfor %} + {# Dates pick each line's newest patch but cannot order the lines: every + supported line usually ships a patch on the same day. #} + {% set_global release_lines = [] %} + {% for keyed in keyed_lines | sort(attribute="version") | reverse %} + {% set_global release_lines = [...release_lines, keyed.release] %} + {% endfor %} - {% set latest = release_lines | first %} - {% set latest_parts = latest.extra.tag | split(pat=".") %} - {% set latest_line = latest_parts[:2] | join(sep=".") %} + {% set latest = release_lines | first %} + {% set latest_parts = latest.extra.tag | split(pat=".") %} + {% set latest_line = latest_parts[:2] | join(sep=".") %} - {# Highlights and the line URL both come from the /download// page. - get_page fails the build if a release ships without its line page. #} - {% set latest_slug = latest_line | replace(from=".", to="-") %} - {% set latest_line_page = get_page(path="download/versions/" ~ latest_slug ~ ".md") %} + {# Highlights and the line URL both come from the /download// page. + get_page fails the build if a release ships without its line page. #} + {% set latest_slug = latest_line | replace(from=".", to="-") %} + {% set latest_line_page = get_page(path="download/versions/" ~ latest_slug ~ ".md") %} -

Latest release

-
-

- Valkey {{ latest.extra.tag }} - Released {{ latest.date | date(format="%B %-d, %Y") }} -

+
+
+

Latest release

+
+

+ Valkey {{ latest.extra.tag }} + Released {{ latest.date | date(format="%B %-d, %Y") }} +

-
{{ latest_line_page.content | safe }}
- {% if latest_line_page.extra.blog_url %} - {{ latest_line_page.extra.blog_text }} - {% endif %} -
+
{{ latest_line_page.content | safe }}
+ {% if latest_line_page.extra.blog_url %} + {{ latest_line_page.extra.blog_text }} + {% endif %} + -

Latest supported version of past releases

-
- - All releases -
+
+
+

Latest supported version of past releases

-
-
-

Latest Blog Posts

- All blog posts -
-
- {% set blog_post_section = get_section(path="blog/_index.md") %} - {% set blog_count = section.extra.latest_blog_posts %} - {% set blog_posts = blog_post_section.pages[:blog_count] %} - {% for post in blog_posts %} - {# The whole card is the link, so there is no separate call to action. - Featured images are 16:9 decoration; a thumbnail this narrow could only - show a crop of one, so the card is text instead. #} - -

{{ post.title }}

-

{{ post.date | date(format="%B %-d, %Y") }}

-

{{ post.description }}

-
- {% endfor %} -
+ + All releases +
- {% if section.extra and section.extra.sidebar %} - {% for sidebar_category in section.extra.sidebar %} -

{{sidebar_category.title}}

-
- - {% if sidebar_category.more %} - {{sidebar_category.more.title}} - {% endif %} -
- {% endfor %} - {% endif %} +
+
+

Latest Blog Posts

+ All blog posts
-
-
+
+ {% set blog_post_section = get_section(path="blog/_index.md") %} + {% set blog_count = section.extra.latest_blog_posts %} + {% set blog_posts = blog_post_section.pages[:blog_count] %} + {% for post in blog_posts %} + {# The whole row is the link, so there is no separate call to action. + Featured images are 16:9 decoration; a thumbnail this narrow could only + show a crop of one, so the row is text instead. #} + +

{{ post.title }}

+

{{ post.date | date(format="%B %-d, %Y") }}

+

{{ post.description }}

+
+ {% endfor %} +
+ -
-
-
+
+
{{ section.content | safe }}
-
-
{% if section.extra and section.extra.documentation_cards %} +
{% for card in section.extra.documentation_cards %} -
-
-

{{ card.title }}

-

{{ card.description }}

- {{ card.button_text }} -
+
+

{{ card.title }}

+

{{ card.description }}

+ {{ card.button_text }}
{% endfor %} +
{% endif %} -
+ + + {# Same order as the Participants page #} + {% set participants = load_data(path="_data/participants.yml") | sort(attribute="name") %} + {% if participants and participants | length > 0 %} +
+ {{< logo_strip participants={participants} />}} +
+ {% endif %} +
-{% include "includes/participant-carousel.html" %} + {%- endblock content -%} diff --git a/templates/macros/community.html b/templates/macros/community.html index 0ca5cf28..c1504143 100644 --- a/templates/macros/community.html +++ b/templates/macros/community.html @@ -1,5 +1,5 @@ {# - Participant logo strip helpers for the community page. + Participant logo strip helpers for the community page and the homepage. Logos come in very different shapes (square icons, tall lockups, long wordmarks). To give them similar visual weight, each logo is sized against @@ -44,3 +44,19 @@ {%- endfor -%}
{% endcomponent logo_set %} + +{# The whole strip: kicker, pause control, and the marquee. Each page supplies + its own wrapper. community.js finds the track and button by id, so a page + holds at most one strip. #} +{% component logo_strip(participants) -%} +
+ Valkey participants + +
+
+
+ {{< logo_set participants={participants} />}} + {{< logo_set participants={participants} duplicate={true} />}} +
+
+{%- endcomponent logo_strip %} From ee3db8863c6c79957fc802d47b1ac9eb5168cde9 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Wed, 4 Nov 2026 21:36:09 -0800 Subject: [PATCH 02/17] Make the Learn more tiles the links themselves Each Usage guide, Valkey API, Clients and Performance tile is now one link to where its pill pointed, with a hover tint and a focus ring, so the pills and their button_text go. The intro paragraph loses its max-width and fills the card. Signed-off-by: Madelyn Olson --- content/_index.md | 4 ---- sass/_community.scss | 43 ++++++++++++++++++++++++++++++------------- templates/index.html | 6 +++--- 3 files changed, 33 insertions(+), 20 deletions(-) diff --git a/content/_index.md b/content/_index.md index 7304484b..e1218e63 100644 --- a/content/_index.md +++ b/content/_index.md @@ -23,25 +23,21 @@ secondary_button_url = "/topics/installation" [[extra.documentation_cards]] title = "Usage guide" description = "Detailed documentation on the various datatypes supported by Valkey and best practices." -button_text = "Documentation by topic" button_url = "/topics/" [[extra.documentation_cards]] title = "Valkey API" description = "View the full list of Valkey commands including first party modules." -button_text = "Command Reference" button_url = "/commands" [[extra.documentation_cards]] title = "Clients" description = "Recommended Valkey client libraries for Python, Java, Go, Node.js, PHP, C#, Ruby, and more." -button_text = "Learn More" button_url = "/clients/" [[extra.documentation_cards]] title = "Performance" description = "Deep dive into Valkey performance numbers across versions." -button_text = "Explore" button_url = "/performance/" [[extra.download_ctas]] diff --git a/sass/_community.scss b/sass/_community.scss index 76d8d466..2e35c06c 100644 --- a/sass/_community.scss +++ b/sass/_community.scss @@ -557,7 +557,6 @@ $community-ink: #072150; align-items: flex-start; p { - max-width: 100rem; margin: 1.2rem 0 0; color: #47506b; font-size: 1.6rem; @@ -580,28 +579,46 @@ $community-ink: #072150; } .homepage-learn-item { - display: flex; - flex-direction: column; - align-items: flex-start; - gap: 0.8rem; - padding-top: 1.8rem; - border-top: 1px solid #e9ebf4; + display: block; + padding: 1.8rem 2rem; + border: 1px solid #e9ebf4; + border-radius: 14px; + text-decoration: none; + transition: background 0.15s, border-color 0.15s; + + &:hover { + border-color: #bfc6dd; + background: #f8faff; + + h3 { + text-decoration: underline; + } + } + + &:focus-visible { + outline: 2px solid $community-blue-500; + outline-offset: 2px; + } h3 { - margin: 0; + margin: 0 0 0.8rem; color: $community-purple-800; font-size: 1.8rem; font-weight: 700; + + // Same chevron as .link-readmore. inline-block keeps the hover underline + // off it. + &::after { + content: '\203A'; + display: inline-block; + margin-left: 0.4em; + } } p { - margin: 0 0 0.6rem; + margin: 0; color: #47506b; font-size: 1.5rem; line-height: 1.5; } - - .community-home-btn { - margin-top: auto; - } } diff --git a/templates/index.html b/templates/index.html index 9378c7dc..cbf62d85 100644 --- a/templates/index.html +++ b/templates/index.html @@ -116,13 +116,13 @@

{{ post.title }}

{{ section.content | safe }}
{% if section.extra and section.extra.documentation_cards %} + {# The whole tile is the link, like the blog rows. #}
{% for card in section.extra.documentation_cards %} - + {% endfor %}
{% endif %} From 12e82405fb779cbe490c7a33b6cc6a6c484f8b6f Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Wed, 4 Nov 2026 22:11:58 -0800 Subject: [PATCH 03/17] Address review on the homepage cards - Card titles (latest release, blog posts, Learn more tiles) share $community-ink and underline on hover. The global h3 colour had been winning over the anchor, so the comment saying otherwise is fixed. - The past releases card keeps its natural height (align-self: start) instead of stretching to the blog card, and blog blurbs clamp at two lines. - Learn more tiles rest on #f8faff and hover at #eef1fb, with no border. - Read-more links inside the cards are sentence case at 1.4rem. - Past release rows drop "Released" and use a short month. - The Learn more paragraph drops its bold terms. Signed-off-by: Madelyn Olson --- content/_index.md | 4 ++-- sass/_community.scss | 41 +++++++++++++++++++++++++++-------------- templates/index.html | 2 +- 3 files changed, 30 insertions(+), 17 deletions(-) diff --git a/content/_index.md b/content/_index.md index e1218e63..95e17115 100644 --- a/content/_index.md +++ b/content/_index.md @@ -54,6 +54,6 @@ title= "Read the docs" ## Learn more {.community-home-kicker} -Valkey can run as either a **standalone** daemon or in a **cluster**, with options for **replication** and **high availability**. Valkey natively supports a rich collection of datatypes, including **strings**, **numbers**, **hashes**, **lists**, **sets**, **sorted sets**, **bitmaps**, **hyperloglogs** and more. +Valkey can run as either a standalone daemon or in a cluster, with options for replication and high availability. Valkey natively supports a rich collection of datatypes, including strings, numbers, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs and more. You can operate on data structures in-place with an expressive collection of commands. -Valkey also supports native extensibility with built-in scripting support for **Lua** and supports **module** plugins to create new commands, data types, and more. +Valkey also supports native extensibility with built-in scripting support for Lua and supports module plugins to create new commands, data types, and more. diff --git a/sass/_community.scss b/sass/_community.scss index 2e35c06c..ec72f8eb 100644 --- a/sass/_community.scss +++ b/sass/_community.scss @@ -451,8 +451,8 @@ $community-ink: #072150; // Every block below the hero is a card on .community-home-canvas. Two columns // from 900px: the release cards stack beside the blog card, then Learn more // and the logo strip run full width. The 1fr row takes any height the blog -// card has over the two release cards, so the release card keeps its natural -// height and the past releases card stretches to line up the bottoms. +// card has over the two release cards, and the past releases card sits at the +// top of it, so both release cards keep their natural height. .homepage-grid { display: grid; gap: 2rem; @@ -469,7 +469,7 @@ $community-ink: #072150; "participants participants"; .homepage-card-release { grid-area: release; } - .homepage-card-past { grid-area: past; } + .homepage-card-past { grid-area: past; align-self: start; } .homepage-card-blog { grid-area: blog; } .homepage-card-learn { grid-area: learn; } .homepage-card-participants { grid-area: participants; } @@ -492,18 +492,31 @@ $community-ink: #072150; .release-headline { margin-bottom: 1rem; + + a { + color: $community-ink; + + &:hover { + text-decoration: underline; + } + } + } + + .link-readmore { + text-transform: none; + font-size: 1.4rem; } - // Keeps the head no taller than the kicker alone, so kickers line up - // across the cards in a row. + // A line box no taller than the kicker's keeps the head at the kicker's + // height, so kickers line up across the cards in a row. .community-home-section-head .link-readmore { margin: 0; - line-height: 1; + line-height: 1.1rem; } } -// One row per post, split by the logo strip's hairline. The row is an anchor, -// so the title takes the global link colour like the release links beside it. +// One row per post, split by the logo strip's hairline. The title takes the +// same ink as the latest release and Learn more titles. .homepage-blog-card { display: block; padding: 1.4rem 0; @@ -526,6 +539,7 @@ $community-ink: #072150; .homepage-blog-card-title { margin: 0 0 0.3rem; + color: $community-ink; font-size: 1.7rem; font-weight: 700; line-height: 1.3; @@ -544,7 +558,7 @@ $community-ink: #072150; color: #47506b; font-size: 1.4rem; line-height: 1.45; - -webkit-line-clamp: 3; + -webkit-line-clamp: 2; -webkit-box-orient: vertical; } @@ -581,14 +595,13 @@ $community-ink: #072150; .homepage-learn-item { display: block; padding: 1.8rem 2rem; - border: 1px solid #e9ebf4; border-radius: 14px; + background: #f8faff; text-decoration: none; - transition: background 0.15s, border-color 0.15s; + transition: background 0.15s; &:hover { - border-color: #bfc6dd; - background: #f8faff; + background: #eef1fb; h3 { text-decoration: underline; @@ -602,7 +615,7 @@ $community-ink: #072150; h3 { margin: 0 0 0.8rem; - color: $community-purple-800; + color: $community-ink; font-size: 1.8rem; font-weight: 700; diff --git a/templates/index.html b/templates/index.html index cbf62d85..054b03b3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -82,7 +82,7 @@

Latest supported version of past releases

{% set older_line_page = get_page(path="download/versions/" ~ older_slug ~ ".md") %}
  • Valkey {{ older_release.extra.tag }} - Released {{ older_release.date | date(format="%B %-d, %Y") }} + {{ older_release.date | date(format="%b %-d, %Y") }}
  • {% endfor %} From b7935ebac613e420fdac759f6abdc6529ef36faf Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Wed, 4 Nov 2026 22:24:59 -0800 Subject: [PATCH 04/17] Restyle the hero and open nav submenus on keyboard focus Hero: sentence-case headings and buttons (the caps were in the content, not CSS), drop the heading tracking, and shorten the subtitle to one normal-weight line. The workloads sentence moves into Learn more. A radial layer darkens the overlay's centre so the photo only shows at the edges, and a docker run command with a copy button sits under the buttons. The copy block is now a copy_code component shared with the release pages, whose HTML is unchanged. Nav: Documentation and Community open on :focus-within as well as :hover, and show a caret from 1024px up. The mobile menu is unchanged. Signed-off-by: Madelyn Olson --- content/_index.md | 11 ++++--- sass/_valkey.scss | 59 ++++++++++++++++++++++++++++++++--- templates/index.html | 3 ++ templates/macros/release.html | 32 +++++++++++-------- 4 files changed, 83 insertions(+), 22 deletions(-) diff --git a/content/_index.md b/content/_index.md index 95e17115..b6037d99 100644 --- a/content/_index.md +++ b/content/_index.md @@ -13,12 +13,13 @@ headline= "Valkey: an open source, in-memory data store" long_description= "" [extra.hero] -headings = ["FAST. RELIABLE.", "OPEN SOURCE, FOREVER."] -subtitle = "Valkey is an open source (BSD) high-performance key/value datastore that supports a variety of workloads such as caching, message queues, and can act as a primary database. The project is backed by the Linux Foundation, ensuring it will remain open source forever." -button_text = "GET STARTED" +headings = ["Fast. Reliable.", "Open source, forever."] +subtitle = "An open source (BSD), high-performance key/value datastore, backed by the Linux Foundation." +button_text = "Get started" button_url = "/topics/quickstart" -secondary_button_text = "INSTALL VALKEY" +secondary_button_text = "Install Valkey" secondary_button_url = "/topics/installation" +command = "docker run -d -p 6379:6379 valkey/valkey" [[extra.documentation_cards]] title = "Usage guide" @@ -54,6 +55,6 @@ title= "Read the docs" ## Learn more {.community-home-kicker} -Valkey can run as either a standalone daemon or in a cluster, with options for replication and high availability. Valkey natively supports a rich collection of datatypes, including strings, numbers, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs and more. +Valkey supports a variety of workloads such as caching and message queues, and can act as a primary database. It can run as either a standalone daemon or in a cluster, with options for replication and high availability. Valkey natively supports a rich collection of datatypes, including strings, numbers, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs and more. You can operate on data structures in-place with an expressive collection of commands. Valkey also supports native extensibility with built-in scripting support for Lua and supports module plugins to create new commands, data types, and more. diff --git a/sass/_valkey.scss b/sass/_valkey.scss index 5a785312..8069f238 100644 --- a/sass/_valkey.scss +++ b/sass/_valkey.scss @@ -299,7 +299,8 @@ p { display: flex; } - &:hover { + &:hover, + &:focus-within { > span { color: #04202a; } @@ -321,6 +322,21 @@ p { text-decoration: none; } } + + // Desktop only: below 1024px the submenu is always listed under its link. + @include respond-min(1024px) { + &::after { + content: ''; + display: inline-block; + width: 0.45em; + height: 0.45em; + margin-left: 0.5em; + border-right: 2px solid currentColor; + border-bottom: 2px solid currentColor; + vertical-align: 0.25em; + transform: rotate(45deg); + } + } } .submenu { @@ -1721,7 +1737,12 @@ html.banner-hidden .banner { background-size: cover; background-position: right center; background-color: #30186e; - background-image: linear-gradient(to bottom, rgba(48, 24, 110, 0.15), rgba(48, 24, 110, 0.75)), url('/img/hero-bg.webp'); + // The radial layer keeps the photo out from behind the headline; it only + // shows at the edges. + background-image: + radial-gradient(ellipse 60% 70% at center, rgba(48, 24, 110, 0.97) 45%, rgba(48, 24, 110, 0) 100%), + linear-gradient(to bottom, rgba(48, 24, 110, 0.15), rgba(48, 24, 110, 0.75)), + url('/img/hero-bg.webp'); display: flex; align-items: center; justify-content: center; @@ -1753,7 +1774,6 @@ html.banner-hidden .banner { font-weight: 700; margin: 0; line-height: 1; - letter-spacing: 2px; color: white; @include respond-min(768px) { @@ -1763,7 +1783,7 @@ html.banner-hidden .banner { .hero-subtitle { font-size: 1.8rem; - font-weight: 700; + font-weight: 400; max-width: 800px; margin: 2rem auto 4rem; line-height: 1.6; @@ -1834,6 +1854,37 @@ html.banner-hidden .banner { } } +// The install command under the buttons. .copy-code is the light block from the +// release pages, so it is recoloured here to sit on the dark hero, and it wraps +// at spaces rather than scrolling on narrow screens. +.hero-content .copy-code { + display: inline-flex; + max-width: 100%; + margin: 3rem 0 0; + border-color: rgba(255, 255, 255, 0.35); + background: rgba(16, 8, 48, 0.5); + text-align: left; + + code { + color: #fff; + white-space: pre-wrap; + } + + .copy-code-button { + border-left-color: rgba(255, 255, 255, 0.35); + color: rgba(255, 255, 255, 0.85); + + &:hover { + background: rgba(255, 255, 255, 0.12); + color: #fff; + } + + &.copied { + color: #8ce99a; + } + } +} + .release-headline { display: flex; flex-wrap: wrap; diff --git a/templates/index.html b/templates/index.html index 054b03b3..12d5a5bb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -16,6 +16,9 @@

    {{ heading }}

    {{ section.extra.hero.secondary_button_text }} {% endif %}
    + {% if section.extra.hero.command %} + {{< copy_code command={section.extra.hero.command} />}} + {% endif %}
    {% endif %} diff --git a/templates/macros/release.html b/templates/macros/release.html index 9c1c6e72..85633017 100644 --- a/templates/macros/release.html +++ b/templates/macros/release.html @@ -1,3 +1,21 @@ +{# A command with a copy button. copy-code.js, loaded on every page, handles + the click. #} +{% component copy_code(command) -%} +
    +
    {{ command }}
    + + +
    +{%- endcomponent copy_code %} + {% component release_info(date, release, notice=true) %} {# A tag with a suffix is a pre-release. The warning lives here so it reaches every page that offers the artifacts. Callers that have already warned in @@ -25,19 +43,7 @@

    {{registry.name}} ({{registry.id}})

    Example:

    -
    -
    docker run --rm {{ registry.id }}:{{ registry.tags | first }}
    - - -
    + {{< copy_code command={"docker run --rm " ~ registry.id ~ ":" ~ (registry.tags | first)} />}}
    {% endfor %} {% if release.packages %} From edd7c79436b1acca9bab513149dfc8cce8ec0558 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Wed, 4 Nov 2026 22:36:05 -0800 Subject: [PATCH 05/17] Lighten the hero overlay so the photo shows The radial layer was 0.97 purple out to 45%, which hid the photo behind the headline. It is now a less saturated rgba(28, 18, 58, 0.6) fading from the centre over a smaller ellipse. The subtitle's worst-case contrast against the photo is 7.8:1 at 1400px and 9.5:1 at 390px. Signed-off-by: Madelyn Olson --- sass/_valkey.scss | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sass/_valkey.scss b/sass/_valkey.scss index 8069f238..20c34055 100644 --- a/sass/_valkey.scss +++ b/sass/_valkey.scss @@ -1737,10 +1737,9 @@ html.banner-hidden .banner { background-size: cover; background-position: right center; background-color: #30186e; - // The radial layer keeps the photo out from behind the headline; it only - // shows at the edges. + // The radial layer dims the photo behind the headline without hiding it. background-image: - radial-gradient(ellipse 60% 70% at center, rgba(48, 24, 110, 0.97) 45%, rgba(48, 24, 110, 0) 100%), + radial-gradient(ellipse 50% 60% at center, rgba(28, 18, 58, 0.6), rgba(28, 18, 58, 0)), linear-gradient(to bottom, rgba(48, 24, 110, 0.15), rgba(48, 24, 110, 0.75)), url('/img/hero-bg.webp'); display: flex; From 7c6dd1cdc34681f40e367b02755c1dd715d5c315 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Wed, 4 Nov 2026 22:37:40 -0800 Subject: [PATCH 06/17] Sentence-case the homepage card labels The homepage card kickers drop the uppercase and wide tracking for 1.6rem, weight 600, in the hero button blue (#4a5ad8, 5.6:1 on white; the kicker's #5b6fff is 4.1:1). "Latest Blog Posts" becomes "Latest blog posts". The rule is scoped to .homepage-card, so /community/ keeps its uppercase kickers. Signed-off-by: Madelyn Olson --- content/_index.md | 2 +- sass/_community.scss | 15 +++++++++++++++ templates/index.html | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) diff --git a/content/_index.md b/content/_index.md index b6037d99..38e54b3c 100644 --- a/content/_index.md +++ b/content/_index.md @@ -6,7 +6,7 @@ repos_heading= "Featured repositories" github_org= "https://github.com/valkey-io" github_org_text= "All repos in the Valkey GitHub organization" -# Number of blog posts shown in the "Latest Blog Posts" panel. +# Number of blog posts shown in the "Latest blog posts" panel. latest_blog_posts= 4 headline= "Valkey: an open source, in-memory data store" diff --git a/sass/_community.scss b/sass/_community.scss index ec72f8eb..2f3435b0 100644 --- a/sass/_community.scss +++ b/sass/_community.scss @@ -490,6 +490,21 @@ $community-ink: #072150; margin-bottom: 0; } + // Sentence-case section labels; /community/ keeps the uppercase kicker. + // #4a5ad8 is the hero button blue: 5.6:1 on white, where the kicker's + // #5b6fff is 4.1:1. + .community-home-kicker { + color: #4a5ad8; + font-size: 1.6rem; + font-weight: 600; + letter-spacing: normal; + text-transform: none; + + &:hover { + color: $community-purple-800; + } + } + .release-headline { margin-bottom: 1rem; diff --git a/templates/index.html b/templates/index.html index 12d5a5bb..14c1f909 100644 --- a/templates/index.html +++ b/templates/index.html @@ -94,7 +94,7 @@

    Latest supported version of past releases

    -

    Latest Blog Posts

    +

    Latest blog posts

    All blog posts
    From 5fe429c6cd1b4c10614b0bc7c5a0e066f9bd4352 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 5 Nov 2026 09:43:14 -0800 Subject: [PATCH 07/17] Show the hero photo larger The hero is at least min(65vh, 68rem) tall, so more of the photo shows around the content. From 1024px the photo is drawn at 135% of the width from 15% 45%, so its streaks read larger beside the headline. Below that it sits at 65% rather than the right edge, so phones see the streaks instead of the dark vanishing point. Worst-case subtitle contrast is 8.0:1 at 1400px and 6.2:1 at 390px. Signed-off-by: Madelyn Olson --- sass/_valkey.scss | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/sass/_valkey.scss b/sass/_valkey.scss index 20c34055..b330fea2 100644 --- a/sass/_valkey.scss +++ b/sass/_valkey.scss @@ -1734,8 +1734,10 @@ html.banner-hidden .banner { // Hero Section Styles .hero-section { position: relative; + min-height: min(65vh, 68rem); background-size: cover; - background-position: right center; + // Only the photo layer moves; the gradients fill the box either way. + background-position: center, center, 65% center; background-color: #30186e; // The radial layer dims the photo behind the headline without hiding it. background-image: @@ -1759,6 +1761,13 @@ html.banner-hidden .banner { padding: 10rem 2rem; } + + // Zoom the photo so its streaks read larger. At 135% of the width it is + // still taller than the hero from 1024px up, so it covers. + @include respond-min(1024px) { + background-size: cover, cover, 135% auto; + background-position: center, center, 15% 45%; + } } .hero-content { From aa89f189c648373d7f912627889240025d2689eb Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 5 Nov 2026 09:49:53 -0800 Subject: [PATCH 08/17] Drop the hero photo zoom and restore the original copy The photo is back to cover at every width, so it renders at its own sharpness. The taller hero and the 65% position on narrow screens stay. The hero subtitle is main's text again, at normal weight, and the workloads sentence comes back out of Learn more, which now reads as on main without the bold. Worst-case subtitle contrast is 7.8:1 at 1400px and 5.8:1 at 390px. Signed-off-by: Madelyn Olson --- content/_index.md | 4 ++-- sass/_valkey.scss | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/content/_index.md b/content/_index.md index 38e54b3c..fafc9cc9 100644 --- a/content/_index.md +++ b/content/_index.md @@ -14,7 +14,7 @@ long_description= "" [extra.hero] headings = ["Fast. Reliable.", "Open source, forever."] -subtitle = "An open source (BSD), high-performance key/value datastore, backed by the Linux Foundation." +subtitle = "Valkey is an open source (BSD) high-performance key/value datastore that supports a variety of workloads such as caching, message queues, and can act as a primary database. The project is backed by the Linux Foundation, ensuring it will remain open source forever." button_text = "Get started" button_url = "/topics/quickstart" secondary_button_text = "Install Valkey" @@ -55,6 +55,6 @@ title= "Read the docs" ## Learn more {.community-home-kicker} -Valkey supports a variety of workloads such as caching and message queues, and can act as a primary database. It can run as either a standalone daemon or in a cluster, with options for replication and high availability. Valkey natively supports a rich collection of datatypes, including strings, numbers, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs and more. +Valkey can run as either a standalone daemon or in a cluster, with options for replication and high availability. Valkey natively supports a rich collection of datatypes, including strings, numbers, hashes, lists, sets, sorted sets, bitmaps, hyperloglogs and more. You can operate on data structures in-place with an expressive collection of commands. Valkey also supports native extensibility with built-in scripting support for Lua and supports module plugins to create new commands, data types, and more. diff --git a/sass/_valkey.scss b/sass/_valkey.scss index b330fea2..090e51d7 100644 --- a/sass/_valkey.scss +++ b/sass/_valkey.scss @@ -1761,13 +1761,6 @@ html.banner-hidden .banner { padding: 10rem 2rem; } - - // Zoom the photo so its streaks read larger. At 135% of the width it is - // still taller than the hero from 1024px up, so it covers. - @include respond-min(1024px) { - background-size: cover, cover, 135% auto; - background-position: center, center, 15% 45%; - } } .hero-content { From 7a5d31d0844889af850cb450c8869199c16936f0 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 5 Nov 2026 13:45:44 -0800 Subject: [PATCH 09/17] Move the homepage card styles out of _community.scss into _cards.scss _community.scss is the /community/ page's stylesheet, but it had also become home to the shared white card and the whole homepage. The card mixin (renamed card), the palette it uses, and the homepage section now live in sass/_cards.scss. _community.scss is back to main apart from taking its palette and the Connect card's surface from there. _cards.scss is imported just before _community.scss, so the homepage rules now come ahead of the /community/ rules in styles.css. No rule changes. Every built page is byte-identical, and computed styles and screenshots of /, /community/, /blog/, a post and /topics/keyspace/ match at 1400px and 390px. Signed-off-by: Madelyn Olson --- sass/_cards.scss | 224 +++++++++++++++++++++++++++++++++++++++++++ sass/_community.scss | 222 +----------------------------------------- sass/css/styles.scss | 1 + templates/index.html | 2 +- 4 files changed, 229 insertions(+), 220 deletions(-) create mode 100644 sass/_cards.scss diff --git a/sass/_cards.scss b/sass/_cards.scss new file mode 100644 index 00000000..1a3d481a --- /dev/null +++ b/sass/_cards.scss @@ -0,0 +1,224 @@ +// Cards: white cards on a light canvas, the design /community/ introduced. +// The homepage is built from it. The canvas (.community-home-canvas), section +// head and label (.community-home-section-head, .community-home-kicker), and +// the logo strip are /community/'s, in _community.scss. +// +// Imported before _community.scss, which takes its palette and the card +// surface from here. + +$community-purple-900: #2d2471; +$community-purple-800: #35247e; +$community-blue-500: #5b6fff; +$community-ink: #072150; + +// The white card: /community/'s Connect card and every card below. +@mixin card { + background: #fff; + border-radius: 18px; + box-shadow: 0 10px 28px rgba(60, 60, 130, 0.08); +} + +// Homepage (templates/index.html) ------------------------------------------- + +// Every block below the hero is a card on .community-home-canvas. Two columns +// from 900px: the release cards stack beside the blog card, then Learn more +// and the logo strip run full width. The 1fr row takes any height the blog +// card has over the two release cards, and the past releases card sits at the +// top of it, so both release cards keep their natural height. +.homepage-grid { + display: grid; + gap: 2rem; + max-width: var(--max-width); + margin: 3.4rem auto; + + @include respond-min(900px) { + grid-template-columns: 1fr 1fr; + grid-template-rows: auto 1fr auto auto; + grid-template-areas: + "release blog" + "past blog" + "learn learn" + "participants participants"; + + .homepage-card-release { grid-area: release; } + .homepage-card-past { grid-area: past; align-self: start; } + .homepage-card-blog { grid-area: blog; } + .homepage-card-learn { grid-area: learn; } + .homepage-card-participants { grid-area: participants; } + } +} + +// Connect's padding is too wide for a 390px screen, so cards start tighter. +.homepage-card { + @include card; + min-width: 0; + padding: 2.2rem 2rem; + + @include respond-min(768px) { + padding: 2.7rem 3.4rem; + } + + > :last-child { + margin-bottom: 0; + } + + // Sentence-case section labels; /community/ keeps the uppercase kicker. + // #4a5ad8 is the hero button blue: 5.6:1 on white, where the kicker's + // #5b6fff is 4.1:1. + .community-home-kicker { + color: #4a5ad8; + font-size: 1.6rem; + font-weight: 600; + letter-spacing: normal; + text-transform: none; + + &:hover { + color: $community-purple-800; + } + } + + .release-headline { + margin-bottom: 1rem; + + a { + color: $community-ink; + + &:hover { + text-decoration: underline; + } + } + } + + .link-readmore { + text-transform: none; + font-size: 1.4rem; + } + + // A line box no taller than the kicker's keeps the head at the kicker's + // height, so kickers line up across the cards in a row. + .community-home-section-head .link-readmore { + margin: 0; + line-height: 1.1rem; + } +} + +// One row per post, split by the logo strip's hairline. The title takes the +// same ink as the latest release and Learn more titles. +.homepage-blog-card { + display: block; + padding: 1.4rem 0; + border-top: 1px solid #e9ebf4; + text-decoration: none; + + &:first-child { + padding-top: 0; + border-top: 0; + } + + &:last-child { + padding-bottom: 0; + } + + &:hover .homepage-blog-card-title { + text-decoration: underline; + } +} + +.homepage-blog-card-title { + margin: 0 0 0.3rem; + color: $community-ink; + font-size: 1.7rem; + font-weight: 700; + line-height: 1.3; +} + +.homepage-blog-card-meta { + margin: 0 0 0.5rem; + color: #606985; + font-size: 1.3rem; +} + +.homepage-blog-card-description { + display: -webkit-box; + margin: 0; + overflow: hidden; + color: #47506b; + font-size: 1.4rem; + line-height: 1.45; + -webkit-line-clamp: 2; + -webkit-box-orient: vertical; +} + +// The kicker is the markdown heading in content/_index.md. Flex keeps the +// inline-block kicker off the parent's line box, which would push it below +// the kickers in the other cards. +.homepage-learn-intro { + display: flex; + flex-direction: column; + align-items: flex-start; + + p { + margin: 1.2rem 0 0; + color: #47506b; + font-size: 1.6rem; + line-height: 1.6; + } +} + +.homepage-learn-grid { + display: grid; + gap: 2.4rem; + margin-top: 2.4rem; + + @include respond-min(600px) { + grid-template-columns: 1fr 1fr; + } + + @include respond-min(1100px) { + grid-template-columns: repeat(4, 1fr); + } +} + +.homepage-learn-item { + display: block; + padding: 1.8rem 2rem; + border-radius: 14px; + background: #f8faff; + text-decoration: none; + transition: background 0.15s; + + &:hover { + background: #eef1fb; + + h3 { + text-decoration: underline; + } + } + + &:focus-visible { + outline: 2px solid $community-blue-500; + outline-offset: 2px; + } + + h3 { + margin: 0 0 0.8rem; + color: $community-ink; + font-size: 1.8rem; + font-weight: 700; + + // Same chevron as .link-readmore. inline-block keeps the hover underline + // off it. + &::after { + content: '\203A'; + display: inline-block; + margin-left: 0.4em; + } + } + + p { + margin: 0; + color: #47506b; + font-size: 1.5rem; + line-height: 1.5; + } +} diff --git a/sass/_community.scss b/sass/_community.scss index 2f3435b0..12ae1b71 100644 --- a/sass/_community.scss +++ b/sass/_community.scss @@ -2,22 +2,11 @@ // The "Ways to contribute" tiles reuse the shared .community-card styles // from _valkey.scss. Everything here is specific to the landing page: // participant logo strip, photo hero, connect bar, and photo carousel. -// The homepage cards at the end of the file reuse these pieces. - -$community-purple-900: #2d2471; -$community-purple-800: #35247e; -$community-blue-500: #5b6fff; -$community-ink: #072150; +// The palette and the card surface come from _cards.scss, whose pages reuse +// the canvas, section head, kicker and logo strip below. // Shared pieces -------------------------------------------------------------- -// White panel: the Connect card and the homepage cards. -@mixin community-panel { - background: #fff; - border-radius: 18px; - box-shadow: 0 10px 28px rgba(60, 60, 130, 0.08); -} - .community-home-kicker { display: inline-block; margin: 0; @@ -257,7 +246,7 @@ $community-ink: #072150; max-width: var(--max-width); margin: 3.4rem auto; padding: 2.7rem 3.4rem; - @include community-panel; + @include card; @include respond-min(900px) { flex-direction: row; @@ -445,208 +434,3 @@ $community-ink: #072150; } } } - -// Homepage (templates/index.html) ------------------------------------------- - -// Every block below the hero is a card on .community-home-canvas. Two columns -// from 900px: the release cards stack beside the blog card, then Learn more -// and the logo strip run full width. The 1fr row takes any height the blog -// card has over the two release cards, and the past releases card sits at the -// top of it, so both release cards keep their natural height. -.homepage-grid { - display: grid; - gap: 2rem; - max-width: var(--max-width); - margin: 3.4rem auto; - - @include respond-min(900px) { - grid-template-columns: 1fr 1fr; - grid-template-rows: auto 1fr auto auto; - grid-template-areas: - "release blog" - "past blog" - "learn learn" - "participants participants"; - - .homepage-card-release { grid-area: release; } - .homepage-card-past { grid-area: past; align-self: start; } - .homepage-card-blog { grid-area: blog; } - .homepage-card-learn { grid-area: learn; } - .homepage-card-participants { grid-area: participants; } - } -} - -// Connect's padding is too wide for a 390px screen, so cards start tighter. -.homepage-card { - @include community-panel; - min-width: 0; - padding: 2.2rem 2rem; - - @include respond-min(768px) { - padding: 2.7rem 3.4rem; - } - - > :last-child { - margin-bottom: 0; - } - - // Sentence-case section labels; /community/ keeps the uppercase kicker. - // #4a5ad8 is the hero button blue: 5.6:1 on white, where the kicker's - // #5b6fff is 4.1:1. - .community-home-kicker { - color: #4a5ad8; - font-size: 1.6rem; - font-weight: 600; - letter-spacing: normal; - text-transform: none; - - &:hover { - color: $community-purple-800; - } - } - - .release-headline { - margin-bottom: 1rem; - - a { - color: $community-ink; - - &:hover { - text-decoration: underline; - } - } - } - - .link-readmore { - text-transform: none; - font-size: 1.4rem; - } - - // A line box no taller than the kicker's keeps the head at the kicker's - // height, so kickers line up across the cards in a row. - .community-home-section-head .link-readmore { - margin: 0; - line-height: 1.1rem; - } -} - -// One row per post, split by the logo strip's hairline. The title takes the -// same ink as the latest release and Learn more titles. -.homepage-blog-card { - display: block; - padding: 1.4rem 0; - border-top: 1px solid #e9ebf4; - text-decoration: none; - - &:first-child { - padding-top: 0; - border-top: 0; - } - - &:last-child { - padding-bottom: 0; - } - - &:hover .homepage-blog-card-title { - text-decoration: underline; - } -} - -.homepage-blog-card-title { - margin: 0 0 0.3rem; - color: $community-ink; - font-size: 1.7rem; - font-weight: 700; - line-height: 1.3; -} - -.homepage-blog-card-meta { - margin: 0 0 0.5rem; - color: #606985; - font-size: 1.3rem; -} - -.homepage-blog-card-description { - display: -webkit-box; - margin: 0; - overflow: hidden; - color: #47506b; - font-size: 1.4rem; - line-height: 1.45; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; -} - -// The kicker is the markdown heading in content/_index.md. Flex keeps the -// inline-block kicker off the parent's line box, which would push it below -// the kickers in the other cards. -.homepage-learn-intro { - display: flex; - flex-direction: column; - align-items: flex-start; - - p { - margin: 1.2rem 0 0; - color: #47506b; - font-size: 1.6rem; - line-height: 1.6; - } -} - -.homepage-learn-grid { - display: grid; - gap: 2.4rem; - margin-top: 2.4rem; - - @include respond-min(600px) { - grid-template-columns: 1fr 1fr; - } - - @include respond-min(1100px) { - grid-template-columns: repeat(4, 1fr); - } -} - -.homepage-learn-item { - display: block; - padding: 1.8rem 2rem; - border-radius: 14px; - background: #f8faff; - text-decoration: none; - transition: background 0.15s; - - &:hover { - background: #eef1fb; - - h3 { - text-decoration: underline; - } - } - - &:focus-visible { - outline: 2px solid $community-blue-500; - outline-offset: 2px; - } - - h3 { - margin: 0 0 0.8rem; - color: $community-ink; - font-size: 1.8rem; - font-weight: 700; - - // Same chevron as .link-readmore. inline-block keeps the hover underline - // off it. - &::after { - content: '\203A'; - display: inline-block; - margin-left: 0.4em; - } - } - - p { - margin: 0; - color: #47506b; - font-size: 1.5rem; - line-height: 1.5; - } -} diff --git a/sass/css/styles.scss b/sass/css/styles.scss index 755f9691..2183a498 100755 --- a/sass/css/styles.scss +++ b/sass/css/styles.scss @@ -9,6 +9,7 @@ @import '../valkey'; @import '../email-form'; @import '../catalog'; +@import '../cards'; @import '../community'; /* Styling for Markdown Tables */ diff --git a/templates/index.html b/templates/index.html index 14c1f909..dbf49eba 100644 --- a/templates/index.html +++ b/templates/index.html @@ -24,7 +24,7 @@

    {{ heading }}

    {% endif %} {# Below the hero, every block is a white card on the light canvas /community/ - uses. The grid is in the homepage section of _community.scss. #} + uses. The styles are in _cards.scss. #}
    {# The newest stable release on each major.minor line, newest line first. #} From cca8223a0a42d87128bd05d0c0258fed76e73d9f Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 5 Nov 2026 15:13:48 -0800 Subject: [PATCH 10/17] Drop redundant homepage declarations and fix two header comments The blog rows and Learn more tiles are anchors, so the global a rule already removes their underline. .release-headline is homepage-only, so its margin moves into the homepage card rule instead of being set in _valkey.scss and overridden. The blog rows' wrapper loses a class with no CSS or JS behind it. community.js's header now says it also runs on the homepage, and the _community.scss header no longer calls everything in it landing-page only. Computed styles, forced-hover styles and screenshots of / and /community/ match at 1400px and 390px. Signed-off-by: Madelyn Olson --- sass/_cards.scss | 4 +--- sass/_community.scss | 11 +++++------ sass/_valkey.scss | 1 - static/assets/js/community.js | 11 ++++++----- templates/index.html | 2 +- 5 files changed, 13 insertions(+), 16 deletions(-) diff --git a/sass/_cards.scss b/sass/_cards.scss index 1a3d481a..fed05c36 100644 --- a/sass/_cards.scss +++ b/sass/_cards.scss @@ -78,7 +78,7 @@ $community-ink: #072150; } .release-headline { - margin-bottom: 1rem; + margin: 0 0 1rem; a { color: $community-ink; @@ -108,7 +108,6 @@ $community-ink: #072150; display: block; padding: 1.4rem 0; border-top: 1px solid #e9ebf4; - text-decoration: none; &:first-child { padding-top: 0; @@ -184,7 +183,6 @@ $community-ink: #072150; padding: 1.8rem 2rem; border-radius: 14px; background: #f8faff; - text-decoration: none; transition: background 0.15s; &:hover { diff --git a/sass/_community.scss b/sass/_community.scss index 12ae1b71..e56f6f04 100644 --- a/sass/_community.scss +++ b/sass/_community.scss @@ -1,9 +1,8 @@ -// Community landing page (templates/community-home.html) -// The "Ways to contribute" tiles reuse the shared .community-card styles -// from _valkey.scss. Everything here is specific to the landing page: -// participant logo strip, photo hero, connect bar, and photo carousel. -// The palette and the card surface come from _cards.scss, whose pages reuse -// the canvas, section head, kicker and logo strip below. +// Community landing page (templates/community-home.html): participant logo +// strip, photo hero, connect bar, and photo carousel. The "Ways to +// contribute" tiles reuse the shared .community-card styles from +// _valkey.scss. The palette and the card surface come from _cards.scss, +// whose pages reuse the canvas, section head, kicker and logo strip below. // Shared pieces -------------------------------------------------------------- diff --git a/sass/_valkey.scss b/sass/_valkey.scss index 090e51d7..8823be0e 100644 --- a/sass/_valkey.scss +++ b/sass/_valkey.scss @@ -1891,7 +1891,6 @@ html.banner-hidden .banner { flex-wrap: wrap; align-items: baseline; gap: 1rem; - margin: 0 0 1.5rem; font-size: 2rem; font-weight: 700; diff --git a/static/assets/js/community.js b/static/assets/js/community.js index e3d8e4dd..735728d4 100644 --- a/static/assets/js/community.js +++ b/static/assets/js/community.js @@ -1,11 +1,12 @@ /** - * Community page interactions + * Interactions for /community/ and the homepage * * 1. Participant logo marquee pause/play toggle (WCAG 2.2.2: auto-moving - * content lasting more than 5s needs a control to pause it). - * 2. "Community in action" photo carousel: pages through photos three at a - * time on desktop, two on tablet, one on mobile. Prev/next buttons and a - * "current / total" status are the only controls; there is no auto-scroll. + * content lasting more than 5s needs a control to pause it). Both pages. + * 2. "Community in action" photo carousel, /community/ only: pages through + * photos three at a time on desktop, two on tablet, one on mobile. + * Prev/next buttons and a "current / total" status are the only controls; + * there is no auto-scroll. */ (function () { diff --git a/templates/index.html b/templates/index.html index dbf49eba..137e543d 100644 --- a/templates/index.html +++ b/templates/index.html @@ -97,7 +97,7 @@

    Latest supported version of past releases

    Latest blog posts

    All blog posts
    -
    +
    {% set blog_post_section = get_section(path="blog/_index.md") %} {% set blog_count = section.extra.latest_blog_posts %} {% set blog_posts = blog_post_section.pages[:blog_count] %} From 1d95db92d3056112940498eebdace40ce7689160 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 5 Nov 2026 15:14:38 -0800 Subject: [PATCH 11/17] Only change a section label's colour on hover when it is a link .community-home-kicker:hover turned every label purple under the pointer, so plain h2 labels such as "Latest release" and "Community in action" acted like links. The hover colour is now a.community-home-kicker only, which keeps it for "Valkey participants". The homepage's own hover rule set the same colour and goes. Signed-off-by: Madelyn Olson --- sass/_cards.scss | 4 ---- sass/_community.scss | 7 ++++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/sass/_cards.scss b/sass/_cards.scss index fed05c36..cecb1f4d 100644 --- a/sass/_cards.scss +++ b/sass/_cards.scss @@ -71,10 +71,6 @@ $community-ink: #072150; font-weight: 600; letter-spacing: normal; text-transform: none; - - &:hover { - color: $community-purple-800; - } } .release-headline { diff --git a/sass/_community.scss b/sass/_community.scss index e56f6f04..c70b09ed 100644 --- a/sass/_community.scss +++ b/sass/_community.scss @@ -15,10 +15,11 @@ letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; +} - &:hover { - color: $community-purple-800; - } +// Only labels that are links, such as "Valkey participants", change colour. +a.community-home-kicker:hover { + color: $community-purple-800; } .community-home-btn { From a6a80e68e94f20c0fe94c5e5417ddc10e0a0be55 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 5 Nov 2026 15:18:19 -0800 Subject: [PATCH 12/17] Stop squeezing the "All blog posts" link's line box line-height: 1.1rem kept the blog card's head as short as its label, but the link's box was then 12px tall around 14px text, so its focus ring cut through the letters. Without it the link's 1.2em chevron makes the head 23px, and centring dropped "Latest blog posts" 1px below "Latest release". The homepage section heads now align their items to the top, so the labels line up and the link shares the label's baseline. The blog rows sit 1px lower. Signed-off-by: Madelyn Olson --- sass/_cards.scss | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/sass/_cards.scss b/sass/_cards.scss index cecb1f4d..936fae52 100644 --- a/sass/_cards.scss +++ b/sass/_cards.scss @@ -90,11 +90,15 @@ $community-ink: #072150; font-size: 1.4rem; } - // A line box no taller than the kicker's keeps the head at the kicker's - // height, so kickers line up across the cards in a row. - .community-home-section-head .link-readmore { - margin: 0; - line-height: 1.1rem; + // Top-aligned: the link's 1.2em chevron makes its line taller than the + // label's, and centring would drop that label 1px below the others in + // the row. + .community-home-section-head { + align-items: flex-start; + + .link-readmore { + margin: 0; + } } } From 6bb1ea106c99ea9e2df4c69fdcf4bc14e66dc472 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 5 Nov 2026 15:46:08 -0800 Subject: [PATCH 13/17] Make the homepage card labels read as section headings At 1.6rem the blue labels were smaller than the card titles under them, so they did little to mark the sections. They are now 2.4rem, above the 2rem "Valkey 9.1.3" headline, which 2.0rem would only have tied. Balanced wrapping keeps "Latest supported version of past releases" from leaving "releases" alone on a line at 1024px. The section heads align on the baseline, so the larger label stays at the top and in line across the cards, and "All blog posts" sits on its baseline. Signed-off-by: Madelyn Olson --- sass/_cards.scss | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/sass/_cards.scss b/sass/_cards.scss index 936fae52..f0d02cf3 100644 --- a/sass/_cards.scss +++ b/sass/_cards.scss @@ -64,13 +64,15 @@ $community-ink: #072150; // Sentence-case section labels; /community/ keeps the uppercase kicker. // #4a5ad8 is the hero button blue: 5.6:1 on white, where the kicker's - // #5b6fff is 4.1:1. + // #5b6fff is 4.1:1. 2.4rem keeps them above the 2rem release headline. + // Balanced wrapping avoids leaving "releases" alone on a line. .community-home-kicker { color: #4a5ad8; - font-size: 1.6rem; + font-size: 2.4rem; font-weight: 600; letter-spacing: normal; text-transform: none; + text-wrap: balance; } .release-headline { @@ -90,11 +92,11 @@ $community-ink: #072150; font-size: 1.4rem; } - // Top-aligned: the link's 1.2em chevron makes its line taller than the - // label's, and centring would drop that label 1px below the others in - // the row. + // Baseline-aligned: the label is the tallest item, so it sits at the top + // of the head and lines up with the labels in the other cards, and the + // link shares its baseline. .community-home-section-head { - align-items: flex-start; + align-items: baseline; .link-readmore { margin: 0; From 4abbd54842d58144ed7a8e3b81dc47b2d67644f0 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 5 Nov 2026 16:27:11 -0800 Subject: [PATCH 14/17] Give the cards an edge and a darker canvas, and tighten the hero The white cards sat on a #f8faff canvas with an 8% shadow, so their edges barely read, and in forced-colors mode, which drops the shadow and fills, they had none at all. The card mixin now draws a 1px #d5d9e8 border and a 16% shadow, and the canvas is #e8ebf5. This applies to the /community/ Connect card too. The hero drops the min(65vh, 68rem) floor and its 8rem/10rem padding for 3.5rem at every width. At 1400x1000 it goes from 650px to 479px, and at 390x844 from 745px to 655px. The overlay, the photo and its 65% phone position are unchanged. Signed-off-by: Madelyn Olson --- sass/_cards.scss | 6 ++++-- sass/_community.scss | 2 +- sass/_valkey.scss | 8 +------- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/sass/_cards.scss b/sass/_cards.scss index f0d02cf3..d86f5805 100644 --- a/sass/_cards.scss +++ b/sass/_cards.scss @@ -11,11 +11,13 @@ $community-purple-800: #35247e; $community-blue-500: #5b6fff; $community-ink: #072150; -// The white card: /community/'s Connect card and every card below. +// The white card: /community/'s Connect card and every card below. The +// border also draws the edge in forced-colors mode, which drops the shadow. @mixin card { + border: 1px solid #d5d9e8; background: #fff; border-radius: 18px; - box-shadow: 0 10px 28px rgba(60, 60, 130, 0.08); + box-shadow: 0 12px 32px rgba(60, 60, 130, 0.16); } // Homepage (templates/index.html) ------------------------------------------- diff --git a/sass/_community.scss b/sass/_community.scss index c70b09ed..adec2ad1 100644 --- a/sass/_community.scss +++ b/sass/_community.scss @@ -234,7 +234,7 @@ a.community-home-kicker:hover { // gutter is the single, page-wide rule so everything lines up with the // header/footer content column (--max-width). padding: 0.1px 2rem; - background: #f8faff; + background: #e8ebf5; } // Connect with us ----------------------------------------------------------- diff --git a/sass/_valkey.scss b/sass/_valkey.scss index 8823be0e..42fc1180 100644 --- a/sass/_valkey.scss +++ b/sass/_valkey.scss @@ -1734,7 +1734,6 @@ html.banner-hidden .banner { // Hero Section Styles .hero-section { position: relative; - min-height: min(65vh, 68rem); background-size: cover; // Only the photo layer moves; the gradients fill the box either way. background-position: center, center, 65% center; @@ -1748,7 +1747,7 @@ html.banner-hidden .banner { align-items: center; justify-content: center; overflow: hidden; - padding: 8rem 2rem; + padding: 3.5rem 2rem; &::after { content: ""; @@ -1756,11 +1755,6 @@ html.banner-hidden .banner { background-image: linear-gradient(to bottom, rgba(48, 24, 110, 0), rgba(48, 24, 110, 100)); pointer-events: none; } - - @include respond-min(768px) { - padding: 10rem 2rem; - - } } .hero-content { From 80a20d7359ea6d1a7bf723ca5738cb86c9a80466 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 5 Nov 2026 18:09:01 -0800 Subject: [PATCH 15/17] Name the homepage release card after its line and drop its date The card's label was "Latest release" and its headline repeated the release date. The label is now "Everything new in Valkey ", with the major.minor line taken from the release the card already picks (today "Everything new in Valkey 9.1"), and the date is gone. The .release-headline small rule styled only that date. Signed-off-by: Madelyn Olson --- sass/_valkey.scss | 6 ------ templates/index.html | 3 +-- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/sass/_valkey.scss b/sass/_valkey.scss index 42fc1180..660cd9ff 100644 --- a/sass/_valkey.scss +++ b/sass/_valkey.scss @@ -1887,12 +1887,6 @@ html.banner-hidden .banner { gap: 1rem; font-size: 2rem; font-weight: 700; - - small { - font-size: 1.3rem; - font-weight: 400; - color: #4a5568; - } } .release-highlights { diff --git a/templates/index.html b/templates/index.html index 137e543d..6d0e161f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -60,11 +60,10 @@

    {{ heading }}

    -

    Latest release

    +

    Everything new in Valkey {{ latest_line }}

    Valkey {{ latest.extra.tag }} - Released {{ latest.date | date(format="%B %-d, %Y") }}

    {{ latest_line_page.content | safe }}
    From 5ea0f4fb77e38d5a915e02411ec56105fcb13101 Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 5 Nov 2026 18:22:15 -0800 Subject: [PATCH 16/17] Make the release card label a link, without the version The label is now "Everything new in Valkey", without the line number, and links to the latest line's page (/download/9.1/ today), the same target as the "Valkey 9.1.3" headline. The link takes the label's colour, turns #35247e on hover and gets the default focus ring, like the "Valkey participants" label. Signed-off-by: Madelyn Olson --- sass/_cards.scss | 10 ++++++++++ templates/index.html | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sass/_cards.scss b/sass/_cards.scss index d86f5805..76eea4b4 100644 --- a/sass/_cards.scss +++ b/sass/_cards.scss @@ -75,6 +75,16 @@ $community-ink: #072150; letter-spacing: normal; text-transform: none; text-wrap: balance; + + // The release card's label is a heading around a link; it looks like + // the "Valkey participants" link label. + a { + color: inherit; + + &:hover { + color: $community-purple-800; + } + } } .release-headline { diff --git a/templates/index.html b/templates/index.html index 6d0e161f..1dc90254 100644 --- a/templates/index.html +++ b/templates/index.html @@ -60,7 +60,7 @@

    {{ heading }}

    -

    Everything new in Valkey {{ latest_line }}

    +

    Everything new in Valkey

    Valkey {{ latest.extra.tag }} From 93a340fae53efbadba69f129e414e47e92f364fa Mon Sep 17 00:00:00 2001 From: Madelyn Olson Date: Thu, 5 Nov 2026 19:05:40 -0800 Subject: [PATCH 17/17] Put the line back in the release label and drop the headline The label reads "Everything new in Valkey " again, from the same latest_line that picks latest_line_page, and still links to that line's page. The "Valkey 9.1.3" headline under it goes, with the two .release-headline rules that only styled it, so the card is the label, the highlights and the "What's new" link. Signed-off-by: Madelyn Olson --- sass/_cards.scss | 17 +++-------------- sass/_valkey.scss | 9 --------- templates/index.html | 5 +---- 3 files changed, 4 insertions(+), 27 deletions(-) diff --git a/sass/_cards.scss b/sass/_cards.scss index 76eea4b4..2fde9909 100644 --- a/sass/_cards.scss +++ b/sass/_cards.scss @@ -66,8 +66,9 @@ $community-ink: #072150; // Sentence-case section labels; /community/ keeps the uppercase kicker. // #4a5ad8 is the hero button blue: 5.6:1 on white, where the kicker's - // #5b6fff is 4.1:1. 2.4rem keeps them above the 2rem release headline. - // Balanced wrapping avoids leaving "releases" alone on a line. + // #5b6fff is 4.1:1. 2.4rem keeps them above the cards' titles, the largest + // of which is 1.8rem. Balanced wrapping avoids leaving "releases" alone on + // a line. .community-home-kicker { color: #4a5ad8; font-size: 2.4rem; @@ -87,18 +88,6 @@ $community-ink: #072150; } } - .release-headline { - margin: 0 0 1rem; - - a { - color: $community-ink; - - &:hover { - text-decoration: underline; - } - } - } - .link-readmore { text-transform: none; font-size: 1.4rem; diff --git a/sass/_valkey.scss b/sass/_valkey.scss index 660cd9ff..b29b0197 100644 --- a/sass/_valkey.scss +++ b/sass/_valkey.scss @@ -1880,15 +1880,6 @@ html.banner-hidden .banner { } } -.release-headline { - display: flex; - flex-wrap: wrap; - align-items: baseline; - gap: 1rem; - font-size: 2rem; - font-weight: 700; -} - .release-highlights { ul { margin: 0 0 1rem; diff --git a/templates/index.html b/templates/index.html index 1dc90254..93388f2f 100644 --- a/templates/index.html +++ b/templates/index.html @@ -60,11 +60,8 @@

    {{ heading }}

    -

    - Valkey {{ latest.extra.tag }} -

    {{ latest_line_page.content | safe }}
    {% if latest_line_page.extra.blog_url %}