Skip to content

Commit 2108d70

Browse files
authored
fix: improve mobile layout for features section (#184)
1 parent 63bddb2 commit 2108d70

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

apps/web/src/routes/+page.svelte

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,15 @@
220220
padding: 4rem 0 5rem;
221221
}
222222
223+
@media (max-width: 640px) {
224+
.features {
225+
display: grid;
226+
grid-template-columns: 1fr; /* single column */
227+
gap: 16px;
228+
padding: 0 12px;
229+
}
230+
}
231+
223232
.feature-card {
224233
padding: 2.4rem;
225234
border-radius: var(--radius-xl);
@@ -229,6 +238,16 @@
229238
transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
230239
}
231240
241+
.feature-card {
242+
min-height: 140px;
243+
padding: 16px;
244+
}
245+
@media (max-width: 640px) {
246+
.feature-card {
247+
margin-bottom: 12px;
248+
}
249+
}
250+
232251
.feature-card:hover {
233252
transform: translateY(-8px);
234253
border-color: rgba(99, 102, 241, 0.4);

0 commit comments

Comments
 (0)