Skip to content
Snippets Groups Projects
Commit fbc31afd authored by Tomáš Valenta's avatar Tomáš Valenta
Browse files

fix colors, section backgrounds

parent f363859c
Branches
No related tags found
2 merge requests!836Release,!834Fix import DB inconsistency, improve donation homepage style
Pipeline #15106 passed
...@@ -1215,6 +1215,10 @@ img.full-width { ...@@ -1215,6 +1215,10 @@ img.full-width {
margin-left: 1.5rem; margin-left: 1.5rem;
} }
.text-grey-200 {
color: #adadad;
}
/* BEGIN TailwindCSS-based image formatting */ /* BEGIN TailwindCSS-based image formatting */
.mx-auto { .mx-auto {
......
{% load static wagtailimages_tags wagtailcore_tags donate_tags %} {% load static wagtailimages_tags wagtailcore_tags donate_tags %}
<section class="section--{% get_section_kind %} section--custom" id="custom">
<div class="container"> <div class="container">
<h2 class="lead page-subheading mb-4">{{ self.title }}</h2> <h2 class="lead page-subheading mb-4">{{ self.title }}</h2>
<div class="mb-4 clearfix"> <div class="mb-4 clearfix">
...@@ -8,4 +7,3 @@ ...@@ -8,4 +7,3 @@
</div> </div>
<a href="{{ self.link }}" class="btn btn-dark btn-lg my-2">Chci vědět více <i class="icon-chevron-right ml-2"></i></a> <a href="{{ self.link }}" class="btn btn-dark btn-lg my-2">Chci vědět více <i class="icon-chevron-right ml-2"></i></a>
</div> </div>
</div>
{% load static wagtailimages_tags wagtailcore_tags donate_tags %} {% load static wagtailimages_tags wagtailcore_tags donate_tags %}
<section class="section--{% get_section_kind %}" id="kraje"> <div class="container" id="kraje">
<div class="container">
<h2 class="lead page-subheading mb-4">{{ self.heading }}</h2> <h2 class="lead page-subheading mb-4">{{ self.heading }}</h2>
<p class="mb-4">{{ self.description|richtext }}</p> <p class="mb-4">{{ self.description|richtext }}</p>
<div class="row mb-4"> <div class="row mb-4">
...@@ -11,4 +10,3 @@ ...@@ -11,4 +10,3 @@
</div> <!-- /row --> </div> <!-- /row -->
</div> <!-- /container --> </div> <!-- /container -->
</section>
{% load static wagtailimages_tags wagtailcore_tags donate_tags %} {% load static wagtailimages_tags wagtailcore_tags donate_tags %}
{% if page.show_donate_form %} {% if page.show_donate_form %}
<section class="section--{% get_section_kind %}" id="strana"> <div class="container" id="strana">
<div class="container">
<h2 class="lead page-subheading mb-4">{{ self.heading }}</h2> <h2 class="lead page-subheading mb-4">{{ self.heading }}</h2>
<p class="mb-4">{{ self.description|richtext }}</p> <p class="mb-4">{{ self.description|richtext }}</p>
<div class="donate-form"> <div class="donate-form">
...@@ -60,5 +59,4 @@ ...@@ -60,5 +59,4 @@
</div><!-- /donate-form__right --> </div><!-- /donate-form__right -->
</div><!-- /donate-form --> </div><!-- /donate-form -->
</div> <!-- /container --> </div> <!-- /container -->
</section>
{% endif %} {% endif %}
{% load static wagtailimages_tags wagtailcore_tags donate_tags %} {% load static wagtailimages_tags wagtailcore_tags donate_tags %}
{% if self.page.projects|length != 0 %} <div class="container" id="projekty-{{ self.page.id }}">
<section class="section--{% get_section_kind %}" id="projekty-{{ self.page.id }}">
<div class="container">
<h2 class="lead page-subheading mb-4">{{ self.page.support_heading }}</h2> <h2 class="lead page-subheading mb-4">{{ self.page.support_heading }}</h2>
<p class="mb-4">{{ self.page.support_description|richtext }}</p> <p class="mb-4">{{ self.page.support_description|richtext }}</p>
<div class="row projects mb-4"> <div class="row projects mb-4">
{% if self.page.projects|length != 0 %}
{% for project in self.page.projects %} {% for project in self.page.projects %}
{% include "donate/project_snippet.html" %} {% include "donate/project_snippet.html" %}
{% endfor %} {% endfor %}
{% else %}
<span class="text-grey-200 ml-3">Žádné aktuální projekty.</span>
{% endif %}
</div> <!-- /row --> </div> <!-- /row -->
{% if self.page.projects|length != 0 %}
<a href="{{ self.page.url }}" class="btn btn-dark btn-lg my-2">Všechny projekty a kampaně <i class="icon-chevron-right ml-2"></i></a> <a href="{{ self.page.url }}" class="btn btn-dark btn-lg my-2">Všechny projekty a kampaně <i class="icon-chevron-right ml-2"></i></a>
</div> <!-- /container -->
</section>
{% endif %} {% endif %}
</div> <!-- /container -->
...@@ -38,7 +38,9 @@ ...@@ -38,7 +38,9 @@
</section> </section>
{% for block in page.content_blocks %} {% for block in page.content_blocks %}
<section class="section--{% get_section_kind %}">
{% include_block block %} {% include_block block %}
</section>
{% endfor %} {% endfor %}
</main> </main>
<!-- /CONTENT --> <!-- /CONTENT -->
......
...@@ -9,4 +9,5 @@ def get_section_kind(context): ...@@ -9,4 +9,5 @@ def get_section_kind(context):
context["current_section"] = "alternate" context["current_section"] = "alternate"
else: else:
context["current_section"] = "primary" context["current_section"] = "primary"
return context["current_section"] return context["current_section"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment