Skip to content

Commit 962c3c6

Browse files
committed
Improved typing and text clarity
1 parent 156b826 commit 962c3c6

File tree

2 files changed

+175
-130
lines changed

2 files changed

+175
-130
lines changed

src/pages/get-started/index.tsx

Lines changed: 18 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -124,20 +124,22 @@ function GetStartedHeader() {
124124

125125
return (
126126
<header className={styles.heroBanner}>
127+
{/* Dark overlay for better text visibility */}
128+
<div className={styles.heroOverlay}></div>
127129
<div className="container">
128130
<div className={styles.heroContent}>
129-
<motion.h1
130-
className="hero__title"
131+
<motion.h1
132+
className={`hero__title ${styles.heroTitle}`}
131133
initial={{ opacity: 0, y: 20 }}
132134
animate={{ opacity: 1, y: 0 }}
133135
transition={{ duration: 0.8, ease: "easeOut" }}
134136
>
135-
Transform Your Career in{" "}
137+
Transform Your Career in
136138
<span className={styles.highlight}>Tech</span>
137139
</motion.h1>
138140

139141
<motion.p
140-
className="hero__subtitle"
142+
className={`hero__subtitle ${styles.heroSubtitle}`}
141143
initial={{ opacity: 0, y: 20 }}
142144
animate={{ opacity: 1, y: 0 }}
143145
transition={{ duration: 0.8, delay: 0.2, ease: "easeOut" }}
@@ -146,29 +148,17 @@ function GetStartedHeader() {
146148
hands-on challenges
147149
</motion.p>
148150

149-
<motion.div
150-
className={styles.typingContainer}
151-
initial={{ opacity: 0 }}
152-
animate={{ opacity: 1 }}
153-
transition={{ delay: 0.4 }}
154-
>
155-
<div className={styles.typingText}>
156-
<span className={styles.staticText}>Start</span>
157-
<div className={styles.typingAnimation}>
158-
{texts.map((text, i) => (
159-
<span
160-
key={i}
161-
className={`${styles.typingWord} ${
162-
i === textIndex ? styles.visible : ""
163-
}`}
164-
>
165-
{text}
166-
</span>
167-
))}
168-
</div>
169-
<span className={styles.staticText}>Today</span>
170-
</div>
171-
</motion.div>
151+
<div className={styles.typingContainer}>
152+
<span className={styles.staticText}>Start&nbsp;</span>
153+
<span className={styles.dynamicText}>
154+
<span className={styles.typingWord}>Code</span>
155+
<span className={styles.typingWord}>Build</span>
156+
<span className={styles.typingWord}>Deploy</span>
157+
<span className={styles.typingWord}>Learn</span>
158+
</span>
159+
<span className={styles.staticText}>&nbsp;Today</span>
160+
</div>
161+
172162

173163
<motion.div
174164
className={styles.buttons}
@@ -218,6 +208,7 @@ function GetStartedHeader() {
218208
</span>
219209
</Link>
220210
</motion.div>
211+
221212
</div>
222213
</div>
223214
</header>

0 commit comments

Comments
 (0)