allow multiple title/wallpaper styles

This commit is contained in:
Yannik Schmidt
2020-09-07 18:09:55 +02:00
parent ac9665defb
commit 8e59ad4fcb
3 changed files with 15 additions and 7 deletions

View File

@@ -17,14 +17,17 @@
{% include 'navbar.html' %}
<!-- Site wellcome header -->
<header class="masthead" realsrc='{{ conf["WALLPAPER_URL"] }}'>
<div class="container h-50">
<header class="masthead {% if conf['NO_CENTER_TITLE'] %} h-50 {% endif %}"
style="background-color: #312a2a;"
{% if conf['WALLPAPER_URL'] %} realsrc='{{ conf["WALLPAPER_URL"] }}' {% endif %}>
<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 text-center">
<div class="col-12 {% if not conf['NO_CENTER_TITLE'] %} text-center {% endif %}">
<div style="opacity: 0;"></div> <!-- TODO color for text configurable -->
<div class="mt-5" style="opacity: 0;"></div>
{% if "SITE_WELLCOME_TITLE" in conf %} <h1 class="font-weight-light">{{ conf["SITE_WELLCOME_TITLE"] }}</h1> {% endif %}
{% if "SITE_WELLCOME_SUBTITLE" in conf %} <p class="lead">{{ conf["SITE_WELLCOME_SUBTITLE"] }}</p> {% endif %}
{% if "SITE_WELLCOME_TITLE" in conf %} <h1 class="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="lead">{{ conf["SITE_WELLCOME_SUBTITLE"] | safe }}</p> {% endif %}
</div>
</div>
</div>
@@ -34,7 +37,7 @@
{% include 'events.html' %}
<!-- picture links -->
{% if mainLinks %}
{% if mainLinks and not conf["DISABLE_MAIN_LINKS"] %}
<div class="bg-dark pt-5">
<div class="container">
<div class="row">