Skip to content

Commit 745d05a

Browse files
QuashnockQuashnock
and
Quashnock
authored
Aaron/robots page (#55)
* Created Robots page and added lazy-loading to images to improve performance * Including default.css into commit * Added aspect ratios to images to hopefully help them load better. Also added more resolutions to choose from in Join Us, I want to experiment with how this runs. * Added more images for srcset to choose from to fuerther optimize performance. --------- Co-authored-by: Quashnock <awq@uw.edu>
1 parent a4f5c19 commit 745d05a

File tree

96 files changed

+307
-248
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+307
-248
lines changed

JoinUs.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ <h2>Want to Join Us?</h2>
8282
assets/images/photos/EngineeringTeamMember/EngineeringTeamMember-1200w.webp?width=1200 1200w,
8383
assets/images/photos/EngineeringTeamMember/EngineeringTeamMember-1920w.webp?width=1920 1920w
8484
"
85+
sizes="(max-width: 768px) 88vw, 45vw"
8586
/>
8687
<img
8788
src="assets/images/photos/EngineeringTeamMember/EngineeringTeamMember-320w.jpg"
@@ -92,7 +93,7 @@ <h2>Want to Join Us?</h2>
9293
assets/images/photos/EngineeringTeamMember/EngineeringTeamMember-1200w.jpg?width=1200 1200w,
9394
assets/images/photos/EngineeringTeamMember/EngineeringTeamMember-1920w.jpg?width=1920 1920w
9495
"
95-
sizes="(max-width: 768px) 88vw, 25vw"
96+
sizes="(max-width: 768px) 88vw, 45vw"
9697
alt="Photo of electrical engineering team member working with screws"
9798
/>
9899
</picture>
@@ -131,7 +132,7 @@ <h2>Mentoring Opportunities</h2>
131132
assets/images/photos/MentoringImage/MentoringImage-1200w.webp?width=1200 1200w,
132133
assets/images/photos/MentoringImage/MentoringImage-1920w.webp?width=1920 1920w
133134
"
134-
sizes="(max-width: 768px) 88vw, 25vw"
135+
sizes="(max-width: 768px) 88vw, 45vw"
135136
/>
136137
<img
137138
src="assets/images/photos/MentoringImage/MentoringImage-320w.jpg"
@@ -142,7 +143,7 @@ <h2>Mentoring Opportunities</h2>
142143
assets/images/photos/MentoringImage/MentoringImage-1200w.jpg?width=1200 1200w,
143144
assets/images/photos/MentoringImage/MentoringImage-1920w.jpg?width=1920 1920w
144145
"
145-
sizes="(max-width: 768px) 88vw, 30vw"
146+
sizes="(max-width: 768px) 88vw, 45vw"
146147
alt="Photo of a student mentor working with the engineering team"
147148
loading="lazy"
148149
encoding="async"

OurStory.html

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,21 +45,25 @@
4545
<source
4646
type="image/webp"
4747
srcset="
48-
assets/images/photos/MoonBackground/MoonBackground-320w.webp 320w,
49-
assets/images/photos/MoonBackground/MoonBackground-768w.webp 768w,
50-
assets/images/photos/MoonBackground/MoonBackground-1920w.webp 1920w
48+
assets/images/photos/MoonBackground/MoonBackground-320w.webp?width=320 320w,
49+
assets/images/photos/MoonBackground/MoonBackground-520w.webp?width=520 520w,
50+
assets/images/photos/MoonBackground/MoonBackground-768w.webp?width=768 768w,
51+
assets/images/photos/MoonBackground/MoonBackground-1200w.webp?width=1200 1200w,
52+
assets/images/photos/MoonBackground/MoonBackground-1920w.webp?width=1920 1920w
5153
"
5254
sizes="100vw"
5355
/>
5456
<img
55-
src="assets/images/photos/starRainBackground.jpg"
57+
src="assets/images/photos/MoonBackground/MoonBackground-320w.jpg"
5658
srcset="
57-
assets/images/photos/MoonBackground/MoonBackground-320w.jpg 320w,
58-
assets/images/photos/MoonBackground/MoonBackground-768w.jpg 768w,
59-
assets/images/photos/MoonBackground/MoonBackground-1920w.jpg 1920w
59+
assets/images/photos/MoonBackground/MoonBackground-320w.jpg?width=320 320w,
60+
assets/images/photos/MoonBackground/MoonBackground-520w.jpg?width=520 520w,
61+
assets/images/photos/MoonBackground/MoonBackground-768w.jpg?width=768 768w,
62+
assets/images/photos/MoonBackground/MoonBackground-1200w.jpg?width=1200 1200w,
63+
assets/images/photos/MoonBackground/MoonBackground-1920w.jpg?width=1920 1920w
6064
"
6165
sizes="100vw"
62-
alt="Background image of a starry night"
66+
alt="Background image of the moon"
6367
class="backgroundImage"
6468
/>
6569
</picture>

Robots.html

Lines changed: 137 additions & 75 deletions
Large diffs are not rendered by default.

Sponsor.html

Lines changed: 41 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,23 @@
4242
<source
4343
type="image/webp"
4444
srcset="
45-
assets/images/photos/starRainBackground/starRainBackground-320w.webp 320w,
46-
assets/images/photos/starRainBackground/starRainBackground-768w.webp 768w,
47-
assets/images/photos/starRainBackground/starRainBackground-1920w.webp 1920w
45+
assets/images/photos/StarRainBackground/StarRainBackground-320w.webp?width=320 320w,
46+
assets/images/photos/StarRainBackground/StarRainBackground-520w.webp?width=520 520w,
47+
assets/images/photos/StarRainBackground/StarRainBackground-768w.webp?width=768 768w,
48+
assets/images/photos/StarRainBackground/StarRainBackground-1200w.webp?width=1200 1200w,
49+
assets/images/photos/StarRainBackground/StarRainBackground-1920w.webp?width=1920 1920w
4850
"
51+
sizes="80vw"
4952
/>
5053
<img
54+
src="assets/images/photos/StarRainBackground/StarRainBackground-320w.jpg"
5155
srcset="
52-
assets/images/photos/starRainBackground/starRainBackground-320w.jpg 320w,
53-
assets/images/photos/starRainBackground/starRainBackground-768w.jpg 768w,
54-
assets/images/photos/starRainBackground/starRainBackground-1920w.jpg 1920w
56+
assets/images/photos/StarRainBackground/StarRainBackground-320w.jpg?width=320 320w,
57+
assets/images/photos/StarRainBackground/StarRainBackground-520w.jpg?width=520 520w,
58+
assets/images/photos/StarRainBackground/StarRainBackground-1200w.jpg?width=1200 1200w,
59+
assets/images/photos/StarRainBackground/starRainBackground-1920w.jpg?width=1920 1920w
5560
"
56-
sizes="100vw"
61+
sizes="80vw"
5762
alt="Background image of falling stars"
5863
/>
5964
</picture>
@@ -85,20 +90,25 @@ <h3>Why Sponsor Us?</h3>
8590
<source
8691
type="image/webp"
8792
srcset="
88-
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-320w.webp 320w,
89-
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-768w.webp 768w,
90-
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-1920w.webp 1920w
93+
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-320w.webp?width=320 320w,
94+
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-520w.webp?width=520 520w,
95+
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-768w.webp?width=768 768w,
96+
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-1200w.webp?width=1200 1200w,
97+
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-1920w.webp?width=1920 1920w
9198
"
99+
sizes="(max-width: 768px) 70vw, 30vw"
92100
/>
93101
<img
94-
src="assets/images/photos/starRainBackground.jpg"
102+
src="assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-320w.jpg"
95103
srcset="
96-
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-320w.jpg 320w,
97-
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-768w.jpg 768w,
98-
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-1920w.jpg 1920w
104+
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-320w.jpg?width=320 320w,
105+
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-520w.jpg?width=520 520w,
106+
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-768w.jpg?width=768 768w,
107+
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-1200w.jpg?width=1200 1200w,
108+
assets/images/photos/2024RoverRevealGroup/2024RoverRevealGroup-1920w.jpg?width=1920 1920w
99109
"
100-
sizes="(max-width: 768px) 90vw, 40vw"
101-
alt="Background image of falling stars"
110+
sizes="(max-width: 768px) 70vw, 30vw"
111+
alt="Group photo of the 2024 rover reveal with Viator"
102112
/>
103113
</picture>
104114
</div>
@@ -188,21 +198,26 @@ <h3>How to Support Us: Step-by-Step Guide</h3>
188198
<source
189199
type="image/webp"
190200
srcset="
191-
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-320w.webp 320w,
192-
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-768w.webp 768w,
193-
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-1920w.webp 1920w
201+
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-320w.webp?width=320 320w,
202+
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-520w.webp?width=520 520w,
203+
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-768w.webp?width=768 768w,
204+
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-1200w.webp?width=1200 1200w,
205+
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-1920w.webp?width=1920 1920w
194206
"
195-
sizes="(max-width: 768px) 90vw, 35vw"
207+
sizes="(max-width: 768px) 70vw, 20vw"
208+
196209
/>
197210
<img
198-
src="assets/images/photos/starRainBackground.jpg"
211+
src="assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-320w.jpg"
199212
srcset="
200-
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-320w.jpg 320w,
201-
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-768w.jpg 768w,
202-
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-1920w.jpg 1920w
213+
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-320w.jpg?width=320 320w,
214+
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-520w.jpg?width=520 520w,
215+
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-768w.jpg?width=768 768w,
216+
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-1200w.jpg?width=1200 1200w,
217+
assets/images/photos/ViatorStreetPhoto/ViatorStreetPhoto-1920w.jpg?width=1920 1920w
203218
"
204-
sizes="(max-width: 768px) 90vw, 35vw"
205-
alt="Background image of falling stars"
219+
sizes="(max-width: 768px) 88vw, 20vw"
220+
alt="Photo of the 2024 Viator rover"
206221
/>
207222
</picture>
208223
</div>
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
61.1 KB
35.3 KB
Binary file not shown.
122 KB
68.4 KB
Binary file not shown.
18.9 KB
12.6 KB
Binary file not shown.

assets/images/photos/Atlas/Atlas.png

-1.41 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
23.4 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
97.8 KB
Binary file not shown.
Binary file not shown.
29.2 KB
23.9 KB
Binary file not shown.
1.92 MB
70.9 KB
46.4 KB
Binary file not shown.
147 KB
89.6 KB
Binary file not shown.
22.2 KB
16.2 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
91.5 KB
69.3 KB
Binary file not shown.
196 KB
131 KB
Binary file not shown.
10.5 KB
23.3 KB
19.8 KB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

assets/scss/HomePage.css

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@ main div#starBackgroundSection section picture.imageContainer img.main {
6464
width: 100%;
6565
height: auto;
6666
border: hsl(222, 61%, 87%) 0.5em solid;
67+
aspect-ratio: 3/2;
68+
-o-object-fit: cover;
69+
object-fit: cover;
6770
}
6871
main div#introductionSection section div.imageContainer div#galleryImagesContainer picture img,
6972
main div#introductionSection section picture.imageContainer div#galleryImagesContainer picture img,
@@ -94,8 +97,8 @@ main div#introductionSection section div.imageContainer div#galleryButtonsContai
9497
main div#introductionSection section picture.imageContainer div#galleryButtonsContainer img,
9598
main div#starBackgroundSection section div.imageContainer div#galleryButtonsContainer img,
9699
main div#starBackgroundSection section picture.imageContainer div#galleryButtonsContainer img {
97-
flex-basis: 2%;
98-
aspect-ratio: 1/1;
100+
width: 2.5em;
101+
height: 2.5em;
99102
padding: 0.4em;
100103
background-color: hsl(0, 0%, 100%);
101104
opacity: 66%;
@@ -118,6 +121,7 @@ main div#starBackgroundSection section picture.imageContainer div#galleryButtons
118121
main div#introductionSection section picture#heroTrickFireLogo img,
119122
main div#starBackgroundSection section picture#heroTrickFireLogo img {
120123
border: none;
124+
aspect-ratio: 3/2;
121125
}
122126
main div#introductionSection section picture.imageContainer::before,
123127
main div#starBackgroundSection section picture.imageContainer::before {
@@ -150,7 +154,7 @@ main div#starBackgroundSection section article div#linkContainer {
150154
}
151155
main div#introductionSection section article h2,
152156
main div#starBackgroundSection section article h2 {
153-
margin-bottom: 0.5em;
157+
margin-bottom: 0.2em;
154158
}
155159
main div#introductionSection section article a.leaveSiteLink,
156160
main div#starBackgroundSection section article a.leaveSiteLink {
@@ -301,26 +305,6 @@ main div#starBackgroundSection section#teamCompetitionSection {
301305
text-align: center;
302306
padding: 0em 7vw;
303307
}
304-
main div#starBackgroundSection section#teamCompetitionSection div#awardLogoContainer {
305-
display: flex;
306-
justify-content: space-between;
307-
padding: 2em 0;
308-
}
309-
main div#starBackgroundSection section#teamCompetitionSection div#awardLogoContainer img {
310-
height: 8em;
311-
width: auto;
312-
}
313-
main div#starBackgroundSection section#teamCompetitionSection::before {
314-
background-color: rgb(0, 255, 0);
315-
width: 100%;
316-
height: 45%;
317-
content: "";
318-
position: absolute;
319-
top: 20%;
320-
left: 0;
321-
border-radius: 50%;
322-
filter: blur(20em);
323-
}
324308

325309
@media only screen and (max-width: 768px) {
326310
main div#introductionSection,
@@ -379,18 +363,6 @@ main div#starBackgroundSection section#teamCompetitionSection::before {
379363
main div#starBackgroundSection section.reversed {
380364
flex-direction: column;
381365
}
382-
main div#introductionSection section#teamCompetitionSection,
383-
main div#starBackgroundSection section#teamCompetitionSection {
384-
flex-direction: column !important;
385-
}
386-
main div#introductionSection section#teamCompetitionSection div#awardLogoContainer,
387-
main div#starBackgroundSection section#teamCompetitionSection div#awardLogoContainer {
388-
gap: 4em;
389-
flex-direction: column;
390-
padding: 0 6vw;
391-
padding-top: 1.5em;
392-
align-items: center;
393-
}
394366
main section#missionSection {
395367
background-color: black;
396368
overflow-y: visible;

assets/scss/HomePage.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)