Make hero image of KotOR shrine responsive

This commit is contained in:
Leilukin 2024-04-20 12:48:53 +08:00 committed by Helen Chong
parent 17fa139b64
commit 521c8a1589
2 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,10 @@
{% extends "global/hero.njk" %} {% extends "global/hero.njk" %}
{% block heroImg %} {% block heroImg %}
<img src="/assets/starwarskotor/images/swkotor-header.jpg" alt="Banner of Star Wars: Knights of the Old Republic Shrine"> <picture>
<source srcset="/assets/starwarskotor/images/swkotor-header-320.png" media="(orientation: landscape)" />
<img src="/assets/starwarskotor/images/swkotor-header.jpg" alt="anner of Star Wars: Knights of the Old Republic Shrine" />
</picture>
{% endblock %} {% endblock %}
{% block eventScript %} {% block eventScript %}

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 KiB