Skip to content

Commit 26b64c0

Browse files
committed
feat(home): mono heading, remove redundant sections
Move monospace font to the h1 instead of the intro paragraph — stronger code nod at the top. Remove "By the numbers" and "Where to next" section headings; keep the stats grid without a heading. Drop the navigation links section entirely (duplicates the site nav).
1 parent 364028d commit 26b64c0

2 files changed

Lines changed: 2 additions & 13 deletions

File tree

src/design/layout.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@
5252
gap: var(--space-4);
5353
}
5454
.home-hero h1 {
55+
font-family: var(--font-mono);
5556
font-size: var(--step-4);
5657
max-inline-size: 22ch;
5758
}
5859
.home-hero__intro {
59-
font-family: var(--font-mono);
6060
font-size: var(--step-1);
6161
color: var(--color-ink-subtle);
6262
max-inline-size: var(--measure-prose);

src/pages/home.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Layout } from '../design/common/layout'
22
import { FeaturedCard } from '../design/components/featured-card'
33
import type { Catalog } from '../catalog/types'
4-
import { url } from '../build/config'
54
import type { SiteConfig } from '../build/config'
65

76
export type HeroContent = { hero: string; intro: string }
@@ -45,23 +44,13 @@ export function Home({
4544
</div>
4645
</section>
4746

48-
<section class="home-stats" aria-labelledby="stats-heading">
49-
<h2 id="stats-heading">By the numbers</h2>
47+
<section class="home-stats">
5048
<ul class="home-stats__grid">
5149
<li><strong>{visible.length}</strong> public projects</li>
5250
<li><strong>{active}</strong> actively maintained</li>
5351
<li><strong>{languages}</strong> languages</li>
5452
</ul>
5553
</section>
56-
57-
<section class="home-paths" aria-labelledby="paths-heading">
58-
<h2 id="paths-heading">Where to next</h2>
59-
<ul>
60-
<li><a href={url('/work/', config.basePath)}>Explore our work</a></li>
61-
<li><a href={url('/commitment/', config.basePath)}>Read our open source commitment</a></li>
62-
<li><a href={url('/about/', config.basePath)}>Get in touch</a></li>
63-
</ul>
64-
</section>
6554
</Layout>
6655
)
6756
}

0 commit comments

Comments
 (0)