Skip to content

Commit

Permalink
feat: Add art directed red panda
Browse files Browse the repository at this point in the history
It serves the small portrait panda image if viewport is 600px wide or
less, and the large landscape image otherwise.
  • Loading branch information
J-JD committed Jul 24, 2021
1 parent a948f9f commit 0c97718
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,16 @@ <h2>Rocking the free web</h2>
</div>

<div class="red-panda">
<!-- insert picture element -->
<picture>
<source
media="(max-width: 550px)"
srcset="images/red-panda-portrait600_tinified.jpg"
/>
<img
src="images/red-panda1200_tinified.jpg"
alt="Large portrait red-panda image"
/>
</picture>
</div>
</main>
</body>
Expand Down

0 comments on commit 0c97718

Please sign in to comment.