-
⭐ 50+ โปรเจกต์สำเร็จ
+
+
+ 50+ โปรเจกต์สำเร็จ
+
· 40+ ลูกค้าที่ไว้วางใจ
· 5+ ปี
· 100% โค้ดด้วยตัวเอง
@@ -333,16 +337,19 @@ const titleWords = title.split(' ');
font-family: var(--font-display);
font-size: clamp(40px, 8vw, 90px);
font-weight: 900;
- line-height: 1;
- letter-spacing: -0.02em;
- text-transform: uppercase;
+ /* CRITICAL: line-height must be >1.2 to prevent Thai vowel clipping
+ when combined with overflow:hidden on .word-wrapper. */
+ line-height: 1.3;
+ letter-spacing: -0.01em;
color: var(--color-black);
margin-bottom: 32px;
}
.word-wrapper {
display: inline-block;
- overflow: hidden;
+ /* Use padding (not overflow:hidden) so Thai descenders stay visible. */
+ padding: 0.1em 0.05em;
+ margin: -0.1em -0.05em;
}
.word {
@@ -470,6 +477,7 @@ const titleWords = title.split(' ');
align-items: center;
gap: 4px;
}
+ .trust-icon { color: var(--color-primary); flex-shrink: 0; }
/* ============================================
BACKGROUND TEXT (light yellow watermark)
diff --git a/src/components/PageHero.astro b/src/components/PageHero.astro
index 3785c0e..75a380b 100644
--- a/src/components/PageHero.astro
+++ b/src/components/PageHero.astro
@@ -1,7 +1,7 @@
---
/**
- * MOREMINIMORE - PAGE HERO COMPONENT (LIGHT THEME)
- * White bg + dark text + yellow accent line
+ * MOREMINIMORE - PAGE HERO COMPONENT (LIGHT THEME + ANIMATIONS)
+ * White bg + dark text + yellow accent line. Animated on load.
*/
interface Props {
@@ -15,6 +15,9 @@ const {
title,
subtitle,
} = Astro.props;
+
+// Split title into words for kinetic animation
+const titleWords = title.split(' ');
---
@@ -26,13 +29,24 @@ const {
{badge && (
{badge}
)}
- {title}
+
+ {titleWords.map((word, index) => (
+
+
+ {word}
+
+
+ ))}
+
{subtitle && (
{subtitle}
)}
-
+