Skip to content

Commit f1d3685

Browse files
author
Abd Ash
committed
Fix profile layout for mobile
1 parent 14d1c49 commit f1d3685

3 files changed

Lines changed: 716 additions & 201 deletions

File tree

src/components/Hero.astro

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,13 @@
4242
<style>
4343
.hero {
4444
min-height: 100vh;
45+
min-height: 100dvh; /* Better mobile support */
4546
display: flex;
4647
align-items: center;
4748
justify-content: center;
4849
position: relative;
4950
overflow: hidden;
51+
padding: 2rem 0; /* Ensure content isn't cut off on short screens */
5052
}
5153

5254
.hero-bg {
@@ -80,6 +82,7 @@
8082
flex-direction: column;
8183
align-items: center;
8284
gap: 20px;
85+
width: 100%; /* Ensure container width applies */
8386
}
8487

8588
.hero-badge {
@@ -180,9 +183,14 @@
180183
@media (max-width: 768px) {
181184
.hero-title {
182185
font-size: 2.2rem;
186+
padding-inline: 10px; /* Prevent edge touching */
183187
}
184188
.hero-desc {
185189
font-size: 0.9rem;
190+
padding-inline: 10px;
191+
}
192+
.hero-bg {
193+
background: radial-gradient(circle at center, #1B3A4B 0%, #070f18 100%); /* Fallback for mobile if needed */
186194
}
187195
}
188196
</style>

0 commit comments

Comments
 (0)