Skip to content

Commit

Permalink
feat: Add responsive images to the further info links
Browse files Browse the repository at this point in the history
Using the resolution switching problem approach
  • Loading branch information
J-JD committed Jul 13, 2021
1 parent cea6d47 commit 2d05148
Showing 1 changed file with 31 additions and 4 deletions.
35 changes: 31 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,43 @@ <h2>Rocking the free web</h2>
<div class="further-info">
<!-- insert images with srcsets and sizes -->
<a href="https://www.mozilla.org/en-US/firefox/new/">
<img />
<img
srcset="
images/firefox_logo-only_RGB120_tinified.png 120w,
images/firefox_logo-only_RGB400_tinified.png 400w
"
sizes="(max-width: 500px) 120px,
400px"
src="images/firefox_logo-only_RGB400_tinified.png"
alt="Firefox logo"
/>
</a>
<a href="https://www.mozilla.org/">
<img />
<img
srcset="
images/mozilla-dinosaur-head120_tinified.png 120w,
images/mozilla-dinosaur-head400_tinified.png 400w
"
sizes="(max-width: 500px) 120px,
400px"
src="images/mozilla-dinosaur-head400_tinified.png"
alt="Mozilla dinosaur head"
/>
</a>
<a href="https://addons.mozilla.org/">
<img />
<img
srcset="
images/firefox-addons120_tinified.jpg 120w,
images/firefox-addons400_tinified.jpg 400w
"
sizes="(max-width: 500px) 120px,
400px"
src="images/firefox-addons400_tinified.jpg"
alt="Firefox addons"
/>
</a>
<a href="https://developer.mozilla.org/en-US/">
<img />
<img src="images/mdn.svg" alt="Developer Mozilla logo" />
</a>
<div class="clearfix"></div>
</div>
Expand Down

0 comments on commit 2d05148

Please sign in to comment.