Skip to content

Commit

Permalink
[CHORE] Make the main page images bigger on mobile (hedyorg#3897)
Browse files Browse the repository at this point in the history
**How to test**

Use responsive design mode in Safari to set the screen width to an iPhone 8.
  • Loading branch information
rix0rrr authored Jan 2, 2023
1 parent 9fcd735 commit 3f91449
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion static/css/generated.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions templates/main-page.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ <h2 class="py-0 my-0 font-sans font-light text-black tracking-wide">{{_('main_su
</div>
{# image for small screens #}
<div class="md:hidden flex-none">
<img class="drop-shadow-lg" src="images/hero-graphic.png">
<img src="images/hero-graphic.png">
</div>
</div>
</div>
Expand All @@ -29,7 +29,7 @@ <h2 class="font-bold">{{ section['title'] }}</h2>
</div>
{% elif section['style'] == 'pane-with-image-left' %}
<div class="copy-container-wide px-4 md:px-16 flex flex-col items-center md:flex-row justify-between gap-6">
<img src="{{static(section['image'])}}" class="w-2/5">
<img src="{{static(section['image'])}}" class="w-4/5 md:w-2/5">
<div class="column-pane px-8 py-4 md:w-3/5">
<h3>{{ section['title'] }}</h3>
<p>{{ section['text']|commonmark }}</p>
Expand All @@ -41,7 +41,7 @@ <h3>{{ section['title'] }}</h3>
<h3>{{ section['title'] }}</h3>
<p>{{ section['text']|commonmark }}</p>
</div>
<img src="{{static(section['image'])}}" class="w-2/5">
<img src="{{static(section['image'])}}" class="w-4/5 md:w-2/5">
</div>
{% elif section['style'] == 'columns' %}
<div class="copy-container columns px-4 md:px-16 flex flex-col md:flex-row justify-between gap-6">
Expand Down

0 comments on commit 3f91449

Please sign in to comment.