Skip to content

Commit af1a675

Browse files
committed
fix: smaller padding on mobile
1 parent 66da0fc commit af1a675

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/pages/test.astro

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ import "../styles/global.css";
5555
</div>
5656

5757
<!-- Navigation Bar with transparent background -->
58-
<div class="relative z-10 flex justify-center text-white px-8 sm:px-20">
59-
<nav class="flex justify-between items-center pt-6 w-full max-w-screen-md">
58+
<div class="relative z-10 flex justify-center text-white px-6 sm:px-20">
59+
<nav class="flex justify-between items-center pt-5 w-full max-w-screen-md">
6060
<div class="text-2xl font-bold">LOGO</div>
6161

6262
<!-- Desktop Navigation -->
@@ -79,7 +79,7 @@ import "../styles/global.css";
7979
</div>
8080

8181
<!-- Headline with same padding as content -->
82-
<div class="relative z-10 text-white max-w-screen-md mx-auto px-8 sm:px-20">
82+
<div class="relative z-10 text-white max-w-screen-md mx-auto px-6 sm:px-20">
8383
<div class="py-15 sm:py-20 max-w-[70%] sm:max-w-[80%]">
8484
<h1 class="text-3xl sm:text-4xl lg:text-6xl font-bold font-display leading-tight">
8585
Some blog entry headline that's quite long
@@ -94,7 +94,7 @@ import "../styles/global.css";
9494
x-show="mobileMenuOpen"
9595
class="fixed inset-0 bg-black z-50"
9696
>
97-
<div class="px-8 sm:px-20 max-w-screen-md mx-auto">
97+
<div class="px-6 sm:px-20 max-w-screen-md mx-auto">
9898
<!-- Mobile Menu Header with Close Button -->
9999
<div class="flex justify-between items-center py-6">
100100
<div class="text-2xl font-bold text-white">LOGO</div>
@@ -111,15 +111,15 @@ import "../styles/global.css";
111111
</div>
112112

113113
<!-- Mobile Menu Links -->
114-
<div class="flex flex-col items-center justify-center h-[80vh] space-y-8 text-xl">
114+
<div class="flex flex-col items-center justify-center h-[80vh] space-y-6 text-xl">
115115
<a href="#" class="text-white hover:text-gray-300" @click="mobileMenuOpen = false">Link 1</a>
116116
<a href="#" class="text-white hover:text-gray-300" @click="mobileMenuOpen = false">Link 2</a>
117117
<a href="#" class="text-white hover:text-gray-300" @click="mobileMenuOpen = false">Link 3</a>
118118
</div>
119119
</div>
120120

121121
<!-- Content Box with responsive padding -->
122-
<div class="max-w-screen-md mx-auto bg-white text-black p-8 sm:p-20 -mt-5 sm:-mt-40 relative z-10">
122+
<div class="max-w-screen-md mx-auto bg-white text-black p-6 sm:p-20 -mt-5 sm:-mt-40 relative z-10">
123123
<p class="mb-6">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in dui mauris. Vivamus hendrerit arcu sed erat molestie vehicula. Sed auctor neque eu tellus rhoncus ut eleifend nibh porttitor.</p>
124124

125125
<p class="mb-6">Ut aliquam sollicitudin iaculis. Praesent ac semper ante. Interdum et malesuada fames ac ante ipsum primis in faucibus. Vivamus eget tempor dolor.</p>
@@ -145,8 +145,8 @@ import "../styles/global.css";
145145
</div>
146146

147147
<!-- Black Footer with smaller navigation (always visible) -->
148-
<footer class="bg-black text-white py-10">
149-
<div class="flex justify-center px-8 sm:px-20">
148+
<footer class="bg-black text-white py-4 sm:py-10">
149+
<div class="flex justify-center px-5 sm:px-20">
150150
<div class="flex justify-between items-center w-full max-w-screen-md">
151151
<div class="text-lg font-bold">LOGO</div>
152152
<div class="flex space-x-4 sm:space-x-6 text-xs sm:text-sm">

0 commit comments

Comments
 (0)