| 1 |
--- |
| 2 |
import {Image} from 'astro:assets'; |
| 3 |
import adsTop from '../assets/img/easter-eggs/ads-top.png'; |
| 4 |
import adsBottom from '../assets/img/easter-eggs/ads-bottom.png'; |
| 5 |
import shutUpWarren from '../assets/img/easter-eggs/shut-up-warren.png'; |
| 6 |
import katakana from '../assets/img/easter-eggs/katakana.png'; |
| 7 |
import horse from '../assets/img/easter-eggs/horse.png'; |
| 8 |
--- |
| 9 |
|
| 10 |
<aside id="easter-eggs" hidden aria-label="Easter egg content"> |
| 11 |
<!-- Ads (?ads=true) --> |
| 12 |
<figure class="ads-top" _="init if window.location.search contains '?ads=true' put me before #hero-logo"> |
| 13 |
<a href="https://swag.htmx.org"> |
| 14 |
<Image src={adsTop} |
| 15 |
alt="Retro advertisement: MacMall PowerBooks as low as 1999$! Call 888-932-1569. Get your FREE 64MB RAM with your PowerBook!" |
| 16 |
loading="lazy"/> |
| 17 |
</a> |
| 18 |
</figure> |
| 19 |
<figure class="ads-bottom" _="init if window.location.search contains '?ads=true' put me after #hero-logo"> |
| 20 |
<a href="https://swag.htmx.org"> |
| 21 |
<Image src={adsBottom} |
| 22 |
alt="Retro advertisement: Get Flash! FREE Microsoft Internet Explorer! Netscape Now! (3.0) Site created with Microsoft® FrontPage™. Powered by Microsoft BackOffice." |
| 23 |
loading="lazy"/> |
| 24 |
</a> |
| 25 |
</figure> |
| 26 |
|
| 27 |
<!-- Shut up warren (?wuw=true) --> |
| 28 |
<figure _="init if window.location.search contains '?wuw=true' put me into #hero-logo"> |
| 29 |
<a href="https://swag.htmx.org/products/shut-up-warren-tee"> |
| 30 |
<Image src={shutUpWarren} alt="shut up warren ⁺₊✦ uwu" loading="lazy"/> |
| 31 |
</a> |
| 32 |
</figure> |
| 33 |
|
| 34 |
<!-- katakana (?uwu=true) --> |
| 35 |
<figure _="init if window.location.search contains '?uwu=true' put me into #hero-logo"> |
| 36 |
<a href="https://swag.htmx.org/products/htmx-katakana-shirt"> |
| 37 |
<Image src={katakana} alt="htmx in katakana: エイチティーエムエックス uwu" loading="lazy"/> |
| 38 |
</a> |
| 39 |
</figure> |
| 40 |
|
| 41 |
<!-- horse (?horse=true) --> |
| 42 |
<figure _="init if window.location.search contains '?horse=true' put me after #hero-logo"> |
| 43 |
<a href="https://swag.htmx.org"> |
| 44 |
<Image src={horse} alt="Retro computer horse graphic" |
| 45 |
class="horse-img" |
| 46 |
loading="lazy"/> |
| 47 |
</a> |
| 48 |
</figure> |
| 49 |
</aside> |
| 50 |
|
| 51 |
<style> |
| 52 |
figure :global(img) { margin-inline: auto; } |
| 53 |
.ads-top { margin-bottom: 3rem; } |
| 54 |
.ads-bottom { margin-top: 4rem; } |
| 55 |
|
| 56 |
.horse-img { |
| 57 |
position: absolute; |
| 58 |
right: 50%; |
| 59 |
top: 100%; |
| 60 |
transform: translateX(60%) translateY(-75%); |
| 61 |
opacity: 0.5; |
| 62 |
mask-size: 100% max(1.5px, 0.02em); |
| 63 |
mask-image: linear-gradient(to bottom, transparent 0%, black 12.5%); |
| 64 |
|
| 65 |
@media (min-width: 640px) { transform: translateX(75%) translateY(-75%); } |
| 66 |
@media (min-width: 768px) { transform: translateX(85%) translateY(-75%); } |
| 67 |
@media (min-width: 1024px) { transform: translateX(100%) translateY(-75%); } |
| 68 |
@media (prefers-color-scheme: dark) { |
| 69 |
mask-image: linear-gradient(to bottom, transparent 0%, black 17.5%); |
| 70 |
} |
| 71 |
} |
| 72 |
</style> |