From 6316e995956a35dff459568785cec9a4d3893d6b Mon Sep 17 00:00:00 2001 From: Kevin Longe <273747162+kvlonge@users.noreply.github.com> Date: Fri, 4 Dec 2026 12:13:05 +0000 Subject: [PATCH] Put the hero's lead on two lines, with the description always below it The bold lead now reads "Writing SQL is no longer the hard part." and, on its own line, "Knowing it's right, and keeping it that way, is." It is a block, so the grey description always starts on a new line; at 1440 px it used to run on after the bold text. --- index.html | 4 ++-- styles.css | 2 +- tests/website.spec.mjs | 9 ++++++++- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 27b6afe..1f94c0a 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@ - + @@ -60,7 +60,7 @@

The Data Stack for Engineers of the Future

-

Writing SQL is no longer the hard part. Knowing it's right is. Independent tools grounded in software engineering fundamentals, so you can keep pace with the frontier without breaking what works.

+

Writing SQL is no longer the hard part.
Knowing it’s right, and keeping it that way, is.
Independent tools grounded in software engineering fundamentals, so you can keep pace with the frontier without breaking what works.

Explore the tools GitHub diff --git a/styles.css b/styles.css index aafc85a..bb3cc23 100644 --- a/styles.css +++ b/styles.css @@ -134,7 +134,7 @@ img { display: block; object-fit: contain; } .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 48px; min-height: min(640px, calc(100vh - 59px)); padding-block: 64px; } h1 { margin: 0; max-width: 11ch; font-size: clamp(44px, 5.4vw, 80px); line-height: 1.02; letter-spacing: -.05em; font-weight: 800; text-wrap: balance; } .lede { max-width: 34em; margin: 28px 0 0; color: var(--muted); font-size: 19px; line-height: 1.5; } -.lede strong { color: var(--ink); font-weight: 600; } +.lede strong { display: block; color: var(--ink); font-weight: 600; text-wrap: pretty; } .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 12px; margin-top: 36px; } .button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; } .button:hover { text-decoration: none; border-color: var(--muted); } diff --git a/tests/website.spec.mjs b/tests/website.spec.mjs index 7f6227a..7062267 100644 --- a/tests/website.spec.mjs +++ b/tests/website.spec.mjs @@ -55,7 +55,14 @@ test('tools, stack layers, sharing assets and responsive layout work in both the await page.emulateMedia({ colorScheme: theme }); await page.goto('/'); await expect(page.getByRole('heading', { level: 1 })).toHaveText('The Data Stack for Engineers of the Future'); - await expect(page.locator('.hero .lede strong')).toHaveText("Writing SQL is no longer the hard part. Knowing it's right is."); + const lede = page.locator('.hero .lede strong'); + await expect(lede).toHaveText('Writing SQL is no longer the hard part. Knowing it’s right, and keeping it that way, is.', { useInnerText: true }); + // The grey sentence starts on its own line, below the bold lines. + expect(await lede.evaluate((bold) => { + const range = document.createRange(); + range.selectNodeContents(bold.nextSibling); + return range.getClientRects()[0].top >= bold.getBoundingClientRect().bottom - 1; + })).toBe(true); await expect(page.locator('.hero .actions')).toContainText('Use one, or use them all.'); await expect(page.getByRole('heading', { level: 2 })).toHaveText('Independent tools. Shared foundations.'); const logo = page.getByRole('link', { name: 'SQLStack home', exact: true }).locator('img:visible');