Skip to content

Commit f81bcef

Browse files
committed
adjust styling issues for mobile
1 parent 25b3976 commit f81bcef

File tree

2 files changed

+32
-12
lines changed

2 files changed

+32
-12
lines changed

script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const projects = [
8282
'React query',
8383
'React hook forms',
8484
'React router',
85-
'Supabase(RESTful API)',
85+
'Supabase(RESTful)',
8686
'High accessibility score',
8787
'Figma',
8888
],
@@ -121,7 +121,7 @@ const projects = [
121121
'React hook forms',
122122
'React router',
123123
'Context Api',
124-
'Supabase(RESTful API)',
124+
'Supabase(RESTful)',
125125
'Figma',
126126
],
127127
client:

styles.css

Lines changed: 30 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ header ul {
9494
main {
9595
display: grid;
9696
grid-template-columns: 1fr 2.5fr;
97-
grid-gap: 5rem;
97+
gap: 5rem;
9898
max-width: 2200px;
9999
padding: 10rem 5rem 6rem;
100100
margin: 0 auto;
@@ -151,7 +151,7 @@ footer {
151151
.project-wrapper {
152152
display: grid;
153153
grid-template-columns: 1.75fr 1fr;
154-
grid-gap: 2rem;
154+
gap: 2rem;
155155
padding-bottom: 8rem;
156156
}
157157

@@ -177,7 +177,7 @@ footer {
177177
grid-column: 1 / span 1;
178178
display: grid;
179179
grid-template-columns: 1fr 2fr;
180-
grid-gap: 2rem;
180+
gap: 2rem;
181181
}
182182

183183
.project-aside {
@@ -210,7 +210,7 @@ footer {
210210

211211
main {
212212
grid-template-columns: 1fr 3fr;
213-
grid-gap: 3rem;
213+
gap: 3rem;
214214
padding: 10rem 2rem 6rem;
215215
}
216216

@@ -221,13 +221,21 @@ footer {
221221

222222
@media (max-width: 1000px) {
223223
* {
224-
font-size: 16px;
224+
font-size: 13px;
225225
}
226226

227227
main {
228228
grid-template-columns: 1fr 4fr;
229-
grid-gap: 3rem;
230-
padding: 10rem 2rem 6rem;
229+
gap: 3rem;
230+
padding: 8rem 2rem 6rem;
231+
}
232+
233+
.font-m {
234+
padding: 1rem 0;
235+
}
236+
237+
.header-container {
238+
padding: 0 0rem;
231239
}
232240

233241
.about-container {
@@ -245,7 +253,11 @@ footer {
245253
grid-row: 5 / span 1;
246254
display: grid;
247255
grid-template-columns: 1fr 2fr;
248-
grid-gap: 2rem;
256+
gap: 2rem;
257+
}
258+
.links-container,
259+
.client-container {
260+
min-width: 10rem;
249261
}
250262
}
251263

@@ -256,7 +268,7 @@ footer {
256268
justify-content: flex-start;
257269
align-items: flex-start;
258270
width: 100%;
259-
padding: 0 2rem;
271+
padding: 0 2rem 1rem;
260272
}
261273

262274
.header-nav {
@@ -273,11 +285,19 @@ footer {
273285
grid-row: 2 / span 1;
274286
display: grid;
275287
grid-template-columns: 1fr 1fr;
276-
grid-gap: 2rem;
288+
gap: 2rem;
277289
}
278290

279291
#projects {
280292
grid-column: 1 / span 2;
281293
grid-row: 3 / span 1;
282294
}
295+
296+
.project-wrapper {
297+
display: grid;
298+
grid-template-columns: 1.75fr 1fr;
299+
gap: 2rem;
300+
row-gap: 1rem;
301+
padding-bottom: 8rem;
302+
}
283303
}

0 commit comments

Comments
 (0)