Skip to content

Commit abb671f

Browse files
committed
Introduce light-blue/light-grey section bg colors; remove separators
Add --ifm-bg-light-blue and --ifm-bg-light-grey CSS vars + Section/ SplitSection support. Projects page: alternating bg replaces separators. About page: values section uses light-blue with transparent cards.
1 parent 0d12972 commit abb671f

10 files changed

Lines changed: 27 additions & 22 deletions

File tree

src/components/layout/Section.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import styles from "./styles.module.css";
33
import type { ReactNode } from "react";
44

55
type Props = {
6-
bg?: "white" | "yellow" | "dark";
6+
bg?: "white" | "yellow" | "dark" | "light-blue" | "light-grey";
77
spacing?: "normal" | "tight" | "loose";
88
pageTop?: boolean;
99
fullHeight?: boolean;
@@ -26,7 +26,7 @@ export default function Section({
2626
data-section-bg={bg}
2727
className={clsx(
2828
styles.section,
29-
styles[`section_${bg}`],
29+
styles[`section_${bg.replace("-", "_")}`],
3030
spacing !== "normal" && styles[`section_${spacing}`],
3131
pageTop && styles.section_page_top,
3232
fullHeight && styles.section_full_height,

src/components/layout/SplitSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Props = {
77
image: ReactNode;
88
reverse?: boolean;
99
ratio?: "60/40" | "50/50";
10-
bg?: "white" | "yellow" | "dark";
10+
bg?: "white" | "yellow" | "dark" | "light-blue" | "light-grey";
1111
spacing?: "normal" | "tight" | "loose";
1212
pageTop?: boolean;
1313
fullHeight?: boolean;

src/components/layout/styles.module.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@
3737
color: white;
3838
}
3939

40+
.section_light_blue {
41+
background: var(--ifm-bg-light-blue);
42+
}
43+
44+
.section_light_grey {
45+
background: var(--ifm-bg-light-grey);
46+
}
47+
4048
.section_tight {
4149
padding: var(--ifm-spacing-2xl) 0;
4250
}

src/css/custom.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
--ifm-bg-neutral: #ffffff; /* default reading surface */
4343
--ifm-bg-brand: #ffffff; /* yellow dropped — white throughout */
4444
--ifm-bg-emphasis: var(--ifm-color-secondary-s2); /* CTA / strong contrast — navy */
45+
--ifm-bg-light-blue: #edf2fb; /* subtle blue tint — section alternation */
46+
--ifm-bg-light-grey: #f5f5f3; /* neutral grey — section alternation */
4547

4648

4749
/* footer */

src/pages/about/index.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import Section from "@site/src/components/layout/Section";
99
import Banner from "@site/src/components/layout/Banner";
1010
import CardGrid from "@site/src/components/layout/CardGrid";
1111
import Card from "@site/src/components/layout/Card";
12-
import SectionSeparator from "@site/src/components/layout/SectionSeparator";
1312
import LinkToContact from "@site/src/components/LinkToContact";
1413
import ScrollDownCTA from "@site/src/components/layout/ScrollDownCTA";
1514

@@ -35,13 +34,12 @@ export function AboutContent() {
3534
<ScrollDownCTA />
3635
</div>
3736
</Section>
38-
<SectionSeparator variant={4} />
39-
<Section>
37+
<Section bg="light-blue">
4038
<h2>Our values</h2>
4139
<CardGrid cols={4}>
4240
{valuesDetails.map((value, index) => (
4341
<li key={index}>
44-
<Card className={styles.value_card}>
42+
<Card bg="transparent" className={styles.value_card}>
4543
<div className={styles.value_icon}>
4644
<value.pictureComponent alt={value.alt} />
4745
</div>
@@ -54,7 +52,6 @@ export function AboutContent() {
5452
))}
5553
</CardGrid>
5654
</Section>
57-
<SectionSeparator variant={5} />
5855
<Section>
5956
<h2>Meet the QuantStack team</h2>
6057
<div className={styles.team_description}>

src/pages/projects.tsx

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function ProjectsContent() {
2020
return (
2121
<>
2222
{/* ── Header ────────────────────────────────────────────────────────── */}
23-
<Section pageTop fullHeight bg="yellow">
23+
<Section pageTop fullHeight bg="white">
2424
<h1>Working in the open.</h1>
2525
<p className="page-tagline">Tools reaching millions of researchers, engineers, and students worldwide.</p>
2626
<p className={styles.header_text}>
@@ -35,16 +35,14 @@ function ProjectsContent() {
3535
</div>
3636
</Section>
3737

38-
<SectionSeparator variant={1} />
39-
4038
{/* ── Project list ──────────────────────────────────────────────────── */}
41-
<Section spacing="tight">
39+
<Section spacing="tight" bg="light-grey">
4240
<h2 className="text--center">What we build and maintain</h2>
4341
</Section>
4442

4543
{/* ── Jupyter ───────────────────────────────────────────────────────── */}
4644
<SplitSection
47-
bg="white"
45+
bg="light-blue"
4846
ratio="60/40"
4947
image={
5048
<div className={`${styles.project_picture} ${styles.project_picture_jupyter}`}>
@@ -61,7 +59,7 @@ function ProjectsContent() {
6159

6260
{/* ── Mamba ─────────────────────────────────────────────────────────── */}
6361
<SplitSection
64-
bg="white"
62+
bg="light-grey"
6563
ratio="60/40"
6664
reverse
6765
image={
@@ -79,7 +77,7 @@ function ProjectsContent() {
7977

8078
{/* ── Conda-forge ───────────────────────────────────────────────────── */}
8179
<SplitSection
82-
bg="white"
80+
bg="light-blue"
8381
ratio="60/40"
8482
image={
8583
<div className={`${styles.project_picture} ${styles.project_picture_condaforge}`}>
@@ -96,7 +94,7 @@ function ProjectsContent() {
9694

9795
{/* ── Apache Arrow & Parquet ────────────────────────────────────────── */}
9896
<SplitSection
99-
bg="white"
97+
bg="light-grey"
10098
ratio="60/40"
10199
reverse
102100
image={
@@ -114,7 +112,7 @@ function ProjectsContent() {
114112

115113
{/* ── Xtensor & Xsimd ──────────────────────────────────────────────── */}
116114
<SplitSection
117-
bg="white"
115+
bg="light-blue"
118116
ratio="60/40"
119117
image={
120118
<div className={`${styles.project_picture} ${styles.project_picture_xtensor}`}>
@@ -131,7 +129,7 @@ function ProjectsContent() {
131129

132130
{/* ── Robotics ──────────────────────────────────────────────────────── */}
133131
<SplitSection
134-
bg="white"
132+
bg="light-grey"
135133
ratio="60/40"
136134
reverse
137135
image={

static/atom.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/atom_all.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/rss.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/rss_all.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)