Skip to content

Commit 9155c8c

Browse files
committed
chore: shorten the homepage hero title
1 parent 01f8c43 commit 9155c8c

4 files changed

Lines changed: 20 additions & 9 deletions

File tree

‎DESIGN_SYSTEM.md‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ before implementation.
390390

391391
| Role | Canonical treatment |
392392
| --- | --- |
393-
| Brand hero | `font-serif text-[clamp(2.25rem,12vw,3.25rem)] leading-[0.96] font-semibold tracking-[-0.04em] sm:text-6xl lg:text-[4.25rem]` |
393+
| Brand hero | `font-serif text-[clamp(2.25rem,10.5vw,3.25rem)] leading-[0.96] font-semibold tracking-[-0.04em] sm:text-6xl lg:text-[4.25rem]` |
394394
| Campaign hero | `font-serif text-5xl leading-[0.98] font-semibold tracking-[-0.035em] sm:text-6xl lg:text-7xl` |
395395
| Standard marketing H1 | `font-serif text-5xl leading-[1.04] font-semibold tracking-[-0.035em] sm:text-6xl lg:text-7xl` |
396396
| Section thesis | `font-serif text-[2.5rem] leading-[1.03] font-semibold tracking-[-0.035em] sm:text-5xl lg:text-[3.35rem]` |
@@ -761,6 +761,16 @@ A durable user-requested exception MUST be recorded in this document with its
761761
route, scope, reason, and affected rule. Registered page signatures are part of
762762
the system and are not exceptions.
763763

764+
- At the user's request, the Homepage hero at `/` uses the page-specific title
765+
"Capture a thought. Keep it yours." to express quick capture and ownership
766+
with less text. This scoped exception to section 16's canonical brand-copy
767+
rule applies only to the visible hero title. Keep the two sentences on
768+
separate lines when space permits, with `HeroAccent` on "Keep it yours.";
769+
allow natural wrapping on narrower screens and with larger text settings.
770+
The desktop claim column is 36rem, and the mobile fluid scale uses 10.5vw
771+
within the existing rem bounds so each sentence fits at the primary review
772+
sizes without preventing text from wrapping.
773+
764774
- The Homepage's `MemoHeroMock` follows the current `demo.usememos.com` product
765775
UI at the user's request. Inside that reconstruction, section 12's website
766776
radius roles give way to the product's 8px memo/editor surfaces, compact

‎src/app/(public)/(site)/page.test.tsx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { render, screen } from "@testing-library/react";
22
import type { ReactNode } from "react";
33
import { describe, expect, it, vi } from "vitest";
4-
import { BRAND_SHORT, BRAND_TAGLINE } from "@/shared/lib/branding";
4+
import { BRAND_SHORT } from "@/shared/lib/branding";
55

66
vi.mock("@/features/marketing/components/hero-section", () => ({
77
HeroSection: ({ title, subtitle }: { title: ReactNode; subtitle: string }) => (
@@ -31,11 +31,12 @@ vi.mock("@/features/marketing/components/home-faq-section", () => ({
3131
import HomePage from "./page";
3232

3333
describe("HomePage", () => {
34-
it("preserves the approved brand introduction as one accessible heading", () => {
34+
it("renders the chosen hero title as one accessible heading with the ownership accent", () => {
3535
render(<HomePage />);
3636

3737
expect(screen.getAllByRole("heading", { level: 1 })).toHaveLength(1);
38-
expect(screen.getByRole("heading", { level: 1, name: BRAND_TAGLINE })).toBeVisible();
38+
expect(screen.getByRole("heading", { level: 1, name: "Capture a thought. Keep it yours." })).toBeVisible();
39+
expect(screen.getByText("Keep it yours.")).toHaveClass("text-brand-600", "dark:text-brand-300");
3940
expect(screen.getByText(BRAND_SHORT)).toBeVisible();
4041
});
4142

‎src/app/(public)/(site)/page.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { HomeFindSection } from "@/features/marketing/components/home-find-secti
66
import { HomeOwnSection } from "@/features/marketing/components/home-own-section";
77
import { HomeWriteSection } from "@/features/marketing/components/home-write-section";
88
import { StartSection } from "@/features/marketing/components/start-section";
9-
import { BRAND_DESCRIPTION, BRAND_SHORT, BRAND_TAGLINE_LINES, BRAND_TITLE } from "@/shared/lib/branding";
9+
import { BRAND_DESCRIPTION, BRAND_SHORT, BRAND_TITLE } from "@/shared/lib/branding";
1010
import { buildDefaultOpenGraphImages, DEFAULT_OG_IMAGE } from "@/shared/lib/seo";
1111

1212
export const metadata: Metadata = {
@@ -54,9 +54,9 @@ export default function HomePage() {
5454
<HeroSection
5555
title={
5656
<>
57-
<span className="block text-balance">{BRAND_TAGLINE_LINES[0]}</span>{" "}
57+
<span className="block text-balance">Capture a thought.</span>{" "}
5858
<span className="block text-balance">
59-
<HeroAccent>{BRAND_TAGLINE_LINES[1]}</HeroAccent>
59+
<HeroAccent>Keep it yours.</HeroAccent>
6060
</span>
6161
</>
6262
}

‎src/features/marketing/components/hero-section.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function HeroSection({ version = "26.10-rc.1", title, subtitle, primaryCt
2525
return (
2626
<section className="relative isolate overflow-hidden bg-white dark:bg-zinc-950">
2727
<HeroAmbient />
28-
<div className="site-container grid gap-12 pt-12 pb-16 sm:pt-14 sm:pb-20 lg:grid-cols-[minmax(0,32rem)_minmax(0,1fr)] lg:items-center lg:gap-12 lg:py-20">
28+
<div className="site-container grid gap-12 pt-12 pb-16 sm:pt-14 sm:pb-20 lg:grid-cols-[minmax(0,36rem)_minmax(0,1fr)] lg:items-center lg:gap-12 lg:py-20">
2929
<div className={`${styles.copy} min-w-0`}>
3030
{version ? (
3131
<Link
@@ -42,7 +42,7 @@ export function HeroSection({ version = "26.10-rc.1", title, subtitle, primaryCt
4242
</Link>
4343
) : null}
4444

45-
<h1 className="mt-6 text-balance font-serif text-[clamp(2.25rem,12vw,3.25rem)] leading-[0.96] font-semibold tracking-[-0.04em] text-zinc-950 dark:text-zinc-50 sm:text-6xl lg:text-[4.25rem]">
45+
<h1 className="mt-6 text-balance font-serif text-[clamp(2.25rem,10.5vw,3.25rem)] leading-[0.96] font-semibold tracking-[-0.04em] text-zinc-950 dark:text-zinc-50 sm:text-6xl lg:text-[4.25rem]">
4646
{title}
4747
</h1>
4848

0 commit comments

Comments
 (0)