Added mobile hero image
This commit is contained in:
parent
3c9bc21db7
commit
129a6b4b19
BIN
public/assets/home-illustration-small.webp
Normal file
BIN
public/assets/home-illustration-small.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
@ -14,7 +14,10 @@ const permalink = Astro.site.href;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="hero-image-container">
|
<div class="hero-image-container">
|
||||||
<!-- <img class="hero-image" alt="Illustration of person reading a book" src="/assets/home-illustration.webp" width="550" height="466"> -->
|
<picture>
|
||||||
|
<source srcset="/assets/home-illustration.webp" media="(min-width: 600px)">
|
||||||
|
<img class="hero-image" alt="Illustration of person reading a book" src="/assets/home-illustration-small.webp" width="550" height="466">
|
||||||
|
</picture>
|
||||||
<p class="caption">
|
<p class="caption">
|
||||||
Illustration by
|
Illustration by
|
||||||
<a href="https://icons8.com/illustrations/author/5c07e68d82bcbc0092519bb6" target="_blank" rel="noopener">Icons 8</a>
|
<a href="https://icons8.com/illustrations/author/5c07e68d82bcbc0092519bb6" target="_blank" rel="noopener">Icons 8</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user