mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2025-12-09 09:18:31 +01:00
allow multiple title/wallpaper styles
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user