Skip to content

Commit

Permalink
Fix image path for question
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle committed Jan 10, 2025
1 parent ede07a7 commit b9d33ca
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions assets/components/atoms/picture/picture-question.twig
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{% set img_path = img_path|default("./images/styleguide/homepage/7-science-question/science-question-") %}
{% set img_question = img_question|default("./images/styleguide/homepage/7-science-question/science-question-") %}
<picture>
<source
media="(min-width: 1140px)"
srcset="{{img_path}}540x304.jpg 1x, {{img_path}}1080x608.jpg 2x">
srcset="{{img_question}}540x304.jpg 1x, {{img_question}}1080x608.jpg 2x">
<source
media="(min-width: 960px)"
srcset="{{img_path}}960x540.jpg 1x, {{img_path}}1440x810.jpg 2x">
srcset="{{img_question}}960x540.jpg 1x, {{img_question}}1440x810.jpg 2x">
<source
media="(min-width: 720px)"
srcset="{{img_path}}720x405.jpg 1x, {{img_path}}1080x608.jpg 2x">
srcset="{{img_question}}720x405.jpg 1x, {{img_question}}1080x608.jpg 2x">
<source
media="(min-width: 541px)"
srcset="{{img_path}}540x304.jpg 1x, {{img_path}}1080x608.jpg 2x">
srcset="{{img_question}}540x304.jpg 1x, {{img_question}}1080x608.jpg 2x">
<source
media="(max-width: 540px)"
srcset="{{img_path}}540x304.jpg 1x, {{img_path}}1080x608.jpg 2x">
<img src="{{img_path}}720x405.jpg" class="img-fluid" alt="ALT">
srcset="{{img_question}}540x304.jpg 1x, {{img_question}}1080x608.jpg 2x">
<img src="{{img_question}}720x405.jpg" class="img-fluid" alt="ALT">
</picture>

0 comments on commit b9d33ca

Please sign in to comment.