Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit a357c12

Browse files
committed
feat: finish responsive styling homepage updates
1 parent 930a059 commit a357c12

4 files changed

+66
-8
lines changed

src/components/HomePageHighlights.module.scss

+24-8
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
position: relative;
3535
z-index:100;
3636
display: grid;
37-
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
37+
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
3838
grid-gap: 20px;
3939
}
4040

@@ -119,6 +119,27 @@
119119
.featured-external-projects {
120120
padding: 0 28px;
121121
}
122+
123+
.external-projects-list {
124+
grid-template-columns: 1fr 1fr;
125+
}
126+
}
127+
128+
@media screen and (max-width: 1024px) {
129+
.featured-external-projects-header {
130+
flex-direction: column;
131+
text-align: center;
132+
align-items: stretch;
133+
}
134+
135+
.featured-external-projects-title {
136+
text-align: center;
137+
margin-bottom: 0;
138+
}
139+
140+
.featured-external-projects-description {
141+
margin-bottom: 24px;
142+
}
122143
}
123144

124145
@media screen and (max-width: 1150px) {
@@ -144,23 +165,18 @@
144165

145166
.external-projects-list {
146167
grid-gap: 16px;
168+
grid-template-columns: 1fr;
147169
}
148170

149171
.featured-external-projects {
150-
margin-top: 120px;
172+
margin-top: 40px;
151173
}
152174

153175
.featured-external-projects-description {
154176
line-height: 23px;
155177
}
156178
}
157179

158-
@media screen and (max-width: 480px) {
159-
.external-projects-list {
160-
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))
161-
}
162-
}
163-
164180
@media screen and (max-width: 400px) {
165181
.featured-external-projects:before {
166182
height: 775px;

src/components/HomePageInternalProjects.module.scss

+9
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
66
grid-gap: 16px;
77
}
88

9+
@media screen and (max-width: 1200px) {
10+
.featured-internal-projects-container {
11+
opacity: .1;
12+
&:before {
13+
height: 700px;
14+
}
15+
}
16+
}
17+
918
@media screen and (max-width: 480px) {
1019
.featured-internal-projects {
1120
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

src/components/HomepageCollection.module.scss

+4
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@
140140
}
141141

142142
@media screen and (max-width: 600px) {
143+
.homepage-collection {
144+
margin-top: 115px;
145+
}
146+
143147
.project h4 {
144148
max-width: 19ch;
145149
white-space: nowrap;

src/pages/home-page.module.scss

+29
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,10 @@ img.play-button {
400400
box-sizing: border-box;
401401
width: 100%;
402402
padding: 0 28px;
403+
404+
&:before {
405+
height: 600px;
406+
}
403407
}
404408
}
405409

@@ -425,6 +429,11 @@ img.play-button {
425429
}
426430
}
427431

432+
.featured-internal-projects-container:before {
433+
height: 650px;
434+
transform: skewY(-2deg) translateY(-60px)
435+
}
436+
428437
.featured-internal-projects-section {
429438
flex-direction: column;
430439
align-items: center;
@@ -437,6 +446,12 @@ img.play-button {
437446
}
438447
}
439448

449+
@media screen and (max-width: 928px) {
450+
.featured-internal-projects-container:before {
451+
height: 770px;
452+
}
453+
}
454+
440455
@media screen and (max-width: 900px) {
441456
.homepage-hero-video {
442457
display: none;
@@ -515,6 +530,20 @@ img.play-button {
515530
width: 100%;
516531
padding: 54.25% 28px 0 28px;
517532
}
533+
534+
.featured-internal-projects-container:before {
535+
height: 780px;
536+
}
537+
}
538+
539+
@media screen and (max-width: 630px) {
540+
.featured-internal-projects-container:before {
541+
height: 700px;
542+
}
543+
544+
.featured-internal-projects-container:before {
545+
height: 1200px;
546+
}
518547
}
519548

520549
@media screen and (max-width: 480px) {

0 commit comments

Comments
 (0)