Skip to content

Blog page reevamp - #295

Open
muskanhashim wants to merge 4 commits into
mainfrom
blog-card-grid
Open

Blog page reevamp#295
muskanhashim wants to merge 4 commits into
mainfrom
blog-card-grid

Conversation

@muskanhashim

Copy link
Copy Markdown
Contributor

No description provided.

The listing was a wall of date/title/description rows that all carried the same
weight, and it gave the posts' own figures nowhere to appear.

Each post is now a card whose shape comes from its own cover image, so figures
are shown whole rather than letterboxed into a fixed box; the covers here range
from 1.46:1 to 7.5:1 and no single ratio serves them.
The cover is the first locally hosted image in the post, found at build time.
Remote images are skipped on purpose, so a post cannot hotlink a third party
from the index.
Dimensions come from images.Config, except for SVGs, which that function does
not read, so those are taken from the root element instead.

A picture only earns a cover slot if it reads at card size. Panoramas and dense
multi-panel figures shrink to illegible strips, so those posts and the ones with
no image at all get a type card coloured from $eco-hues, the same cycle the
ecosystem cards and people monograms already use. That way the grid never shows
an empty frame.

The newest post spans two columns. Cards stretch to their row so every row ends
level, and each one reserves ground beneath its picture so the text never lands
on the artwork. Titles and descriptions are clamped to two lines, since the
descriptions run from six words to twenty-five.

An archive rail lists every post by year alongside the grid, and drops away
below 62rem.

.page-item-author goes with the old markup; nothing else referenced it. /events
and the landing page keep using .page-item, which is untouched.
Conditional classes go inline on one attribute, the way the ecosystem cards
already write them, rather than split across lines.

A type card has no picture to give it height, so its text sits in the flow and
the card grows to fit a long title instead of clipping it.
The longest title on a type card slid under the "scverse blog" mark, so the text
block now clears it.

One column means much narrower cards, so the same words wrap onto more lines
than they do on a wide screen and outgrew the ground reserved beneath the
picture; on the lead card the title sat across the diagram at 375px.

The lead carries a kicker the others do not and was a line short of room for it.

Checked at 375, 820 and 1280: no card's text crosses its picture, nothing
overflows its column, nothing is clipped, and there is no horizontal scroll.
@netlify

netlify Bot commented Sep 2, 2026

Copy link
Copy Markdown

Deploy Preview for jade-cajeta-1bcca0 ready!

Name Link
🔨 Latest commit 5675843
🔍 Latest deploy log https://app.netlify.com/projects/jade-cajeta-1bcca0/deploys/6a97f35c95734c00083c34db
😎 Deploy Preview https://deploy-preview-295--jade-cajeta-1bcca0.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@muskanhashim
muskanhashim requested a review from Zethson September 2, 2026 10:01
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.

1 participant