Make hero image of KotOR shrine responsive

This commit is contained in:
Helen Chong 2024-04-20 12:48:53 +08:00
parent 11223e8fc4
commit 306cf6fb05
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