-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a273d9b
commit 3a12a9b
Showing
5 changed files
with
35 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{% set img_path = img_path|default("./images/styleguide/people/avatar-") %} | ||
{% set avatar_path = avatar_path|default("./images/styleguide/people/avatar-") %} | ||
<picture> | ||
<source | ||
media="(min-width: 1140px)" | ||
srcset="{{img_path}}120x120.jpg 1x, {{img_path}}256x256.jpg 2x"> | ||
srcset="{{avatar_path}}120x120.jpg 1x, {{avatar_path}}256x256.jpg 2x"> | ||
<source | ||
media="(min-width: 960px)" | ||
srcset="{{img_path}}95x95.jpg 1x, {{img_path}}180x180.jpg 2x"> | ||
srcset="{{avatar_path}}95x95.jpg 1x, {{avatar_path}}180x180.jpg 2x"> | ||
<source | ||
media="(min-width: 720px)" | ||
srcset="{{img_path}}80x80.jpg 1x, {{img_path}}160x160.jpg 2x"> | ||
srcset="{{avatar_path}}80x80.jpg 1x, {{avatar_path}}160x160.jpg 2x"> | ||
<source | ||
media="(min-width: 541px)" | ||
srcset="{{img_path}}60x60.jpg 1x, {{img_path}}120x120.jpg 2x"> | ||
srcset="{{avatar_path}}60x60.jpg 1x, {{avatar_path}}120x120.jpg 2x"> | ||
<source | ||
media="(max-width: 540px)" | ||
srcset="{{img_path}}95x95.jpg 1x, {{img_path}}180x180.jpg 2x"> | ||
<img src="{{img_path}}120x120.jpg" class="img-fluid rounded-circle" alt="ALT"> | ||
srcset="{{avatar_path}}95x95.jpg 1x, {{avatar_path}}180x180.jpg 2x"> | ||
<img src="{{avatar_path}}120x120.jpg" class="img-fluid rounded-circle" alt="ALT"> | ||
</picture> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{% set img_path = img_path|default("./images/styleguide/teaser/news-teaser-") %} | ||
{% set cover_path = cover_path|default("./images/styleguide/teaser/news-teaser-") %} | ||
<picture> | ||
<source | ||
media="(min-width: 1140px)" | ||
srcset="{{img_path}}1920x1080.jpg 1x,{{img_path}}2240x1260.jpg 2x"> | ||
srcset="{{cover_path}}1920x1080.jpg 1x,{{cover_path}}2240x1260.jpg 2x"> | ||
<source | ||
media="(min-width: 960px)" | ||
srcset="{{img_path}}1140x641.jpg 1x,{{img_path}}2240x1260.jpg 2x"> | ||
srcset="{{cover_path}}1140x641.jpg 1x,{{cover_path}}2240x1260.jpg 2x"> | ||
<source | ||
media="(min-width: 720px)" | ||
srcset="{{img_path}}928x520.jpg 1x,{{img_path}}1920x1080.jpg 2x"> | ||
srcset="{{cover_path}}928x520.jpg 1x,{{cover_path}}1920x1080.jpg 2x"> | ||
<source | ||
media="(min-width: 541px)" | ||
srcset="{{img_path}}768x432.jpg 1x,{{img_path}}1440x810.jpg 2x"> | ||
srcset="{{cover_path}}768x432.jpg 1x,{{cover_path}}1440x810.jpg 2x"> | ||
<source | ||
media="(max-width: 540px)" | ||
srcset="{{img_path}}576x324.jpg 1x,{{img_path}}1080x608.jpg 2x"> | ||
<img src="{{img_path}}1920x1080.jpg" class="img-fluid" alt="Cover description"> | ||
srcset="{{cover_path}}576x324.jpg 1x,{{cover_path}}1080x608.jpg 2x"> | ||
<img src="{{cover_path}}1920x1080.jpg" class="img-fluid" alt="Cover description"> | ||
</picture> |
14 changes: 7 additions & 7 deletions
14
assets/components/atoms/picture/picture-fullwidth-teaser.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{% set img_path = img_path|default("./images/styleguide/teaser/news-teaser-") %} | ||
{% set cover_path = cover_path|default("./images/styleguide/teaser/news-teaser-") %} | ||
<picture> | ||
<source | ||
media="(min-width: 1920px)" | ||
srcset="{{img_path}}1920x1080.jpg 1x, {{img_path}}2240x1260.jpg 2x"> | ||
srcset="{{cover_path}}1920x1080.jpg 1x, {{cover_path}}2240x1260.jpg 2x"> | ||
<source | ||
media="(min-width: 1366px)" | ||
srcset="{{img_path}}1440x810.jpg 1x, {{img_path}}1920x1080.jpg 2x"> | ||
srcset="{{cover_path}}1440x810.jpg 1x, {{cover_path}}1920x1080.jpg 2x"> | ||
<source | ||
media="(min-width: 1200px)" | ||
srcset="{{img_path}}1294x728.jpg 1x, {{img_path}}1600x900.jpg 2x"> | ||
srcset="{{cover_path}}1294x728.jpg 1x, {{cover_path}}1600x900.jpg 2x"> | ||
<source | ||
media="(min-width: 576px)" | ||
srcset="{{img_path}}768x432.jpg 1x, {{img_path}}1440x810.jpg 2x"> | ||
srcset="{{cover_path}}768x432.jpg 1x, {{cover_path}}1440x810.jpg 2x"> | ||
<source | ||
media="(max-width: 575px)" | ||
srcset="{{img_path}}576x324.jpg 1x, {{img_path}}1140x641.jpg 2x"> | ||
<img src="{{img_path}}1440x810.jpg" class="img-fluid" alt="image description"> | ||
srcset="{{cover_path}}576x324.jpg 1x, {{cover_path}}1140x641.jpg 2x"> | ||
<img src="{{cover_path}}1440x810.jpg" class="img-fluid" alt="image description"> | ||
</picture> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{% set img_path = img_path|default("./images/styleguide/people/portrait-") %} | ||
{% set portrait_path = portrait_path|default("./images/styleguide/people/portrait-") %} | ||
<picture> | ||
<source | ||
media="(min-width: 1140px)" | ||
srcset="{{img_path}}253x360.jpg 1x, {{img_path}}506x720.jpg 2x"> | ||
srcset="{{portrait_path}}253x360.jpg 1x, {{portrait_path}}506x720.jpg 2x"> | ||
<source | ||
media="(min-width: 960px)" | ||
srcset="{{img_path}}211x300.jpg 1x, {{img_path}}422x600.jpg 2x"> | ||
srcset="{{portrait_path}}211x300.jpg 1x, {{portrait_path}}422x600.jpg 2x"> | ||
<source | ||
media="(min-width: 720px)" | ||
srcset="{{img_path}}253x360.jpg 1x, {{img_path}}506x720.jpg 2x"> | ||
srcset="{{portrait_path}}253x360.jpg 1x, {{portrait_path}}506x720.jpg 2x"> | ||
<source | ||
media="(min-width: 541px)" | ||
srcset="{{img_path}}253x360.jpg 1x, {{img_path}}506x720.jpg 2x"> | ||
srcset="{{portrait_path}}253x360.jpg 1x, {{portrait_path}}506x720.jpg 2x"> | ||
<source | ||
media="(max-width: 540px)" | ||
srcset="{{img_path}}211x300.jpg 1x, {{img_path}}422x600.jpg 2x"> | ||
<img src="{{img_path}}506x720.jpg" class="img-fluid" alt="ALT"> | ||
srcset="{{portrait_path}}211x300.jpg 1x, {{portrait_path}}422x600.jpg 2x"> | ||
<img src="{{portrait_path}}506x720.jpg" class="img-fluid" alt="ALT"> | ||
</picture> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
{% set img_path = img_path|default("./images/styleguide/news-thumbs/news_thumb-") %} | ||
{% set thumb_path = thumb_path|default("./images/styleguide/news-thumbs/news_thumb-") %} | ||
<picture> | ||
<source | ||
media="(min-width: 1140px)" | ||
srcset="{{img_path}}95x95.jpg 1x, {{img_path}}240x240.jpg 2x"> | ||
srcset="{{thumb_path}}95x95.jpg 1x, {{thumb_path}}240x240.jpg 2x"> | ||
<source | ||
media="(min-width: 960px)" | ||
srcset="{{img_path}}120x120.jpg 1x, {{img_path}}240x240.jpg 2x"> | ||
srcset="{{thumb_path}}120x120.jpg 1x, {{thumb_path}}240x240.jpg 2x"> | ||
<source | ||
media="(min-width: 720px)" | ||
srcset="{{img_path}}80x80.jpg 1x, {{img_path}}160x160.jpg 2x"> | ||
srcset="{{thumb_path}}80x80.jpg 1x, {{thumb_path}}160x160.jpg 2x"> | ||
<source | ||
media="(min-width: 541px)" | ||
srcset="{{img_path}}120x120.jpg 1x, {{img_path}}240x240.jpg 2x"> | ||
srcset="{{thumb_path}}120x120.jpg 1x, {{thumb_path}}240x240.jpg 2x"> | ||
<source | ||
media="(max-width: 540px)" | ||
srcset="{{img_path}}540x540.jpg 1x, {{img_path}}1080x1080.jpg 2x"> | ||
<img src="{{img_path}}120x120.jpg" class="img-fluid" alt="ALT"> | ||
srcset="{{thumb_path}}540x540.jpg 1x, {{thumb_path}}1080x1080.jpg 2x"> | ||
<img src="{{thumb_path}}120x120.jpg" class="img-fluid" alt="ALT"> | ||
</picture> |