feat(hero): add the hobbyproject wordmark with split browns

- 'hobbyp' + 'j' in brand-900 (12.21:1), 'ro' + 'ect' in brand-500 (3.12:1)
  so the reader connects hobbypj with hobby project
- caption under it: 'hobbypj ย่อมาจาก hobby project'
- wordmark is 24-32px bold, the size at which the light brown still passes AA large text
- entrance animation with the rest of the hero; aria-label keeps the whole word for screen readers
- DESIGN.md records the colour split and the size rule
This commit is contained in:
Bkk1234 committed 2026-11-19 11:48:03 +07:00
1 parent 059e18c07d
commit d27c3dc913
4 files changed
+30 -1

No files matched your search

+2
View File
@@ -104,6 +104,8 @@ export function homeView(ctx) {
<p class="hero__eyebrow">${icon("spark")}<span>${escapeHtml(
site.site_title,
)}</span></p>
<p class="hero__wordmark" aria-label="hobbyproject"><span class="wm-dark">hobbyp</span><span class="wm-light">ro</span><span class="wm-dark">j</span><span class="wm-light">ect</span></p>
<p class="hero__wordmark-note">hobbypj ย่อมาจาก hobby project</p>
<h1 class="hero__title" id="hero-title">${splitWordsHtml(
site.welcome_message,
escapeHtml,