Skip to content

Commit 8349949

Browse files
committed
fix padding issues
1 parent e2e4beb commit 8349949

File tree

3 files changed

+14
-9
lines changed

3 files changed

+14
-9
lines changed

frontend/src/components/HomepageFeatures/styles.module.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
.featuresSection {
22
display: flex;
33
align-items: center;
4-
padding: 3rem 0;
4+
padding: 0 0 3rem;
55
width: 100%;
6-
76
background: none;
87
position: relative;
98
overflow: hidden;

frontend/src/pages/index.module.css

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
.heroBanner {
2-
padding: 5rem 1.5rem 6rem;
2+
padding: 5rem 1.5rem 0;
33
position: relative;
44
overflow: hidden;
55
display: flex;
66
flex-direction: column;
77
align-items: center;
88
background: none;
9-
min-height: 80vh;
9+
min-height: auto;
10+
margin-bottom: 100px;
1011
}
1112

1213
.announcement {
@@ -97,7 +98,7 @@
9798
display: grid;
9899
grid-template-columns: repeat(6, 1fr);
99100
gap: 1.5rem;
100-
margin-top: 5rem;
101+
margin-top: 3rem;
101102
animation: fadeIn 1s ease-out 0.6s both;
102103
max-width: 600px;
103104
width: 100%;
@@ -119,6 +120,10 @@
119120
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
120121
}
121122

123+
.mainContainer {
124+
margin-top: 0;
125+
}
126+
122127
/* Animations */
123128
@keyframes fadeIn {
124129
from {
@@ -145,8 +150,8 @@
145150
/* Responsive styles */
146151
@media screen and (max-width: 996px) {
147152
.heroBanner {
148-
padding: 4rem 1.5rem 5rem;
149-
min-height: auto;
153+
padding: 4rem 1.5rem 0;
154+
margin-bottom: 80px;
150155
}
151156

152157
.heroContent {
@@ -177,7 +182,8 @@
177182

178183
@media screen and (max-width: 768px) {
179184
.heroBanner {
180-
padding: 3rem 1rem 4rem;
185+
padding: 3rem 1rem 0;
186+
margin-bottom: 60px;
181187
}
182188

183189
.heroTitle {

frontend/src/pages/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const Home = (): JSX.Element => {
161161
description="A multiplayer mod for Grand Theft Auto: San Andreas that is fully backwards compatible with San Andreas Multiplayer"
162162
>
163163
<HomepageHeader />
164-
<main>
164+
<main className={styles.mainContainer}>
165165
<HomepageFeatures />
166166
</main>
167167
</Layout>

0 commit comments

Comments
 (0)