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:
1 parent
059e18c07d
commit
d27c3dc913
4 files changed
+30
-1
No files matched your search
+21
-1
@@ -33,12 +33,32 @@
|
||||
height: 15px;
|
||||
}
|
||||
.hero__title {
|
||||
margin-top: var(--space-4);
|
||||
margin-top: var(--space-3);
|
||||
font-size: clamp(1.6rem, 1.15rem + 2.05vw, 2.5rem);
|
||||
letter-spacing: -0.015em;
|
||||
line-height: 1.35;
|
||||
max-width: 24ch;
|
||||
}
|
||||
|
||||
/* --------------------------------------------------- คำว่า hobbyproject */
|
||||
.hero__wordmark {
|
||||
margin-top: var(--space-4);
|
||||
font-size: clamp(1.5rem, 1.15rem + 1.05vw, 2rem);
|
||||
font-weight: 700;
|
||||
line-height: 1.15;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.hero__wordmark .wm-dark {
|
||||
color: var(--brand-900); /* 12.21:1 บนพื้นฮีโร่เข้มสุด */
|
||||
}
|
||||
.hero__wordmark .wm-light {
|
||||
color: var(--brand-500); /* 3.12:1 — ผ่านเกณฑ์ large text (≥24px ตัวหนา) */
|
||||
}
|
||||
.hero__wordmark-note {
|
||||
margin-top: 6px;
|
||||
font-size: 13px;
|
||||
color: var(--muted-foreground);
|
||||
}
|
||||
.hero__title em {
|
||||
font-style: normal;
|
||||
color: var(--brand-600);
|
||||
|
||||
@@ -121,6 +121,12 @@ html.fx-motion .hero__eyebrow {
|
||||
html.fx-motion .hero__lead {
|
||||
animation: fx-rise-in 620ms var(--ease) 520ms both;
|
||||
}
|
||||
html.fx-motion .hero__wordmark {
|
||||
animation: fx-rise-in 640ms cubic-bezier(0.16, 0.84, 0.28, 1) 260ms both;
|
||||
}
|
||||
html.fx-motion .hero__wordmark-note {
|
||||
animation: fx-fade-in 520ms var(--ease) 420ms both;
|
||||
}
|
||||
html.fx-motion .searchbar {
|
||||
animation: fx-pop-in 680ms cubic-bezier(0.16, 0.84, 0.28, 1) 600ms both;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user