From c849c3e1cfb66a237381d4aa11092a2878ef085d Mon Sep 17 00:00:00 2001 From: MTRNord Date: Wed, 8 Jul 2026 22:15:00 +0200 Subject: [PATCH 1/2] add a "Latest from the Blog" and a "TWIM" section to the frontpage This also slightly adjusts the other sections to make sure they are correctly seperated color wise Signed-off-by: MTRNord --- sass/_index.scss | 248 +++++++++++++++++- .../element-creators-of-matrix--light.svg | 26 ++ ...ment-creators-of-matrix--light.svg.license | 3 + templates/index.html | 71 ++++- 4 files changed, 327 insertions(+), 21 deletions(-) create mode 100644 static/images/element-creators-of-matrix--light.svg create mode 100644 static/images/element-creators-of-matrix--light.svg.license diff --git a/sass/_index.scss b/sass/_index.scss index 8a4f2885c..92a943519 100644 --- a/sass/_index.scss +++ b/sass/_index.scss @@ -220,17 +220,21 @@ } #complex-apps { - display: flex; - flex-direction: row; - justify-content: space-between; - gap: 2rem; - max-width: 1200px; - margin-inline: auto; padding: 10rem 2rem; + background-color: #f8f8f8; - @media (max-width: 64rem) { - flex-direction: column-reverse; - align-items: center; + #complex-apps__content { + display: flex; + flex-direction: row; + justify-content: space-between; + gap: 2rem; + max-width: 1200px; + margin-inline: auto; + + @media (max-width: 64rem) { + flex-direction: column-reverse; + align-items: center; + } } .col { @@ -273,15 +277,231 @@ } } + #twim { + background-color: #fff; + padding: 80px 2rem; + + #twim__content { + max-width: 60rem; + margin: 0 auto; + display: flex; + gap: 48px; + align-items: flex-start; + + @media (max-width: 767px) { + flex-direction: column; + } + } + + .twim__text { + flex: 1; + } + + .twim__eyebrow { + font-size: 0.875rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.08em; + color: var(--color-text-light); + margin-bottom: 0.5rem; + } + + h2 { + font-size: 2.5rem; + font-weight: 700; + color: #000; + margin-block: 0 1rem; + + @media (max-width: 767px) { + font-size: 2.125rem; + } + } + + p { + color: #000; + font-size: 1.125rem; + line-height: 1.75; + } + + .twim__ctas { + justify-content: flex-start; + margin-top: 1.5rem; + } + + .twim__latest { + background-color: #000; + color: #fff; + border: 1px solid #d2d2d2; + border-radius: 14px; + padding: 28px; + display: flex; + flex-direction: column; + gap: 12px; + text-decoration: none; + width: 280px; + flex-shrink: 0; + transition: border-color 0.2s ease; + + @media (max-width: 767px) { + width: 100%; + } + + &:hover { + border-color: #888; + } + + .twim__latest-eyebrow { + font-size: 0.75rem; + font-weight: 600; + text-transform: uppercase; + letter-spacing: 0.08em; + color: rgba(255, 255, 255, 0.6); + margin: 0; + } + + h3 { + font-size: 1.125rem; + font-weight: 700; + color: #fff; + margin: 0; + line-height: 1.4; + } + + .twim__latest-date { + font-size: 0.875rem; + color: rgba(255, 255, 255, 0.6); + margin: 0; + } + + .twim__readmore { + font-size: 0.875rem; + font-weight: 600; + color: rgba(255, 255, 255, 0.8); + margin-top: auto; + } + } + } + + #blog-preview { + background-color: #000; + color: #fff; + padding: 80px 2rem; + text-align: center; + + h2 { + font-size: 2.5rem; + font-weight: 700; + margin: 0 auto 1rem auto; + color: #fff; + + @media (max-width: 767px) { + font-size: 2.125rem; + } + } + + .blog-preview-description { + max-width: 40rem; + margin: 0 auto 2rem auto; + color: rgba(255, 255, 255, 0.8); + font-size: 1.125rem; + } + + .blog-preview-grid { + display: grid; + grid-template-columns: repeat(3, 1fr); + gap: 28px; + max-width: 60rem; + margin: 0 auto 2rem auto; + text-align: left; + + @media (max-width: 59rem) { + grid-template-columns: 1fr; + } + } + + .blog-preview-card { + border: 1px solid #3c3f44; + border-radius: 14px; + padding: 28px; + display: flex; + flex-direction: column; + gap: 12px; + transition: border-color 0.2s ease; + + &:hover { + border-color: #666; + } + + h3 { + font-size: 1.125rem; + font-weight: 700; + margin: 0; + line-height: 1.4; + + a { + color: #fff; + + &:hover { + color: rgba(255, 255, 255, 0.7); + } + } + } + + p { + color: rgba(255, 255, 255, 0.7); + font-size: 0.9375rem; + margin: 0; + line-height: 1.6; + flex: 1; + } + } + + .blog-preview-meta { + display: flex; + align-items: center; + gap: 0.75rem; + flex-wrap: wrap; + } + + .blog-preview-date { + color: rgba(255, 255, 255, 0.6); + font-size: 0.875rem; + font-weight: 500; + } + + .blog-preview-tag { + font-size: 0.75rem; + font-weight: 600; + padding: 0.2em 0.6em; + border-radius: 4px; + background-color: #333; + color: #fff; + white-space: nowrap; + } + + .blog-preview-readmore { + color: rgba(255, 255, 255, 0.7); + font-size: 0.875rem; + font-weight: 600; + margin-top: auto; + text-decoration: none; + + &:hover { + color: #fff; + text-decoration: underline; + } + } + } + #platinum-sponsor { display: flex; flex-direction: column; gap: 28px; - padding: 80px; + padding: 80px 80px 40px 80px; overflow: hidden; align-items: center; - color: #fff; - background-color: #000; + color: #000; + background-color: #fff; text-align: center; h2 { @@ -302,7 +522,7 @@ max-width: 648px; padding: 28px; border-radius: 16px; - border: 1px #3c3f44 solid; + border: 1px #d2d2d2 solid; display: flex; flex-direction: column; text-align: center; @@ -330,7 +550,7 @@ #become-a-member { display: flex; flex-direction: column; - padding: 80px; + padding: 40px 80px 80px 80px; overflow: hidden; align-items: center; color: #000; diff --git a/static/images/element-creators-of-matrix--light.svg b/static/images/element-creators-of-matrix--light.svg new file mode 100644 index 000000000..3d4854639 --- /dev/null +++ b/static/images/element-creators-of-matrix--light.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/static/images/element-creators-of-matrix--light.svg.license b/static/images/element-creators-of-matrix--light.svg.license new file mode 100644 index 000000000..2615c7454 --- /dev/null +++ b/static/images/element-creators-of-matrix--light.svg.license @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2025 Element Creations Ltd +# +# SPDX-License-Identifier: LicenseRef-ElementLogo diff --git a/templates/index.html b/templates/index.html index 7e0442693..65ff0e522 100644 --- a/templates/index.html +++ b/templates/index.html @@ -35,21 +35,78 @@

A cozy, safe, supercharged place for your community

An artist view of a chat community.
-
-

Build advanced, rich communication applications on top of Matrix.

-
- Start building apps +
+
+

Build advanced, rich communication applications on top of Matrix.

+ +
+ A conversation between four people on Element Call, a VoIP conference tool based on Matrix. +
+
+ {% set blog = get_section(path="blog/_index.md") %} +
+
+
+

Every Friday

+

This Week in Matrix

+

A community-curated weekly digest of the latest news, releases, and projects from across the Matrix ecosystem. Find out what's happening, discover new apps and servers, and share your own work in #thisweekin:matrix.org.

+
+ {% set_global twim_found = false %} + {% for page in blog.pages %} + {% if not twim_found and page.taxonomies.category and "This Week in Matrix" in page.taxonomies.category %} + {% set_global twim_found = true %} + +

Latest edition

+

{{ page.title }}

+

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

+ Read more → +
+ {% endif %} + {% endfor %}
- A conversation between four people on Element Call, a VoIP conference tool based on Matrix.
+ +
+

Latest from the Blog

+

Stay up to date with the latest news, updates, and insights from the Matrix community.

+
+ {% set_global blog_count = 0 %} + {% for page in blog.pages %} + {% if page.extra.hide_from_blog %}{% continue %}{% endif %} + {% if page.taxonomies.category and "This Week in Matrix" in page.taxonomies.category %}{% continue %}{% endif %} + {% if blog_count >= 3 %}{% break %}{% endif %} + {% set_global blog_count = blog_count + 1 %} +
+
+ {{ page.date | date(format="%B %d, %Y") }} + {% if page.taxonomies.category %} + {{ page.taxonomies.category | first }} + {% endif %} +
+

{{ page.title }}

+ {% if page.description %} +

{{ page.description }}

+ {% endif %} + Read more → +
+ {% endfor %} +
+ View All Posts +
+

Platinum member

From 835da2e0aed986705a58941dcf266a595dc9188b Mon Sep 17 00:00:00 2001 From: HarHarLinks <2803622+HarHarLinks@users.noreply.github.com> Date: Thu, 9 Jul 2026 00:18:51 +0200 Subject: [PATCH 2/2] unify blog cards behaviour Signed-off-by: HarHarLinks <2803622+HarHarLinks@users.noreply.github.com> --- sass/_index.scss | 15 ++------------- templates/index.html | 8 ++++---- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/sass/_index.scss b/sass/_index.scss index 92a943519..760882fd7 100644 --- a/sass/_index.scss +++ b/sass/_index.scss @@ -427,6 +427,8 @@ flex-direction: column; gap: 12px; transition: border-color 0.2s ease; + text-decoration: none; + color: #fff; &:hover { border-color: #666; @@ -437,14 +439,6 @@ font-weight: 700; margin: 0; line-height: 1.4; - - a { - color: #fff; - - &:hover { - color: rgba(255, 255, 255, 0.7); - } - } } p { @@ -485,11 +479,6 @@ font-weight: 600; margin-top: auto; text-decoration: none; - - &:hover { - color: #fff; - text-decoration: underline; - } } } diff --git a/templates/index.html b/templates/index.html index 65ff0e522..42f55978e 100644 --- a/templates/index.html +++ b/templates/index.html @@ -83,19 +83,19 @@

Latest from the Blog

{% if page.taxonomies.category and "This Week in Matrix" in page.taxonomies.category %}{% continue %}{% endif %} {% if blog_count >= 3 %}{% break %}{% endif %} {% set_global blog_count = blog_count + 1 %} - + Read more → + {% endfor %}
View All Posts