Skip to content

Commit

Permalink
add dark quote block template
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-lawton committed Dec 14, 2023
1 parent 0af1ee0 commit ece8ce3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{% load wagtailcore_tags wagtailimages_tags %}

{% block block_content %}
<div class="tw-py-16 tw-bg-black tw-dark">
<div class="tw-container">
<div class="tw-row tw-justify-center">
<blockquote class="feature-quote">
<div class="tw-quote tw-px-2 [&_p]:tw-h2-heading">
{{ self.quote|richtext }}
</div>
<cite class="tw-text-gray-40 tw-h6-heading tw-max-w-4xl">{{ self.cite }}</cite>
</blockquote>
</div>
</div>
</div>
{% endblock block_content %}
4 changes: 4 additions & 0 deletions source/sass/wagtail/blocks/feature-quote.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
content: "";
display: block;
margin: 0 auto 10px;

@at-root .tw-dark & {
opacity: 0.3;
}
}

.quote-content .rich-text {
Expand Down

0 comments on commit ece8ce3

Please sign in to comment.