Skip to content

Essays left, tools right on desktop so both are visible from the jump - #7

Open
Korede-TA wants to merge 1 commit into
mainfrom
claude/sc-section-layout-im9dtc
Open

Essays left, tools right on desktop so both are visible from the jump#7
Korede-TA wants to merge 1 commit into
mainfrom
claude/sc-section-layout-im9dtc

Conversation

@Korede-TA

Copy link
Copy Markdown
Contributor

Description

The intro sentence promises "Essays and visualizations", but the home page stacked ESSAYS above TOOLS. With 13 essays in the list, the tools sat ~1,300px below the fold — a visitor had to scroll a long way to learn the visualizations exist.

This wraps the two sections in a row that splits 60/40 at the tachyons -l breakpoint (≥60em): essays on the left, tools on the right, both headings top-aligned at the same y and in view on first paint. Below -l the row collapses and the sections stack in source order (essays, then tools), so tablet and mobile render exactly as before.

Measured, production build (next build + next start):

viewport layout #essays #tools tools above fold
1440×900 side by side left 251, w 518 left 769, w 345 yes (top 470)
1920×1080 side by side left 251, w 518 left 769, w 345 yes (top 470)
820×1000 stacked top 786 top 2092 n/a (unchanged)
390×844 stacked top 636 top 1942 n/a (unchanged)

Identical geometry in light and dark themes, and documentElement.scrollWidth == clientWidth at every width (no horizontal overflow). At 820/390 the rendered output is byte-identical to main.

The 965px grid-aligned #content width from styles/notion.css is untouched, so the columns fit inside the existing background-grid alignment rather than widening the page.

Supporting changes

  • Tool cards go full width inside the narrower desktop column (still two-up on tablet), with the thumbnail crop shortened from 175px to 140px at -l so all three tools reach the visible area sooner. The inline image styles move into a new .tool-thumb rule in styles/styles.css.
  • The tools array moves out of the JSX to module scope, next to homePageText.
  • Tool cards become <li> rather than <div> children of the <ul>.
  • The <br /> section separators give way to a margin on the new row wrapper.
  • Fixes the malformed id="about pb5" (a className that never applied) to id="about". Rendering is unchanged — deliberately not adding the pb5 padding, since that would push the sections further down.

New layout classes live in components/styles.ts alongside the other tachyons class strings, so the split is described in one place.

Notion Test Page ID

ed3fc4a0cd0b4f78ab0e04573e0f8246 — the site root / home page (rootNotionPageId in site.config.ts), which is the page this PR changes. The ARCHIVES section below the split renders empty in local runs because the Are.na API isn't reachable from this environment; that section is untouched by this change.


Generated by Claude Code

The intro sentence promises "essays and visualizations", but the home page
stacked ESSAYS above TOOLS, so the tools sat well below the fold behind a
13-item essay list — a visitor had to scroll to learn the visualizations
exist.

Wrap the two sections in a row that splits 60/40 at the -l breakpoint:
essays on the left, tools on the right, both headings top-aligned and in
view on first paint. Below -l the row collapses and the sections stack in
source order (essays, then tools), so mobile and tablet are unchanged.

Supporting changes:
- tool cards go full width inside the narrower desktop column (two-up on
  tablet, as before), with the thumbnail crop shortened to 140px at -l via
  a new .tool-thumb class replacing the inline image styles
- the tools array moves out of the JSX to module scope alongside homePageText
- tool cards become <li> instead of <div> children of the <ul>
- drop the <br /> section separators in favour of a margin on the new row
- fix the malformed id="about pb5" (a className that never applied) to
  id="about"; rendering is unchanged

Verified against a production build at 1440/1920 (side by side) and
820/390 (stacked) in both light and dark themes, with no horizontal
overflow at any width.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FWzDx2EE2Awx85v7Qk7UC
@netlify

netlify Bot commented Aug 10, 2026

Copy link
Copy Markdown

Deploy Preview for soft-swan-5d0ce7 ready!

Name Link
🔨 Latest commit 44e624e
🔍 Latest deploy log https://app.netlify.com/projects/soft-swan-5d0ce7/deploys/6a7918300cf3f30008f902f0
😎 Deploy Preview https://deploy-preview-7--soft-swan-5d0ce7.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.

@netlify

netlify Bot commented Aug 10, 2026

Copy link
Copy Markdown

Deploy Preview for darling-dusk-441006 ready!

Name Link
🔨 Latest commit 44e624e
🔍 Latest deploy log https://app.netlify.com/projects/darling-dusk-441006/deploys/6a791830fc183b000843be56
😎 Deploy Preview https://deploy-preview-7--darling-dusk-441006.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.

@github-actions

Copy link
Copy Markdown
PR Preview Action v1.8.1

QR code for preview link

🚀 View preview at
https://suruleredotdev.github.io/dotdev/pr-preview/pr-7/

Built to branch gh-pages at 2026-08-10 00:16 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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.

2 participants