Skip to content

Commit 42c1038

Browse files
Merge pull request #66 from bishakhatiwari-coder/fix-hero_typography
feat: updated hero section styling
2 parents 550d46b + 7fa07db commit 42c1038

1 file changed

Lines changed: 24 additions & 5 deletions

File tree

‎style.css‎

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,37 @@ main {
153153
/* --- Hero --- */
154154
.hero {
155155
text-align: center;
156-
padding: 4rem 0 6rem;
157-
}
156+
padding: 6rem 1rem;
157+
animation: heroFade 1s ease-out;}
158+
@keyframes heroFade {
159+
from{
160+
opacity: 0;
161+
transform: translateY (15px);
162+
}
163+
to{
164+
opacity: 1;
165+
transform: translateY (0);
166+
}
167+
168+
}
169+
158170

159171
.hero h1 {
160-
font-size: 4rem;
161-
margin-bottom: 1rem;
172+
173+
font-size: clamp(2.5rem, 8vw,4.5rem);
174+
margin-bottom: 1.5rem;
162175
font-style: italic;
176+
line-height: 1.2;
177+
letter-spacing: 0.5px;
178+
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
163179
}
164180

165181
.hero p {
166182
color: var(--text-muted);
167-
font-size: 1.1rem;
183+
font-size: 1.2rem;
184+
line-height: 1.8;
185+
max-width: 55ch;
186+
margin: 0 auto;
168187
}
169188

170189
/* --- Curated Tables (Horizontal Scroll) --- */

0 commit comments

Comments
 (0)