chore(hero): drop the hobbyproject caption line

- remove 'hobbypj ย่อมาจาก hobby project' from the hero, its CSS rule and animation
- wordmark keeps the split browns; DESIGN.md updated
This commit is contained in:
Bkk1234 committed 2026-11-19 11:48:49 +07:00
1 parent d27c3dc913
commit b27acd40ee
4 files changed
+1 -10

No files matched your search

+1 -1
View File
@@ -50,7 +50,7 @@
- **ปุ่ม**: สูงขั้นต่ำ 44px (44×44 ตาม WCAG 2.5.8) · `primary` (น้ำตาลเข้ม+ขาว) · `ghost` (ขาว+ขอบ) · `quiet` · `danger`
- **ช่องค้นหา**: pill, เงา, ไอคอนซ้าย, ปุ่มล้างคำค้นหา 32×32 (มี label ให้ screen reader)
- **การ์ดโปรเจค**: ไอคอน 46×46 (พื้น `--brand-50`), ชื่อเป็นลิงก์ที่ขยายพื้นที่คลิกเต็มใบด้วย `::after`, คำอธิบาย 3 บรรทัดตัดด้วย `-webkit-line-clamp`, ท้ายการ์ดมี host + “เปิดเว็บไซต์”
- **คำว่า `hobbyproject` ในฮีโร่**: แบ่งสีตามตัวอักษร — `hobbyp` + `j` ใช้ `--brand-900` (#3D241A, 12.21:1) และ `ro` + `ect` ใช้ `--brand-500` (#C4703C, 3.12:1 บนพื้นฮีโร่เข้มสุด) จึงต้องมีขนาด ≥24px ตัวหนาขึ้นไป (ตอนนี้ clamp 24–32px) ถ้าลดต่ำกว่านั้นต้องเปลี่ยนไปใช้ `--brand-600` (#A85A2C, 4.30:1) เพื่อให้ผ่าน 4.5:1 ของตัวอักษรปกติ · ใต้คำมีบรรทัดอธิบาย `hobbypj ย่อมาจาก hobby project` (13px, `--muted-foreground`)
- **คำว่า `hobbyproject` ในฮีโร่**: แบ่งสีตามตัวอักษร — `hobbyp` + `j` ใช้ `--brand-900` (#3D241A, 12.21:1) และ `ro` + `ect` ใช้ `--brand-500` (#C4703C, 3.12:1 บนพื้นฮีโร่เข้มสุด) จึงต้องมีขนาด ≥24px ตัวหนาขึ้นไป (ตอนนี้ clamp 24–32px) ถ้าลดต่ำกว่านั้นต้องเปลี่ยนไปใช้ `--brand-600` (#A85A2C, 4.30:1) เพื่อให้ผ่าน 4.5:1 ของตัวอักษรปกติ
- **ฮีโร่**: พื้นไล่เฉดอุ่นอ่อน + การ์ดลอย 3 ใบ **สุ่มจากโปรเจคทั้งหมดใหม่ทุกครั้งที่โหลดหน้า** (Fisher–Yates, ไม่ซ้ำ) แสดงเฉพาะ ≥1080px, `aria-hidden`
- **หลังบ้าน**: พาเนล + การ์ดรายการ, ปุ่มเลื่อนขึ้น/ลง/ลบ, แถบบันทึกแบบ sticky ด้านล่าง, `<dialog>` ยืนยันการลบ/ทิ้งการแก้ไข
-5
View File
@@ -54,11 +54,6 @@
.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);
-3
View File
@@ -124,9 +124,6 @@ html.fx-motion .hero__lead {
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;
}
-1
View File
@@ -105,7 +105,6 @@ export function homeView(ctx) {
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,