Skip to content

style: redesign homepage hero as a spreadsheet grid - #983

Open
nkuprins wants to merge 5 commits into
apache:mainfrom
nkuprins:spreadsheet-hero-section
Open

style: redesign homepage hero as a spreadsheet grid#983
nkuprins wants to merge 5 commits into
apache:mainfrom
nkuprins:spreadsheet-hero-section

Conversation

@nkuprins

@nkuprins nkuprins commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Related: #975
The playground (if gets approved) will be added in the other PR for easier review.

Purpose of the pull request

Discussed in #975

What's changed?

Replaces the radial green gradient in the homepage hero with a spreadsheet.

  • The hero background drops the three-stop radial gradient for solid #14824b under a 135deg wash of 45% black fading to transparent
  • A worksheet grid Cell borders come from two 1px linear-gradients tiled at --grid-size, plus a column-letter and row-number strip.
  • The clipped last row and column fade out. The grid deliberately runs past the hero's edges, which left the bottom row number and rightmost column letter sliced mid-glyph. Both label strips now carry a mask-image gradient that dissolves them over the final --grid-fade px, so the grid reads as continuing rather than as being cut off.

Colouring

I left the dark theme untouched because the current hero UI is also not affected by the dark theme. Therefore, I used plain #14824b instead of var(--ifm-color-primary)

Browsers

Verified in Microsoft Edge, Firefox, Brave, Chrome

@nkuprins
nkuprins force-pushed the spreadsheet-hero-section branch from a96636e to 4b28063 Compare August 3, 2026 15:21
@nkuprins nkuprins changed the title Spreadsheet hero section style: redesign homepage hero Aug 3, 2026
@nkuprins
nkuprins force-pushed the spreadsheet-hero-section branch from 4b28063 to 97a3f82 Compare August 10, 2026 21:44
@nkuprins nkuprins changed the title style: redesign homepage hero style: redesign homepage hero as a spreadsheet grid Aug 10, 2026
@nkuprins
nkuprins marked this pull request as ready for review August 10, 2026 22:18
@delei
delei requested a lite review from Copilot August 11, 2026 12:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR redesigns the Docusaurus homepage hero background to look like a spreadsheet grid, replacing the prior radial gradient and adding gridlines plus row/column label strips.

Changes:

  • Replace the global .hero background with a solid #14824b + 135° dark wash gradient.
  • Add a tiled grid overlay and row/column label strips to the homepage hero.
  • Add mask-based fading to avoid harsh clipping of the last visible row/column labels.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
website/src/pages/index.module.css Adds grid overlay + label strip styling, responsive sizing, and mask-based fade-out.
website/src/pages/index.js Renders grid overlay + row/column label spans and includes Excel-like column lettering logic.
website/src/css/custom.css Updates the hero background gradient/color used by the homepage hero.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread website/src/pages/index.module.css
Comment on lines +86 to +103
.colLabels {
top: 0;
left: 0;
right: 0;
height: var(--grid-size);
padding-left: var(--grid-size);
mask-image: linear-gradient(to left, transparent, #000 var(--grid-fade));
}

.rowLabels {
top: 0;
left: 0;
flex-direction: column;
width: var(--grid-size);
height: 100%;
padding-top: var(--grid-size);
mask-image: linear-gradient(to top, transparent, #000 var(--grid-fade));
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Safari has supported unprefixed mask-image since 15.4

@delei

delei commented Aug 11, 2026

Copy link
Copy Markdown
Member

👍 LGTM.

If possible, we look forward to experiencing high-resolution (such as 4K) display effects.

If there are no other suggestions, I will merge this PR ASAP.

Screenshot

image image image

@delei delei left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants