make reel vs masthead configurable

This commit is contained in:
Yannik Schmidt
2021-07-27 14:58:24 +02:00
parent 6671c1cd6b
commit 12d2c91e16
2 changed files with 17 additions and 20 deletions

View File

@@ -71,8 +71,8 @@ h1{
} }
.masthead { .masthead {
/*height: 50vh; */ height: 50vh;
/* min-height: 250px; */ min-height: 250px;
background-size: cover; background-size: cover;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;

View File

@@ -18,11 +18,24 @@
{% include 'navbar.html' %} {% include 'navbar.html' %}
<!-- Site wellcome header style="background-color: #312a2a;" --> <!-- Site wellcome header style="background-color: #312a2a;" -->
<!-- {% if "WALLPAPER_REEL" not in conf or not conf["WALLPAPER_REEL"] %}
<header class="masthead {% if conf['NO_CENTER_TITLE'] %} {% endif %}" <header class="masthead {% if conf['NO_CENTER_TITLE'] %} {% endif %}"
{% if conf['WALLPAPER_URL'] %} realsrc='{{ conf["WALLPAPER_URL"] }}' {% endif %} {% if conf['WALLPAPER_URL'] %} realsrc='{{ conf["WALLPAPER_URL"] }}' {% endif %}
style="background-image: url('{{ conf["WALLPAPER_URL"] }}');"> style="background-image: url('{{ conf["WALLPAPER_URL"] }}');">
--> <div class="{% if conf['NO_CENTER_TITLE'] %} pb-4 pl-2 pr-2 {% else %} container {% endif %}
{% if conf['WALLPAPER_URL'] %} h-50 {% endif %}">
<div class="row h-100 align-items-center">
<div class="col-12 {% if not conf['NO_CENTER_TITLE'] %} text-center {% endif %}">
<div style="opacity: 0;"></div>
{% if "SITE_WELLCOME_TITLE" in conf %} <h1 class="pt-4 font-weight-light" style="{{ conf['SITE_WELLCOME_TITLE_CSS'] | safe }}">{{ conf["SITE_WELLCOME_TITLE"] | safe }}</h1> {% endif %}
{% if "SITE_WELLCOME_SUBTITLE" in conf %} <p class="pt-4 title-responsive font-weight-light" style="{{ conf['SITE_WELLCOME_TITLE_CSS'] | safe }}">{{ conf["SITE_WELLCOME_SUBTITLE"] | safe }}</p> {% endif %}
</div>
</div>
</div>
</header>
{% else %}
<div id="carouselIndicators" class="carousel slide" data-ride="carousel"> <div id="carouselIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators"> <ol class="carousel-indicators">
@@ -51,22 +64,6 @@
</a> </a>
</div> </div>
<!--
<div class="{% if conf['NO_CENTER_TITLE'] %} pb-4 pl-2 pr-2 {% else %} container {% endif %}
{% if conf['WALLPAPER_URL'] %} h-50 {% endif %}">
<div class="row h-100 align-items-center">
<div class="col-12 {% if not conf['NO_CENTER_TITLE'] %} text-center {% endif %}">
<div style="opacity: 0;"></div>
{% if "SITE_WELLCOME_TITLE" in conf %} <h1 class="pt-4 font-weight-light" style="{{ conf['SITE_WELLCOME_TITLE_CSS'] | safe }}">{{ conf["SITE_WELLCOME_TITLE"] | safe }}</h1> {% endif %}
{% if "SITE_WELLCOME_SUBTITLE" in conf %} <p class="pt-4 title-responsive font-weight-light" style="{{ conf['SITE_WELLCOME_TITLE_CSS'] | safe }}">{{ conf["SITE_WELLCOME_SUBTITLE"] | safe }}</p> {% endif %}
</div>
</div>
</div>
</header>
-->
<!-- events --> <!-- events -->
{% include 'events.html' %} {% include 'events.html' %}