forked from Princeton-CDH/cdh-web
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #101 from springload/feature/streamfield-wrappers-…
…and-featured-tile-style Streamfield wrapper overhaul and featured tiles style
- Loading branch information
Showing
32 changed files
with
363 additions
and
320 deletions.
There are no files selected for viewing
43 changes: 23 additions & 20 deletions
43
cdhweb/pages/templates/cdhpages/blocks/feature_block.html
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,25 +1,28 @@ | ||
{% load wagtailcore_tags wagtailimages_tags %} | ||
{% image self.image width-400 as img_base %} | ||
<div class="feature"> | ||
<div class="feature__text-content"> | ||
<h2>{{ self.heading }}</h2> | ||
{{ self.feature_text|richtext }} | ||
{% if self.cta_buttons %} | ||
{% include_block self.cta_buttons %} | ||
{% endif %} | ||
</div> | ||
|
||
{% image self.image width-750 as img_base %} | ||
{% image self.image width-1200 as img_sm %} | ||
{% image self.image width-1400 as img_md %} | ||
<div class="block block--feature"> | ||
<div class="feature"> | ||
<div class="feature__text-content"> | ||
<h2>{{ self.heading }}</h2> | ||
{{ self.feature_text|richtext }} | ||
{% if self.cta_buttons %} | ||
{% include_block self.cta_buttons %} | ||
{% endif %} | ||
</div> | ||
|
||
<picture class="feature__img"> | ||
<source srcset="{{ img_sm.url }}" media="(min-width: 500px)"> | ||
<source srcset="{{ img_md.url }}" media="(min-width: 768px)"> | ||
<img | ||
src="{{ img_base.url }}" | ||
alt="{{ self.alt_text|default:img_base.alt }}" | ||
loading="lazy" | ||
/> | ||
</picture> | ||
{% image self.image width-750 as img_base %} | ||
{% image self.image width-1200 as img_sm %} | ||
{% image self.image width-1400 as img_md %} | ||
|
||
<picture class="feature__img"> | ||
<source srcset="{{ img_sm.url }}" media="(min-width: 500px)"> | ||
<source srcset="{{ img_md.url }}" media="(min-width: 768px)"> | ||
<img | ||
src="{{ img_base.url }}" | ||
alt="{{ self.alt_text|default:img_base.alt }}" | ||
loading="lazy" | ||
/> | ||
</picture> | ||
</div> | ||
</div> |
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
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,2 +1,4 @@ | ||
{% load wagtailcore_tags %} | ||
{{ self | richtext }} | ||
<div class="block block--paragraph"> | ||
{{ self | richtext }} | ||
</div> |
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
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
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
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
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
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
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
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
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
Oops, something went wrong.