Skip to content

Commit 85c3a0e

Browse files
committed
Add responsive styles for navigation links and hero section; adjust font sizes and padding for better mobile experience
Signed-off-by: Steve Yonkeu <yokwejuste@yahoo.com>
1 parent f8b148e commit 85c3a0e

1 file changed

Lines changed: 50 additions & 1 deletion

File tree

src/index.css

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,21 @@ p {
395395
display: none;
396396
}
397397

398+
@media (max-width: 1024px) {
399+
.nav-links {
400+
gap: var(--spacing-sm);
401+
}
402+
403+
.nav-links a {
404+
font-size: 0.875rem;
405+
padding: var(--spacing-xs);
406+
}
407+
408+
.nav-logo img {
409+
height: 50px;
410+
}
411+
}
412+
398413
@media (max-width: 768px) {
399414
.nav-toggle {
400415
display: flex;
@@ -1830,12 +1845,46 @@ img {
18301845
animation: float 6s ease-in-out infinite;
18311846
}
18321847

1833-
@media (max-width: 768px) {
1848+
@media (max-width: 1024px) {
1849+
.hero {
1850+
padding-top: 80px;
1851+
}
1852+
1853+
.hero-title {
1854+
font-size: clamp(2rem, 6vw, 4rem);
1855+
}
1856+
18341857
.hero-logo {
18351858
width: 140px;
18361859
}
18371860
}
18381861

1862+
@media (max-width: 768px) {
1863+
.hero-logo {
1864+
width: 120px;
1865+
}
1866+
}
1867+
1868+
@media (max-height: 650px) {
1869+
.hero {
1870+
min-height: auto;
1871+
padding-top: 80px;
1872+
padding-bottom: var(--spacing-md);
1873+
}
1874+
1875+
.hero-logo {
1876+
width: 100px;
1877+
}
1878+
1879+
.hero-title {
1880+
font-size: clamp(1.75rem, 5vw, 3rem);
1881+
}
1882+
1883+
.hero-subtitle {
1884+
font-size: 1rem;
1885+
}
1886+
}
1887+
18391888
@keyframes float {
18401889

18411890
0%,

0 commit comments

Comments
 (0)