Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions content/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,42 +6,38 @@ 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"
long_description= ""

[extra.hero]
headings = ["FAST. RELIABLE.", "OPEN SOURCE, FOREVER."]
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"
button_text = "Get started"
button_url = "/topics/quickstart"
secondary_button_text = "INSTALL VALKEY"
secondary_button_text = "Install Valkey"
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]]
Expand All @@ -58,6 +54,6 @@ title= "Read the docs"

## Learn 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.
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.
219 changes: 212 additions & 7 deletions sass/_cards.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
// Cards: white cards on a light canvas, the design /community/ introduced.
// /blog/ and blog posts are built from it. The canvas (.community-home-canvas)
// is /community/'s, in _community.scss. The colours are the card palette in
// _colors.scss.

// The white card. The border also draws the edge in forced-colors mode,
// which drops the shadow.
// The homepage, /blog/ and blog posts are 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 the card surface from here.
// Both take their colours from the card palette in _colors.scss.

// 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 $community-card-border;
background: #fff;
Expand All @@ -14,7 +18,8 @@

// A card's section label: sentence case in #4a5ad8, the hero button blue,
// which is 5.6:1 on white where /community/'s #5b6fff kicker is 4.1:1.
// Balanced wrapping avoids leaving one word alone on a line.
// 2.4rem keeps it above the homepage cards' titles, the largest of which is
// 1.8rem. Balanced wrapping avoids leaving "releases" alone on a line.
@mixin card-label {
color: $community-label-blue;
font-size: 2.4rem;
Expand All @@ -24,6 +29,206 @@
text-wrap: balance;
}

// 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;
}

// /community/ keeps the uppercase kicker.
.community-home-kicker {
@include card-label;

// 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;
}
}
}

.link-readmore {
text-transform: none;
font-size: 1.4rem;
}

// 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: baseline;

.link-readmore {
margin: 0;
}
}
}

// 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 $community-hairline;

&: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: $community-text-muted;
font-size: 1.3rem;
}

.homepage-blog-card-description {
display: -webkit-box;
margin: 0;
overflow: hidden;
color: $community-text;
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. It takes the
// label style by position, so the content needs no class. 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;

> h2 {
@extend .community-home-kicker;
}

p {
margin: 1.2rem 0 0;
color: $community-text;
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: $community-tint;
transition: background 0.15s;

&:hover {
background: $community-tint-hover;

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: $community-text;
font-size: 1.5rem;
line-height: 1.5;
}
}

// Blog landing page (templates/blog.html, macros/blog.html) ------------------

// No banner: a big lead card for the newest featured post, then the type
Expand Down
2 changes: 1 addition & 1 deletion sass/_colors.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ $text-link-alternate: #0053b8; //pacific blue
$text-link-alternate-lighter: #137cc1; //pacific blue tint 1
$text-link-alternate-darker: #00529e;

// Card pages: /blog/ and blog posts (_cards.scss).
// Card pages: /community/, the homepage and the blog (_cards.scss, _community.scss).
$community-purple-900: #2d2471;
$community-purple-800: #35247e;
$community-blue-500: #5b6fff;
Expand Down
33 changes: 15 additions & 18 deletions sass/_community.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
// 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.

$community-purple-900: #2d2471;
$community-purple-800: #35247e;
$community-blue-500: #5b6fff;
$community-ink: #072150;
// 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 is in _colors.scss and the card surface in
// _cards.scss, whose pages reuse the canvas, section head, kicker and logo
// strip below.

// Shared pieces --------------------------------------------------------------

Expand All @@ -19,10 +16,11 @@ $community-ink: #072150;
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 {
Expand Down Expand Up @@ -255,14 +253,15 @@ $community-ink: #072150;
}
}

// Connect with us and photo carousel sit on a faint blue canvas so the white
// Connect card and its shadow read against the page.
// Connect with us and photo carousel sit on a light blue canvas so the white
// Connect card and its shadow read against the page. The other card pages
// use the same canvas, so a change here changes them too.
.community-home-canvas {
// 0.1px top/bottom keeps child margins inside the tinted area; the side
// 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: $community-canvas;
}

// Connect with us -----------------------------------------------------------
Expand All @@ -274,9 +273,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 card;

@include respond-min(900px) {
flex-direction: row;
Expand Down
Loading
Loading