mirror of
https://github.com/FAUSheppy/flask-json-dream-website
synced 2025-12-06 16:21:35 +01:00
allow multiple title/wallpaper styles
This commit is contained in:
@@ -24,6 +24,9 @@ SITE_BASE_URL = "Site Base URL"
|
|||||||
WALLPAPER_URL = "/picture/example.png"
|
WALLPAPER_URL = "/picture/example.png"
|
||||||
SITE_WELLCOME_TITLE = "Title on the Wallpaper"
|
SITE_WELLCOME_TITLE = "Title on the Wallpaper"
|
||||||
SITE_WELLCOME_SUBTITLE = "Subtitle on the Wallpaper"
|
SITE_WELLCOME_SUBTITLE = "Subtitle on the Wallpaper"
|
||||||
|
SITE_WELLCOME_TITLE_CSS = "color: green; font-size: 4vw;"
|
||||||
|
|
||||||
|
NO_CENTER_TITLE = False
|
||||||
|
|
||||||
TEAMSPEAK_SERVER = "teamspeak.com"
|
TEAMSPEAK_SERVER = "teamspeak.com"
|
||||||
DISCORD_SERVER = "https://discord.gg/"
|
DISCORD_SERVER = "https://discord.gg/"
|
||||||
@@ -52,3 +55,5 @@ SMTP_MUST_BE_CONNECTED = False
|
|||||||
THANKS_TITLE = "Thank you for something!"
|
THANKS_TITLE = "Thank you for something!"
|
||||||
THANKS_STRONG_TEXT = "Strong Text"
|
THANKS_STRONG_TEXT = "Strong Text"
|
||||||
THANKS_TEXT = "Normal Text"
|
THANKS_TEXT = "Normal Text"
|
||||||
|
|
||||||
|
DISABLE_MAIN_LINKS = False
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ html {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.masthead {
|
.masthead {
|
||||||
height: 50vh;
|
/*height: 50vh; */
|
||||||
min-height: 250px;
|
min-height: 250px;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
|
|||||||
@@ -17,14 +17,17 @@
|
|||||||
{% include 'navbar.html' %}
|
{% include 'navbar.html' %}
|
||||||
|
|
||||||
<!-- Site wellcome header -->
|
<!-- Site wellcome header -->
|
||||||
<header class="masthead" realsrc='{{ conf["WALLPAPER_URL"] }}'>
|
<header class="masthead {% if conf['NO_CENTER_TITLE'] %} h-50 {% endif %}"
|
||||||
<div class="container h-50">
|
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="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 style="opacity: 0;"></div> <!-- TODO color for text configurable -->
|
||||||
<div class="mt-5" style="opacity: 0;"></div>
|
<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_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"] }}</p> {% endif %}
|
{% if "SITE_WELLCOME_SUBTITLE" in conf %} <p class="lead">{{ conf["SITE_WELLCOME_SUBTITLE"] | safe }}</p> {% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -34,7 +37,7 @@
|
|||||||
{% include 'events.html' %}
|
{% include 'events.html' %}
|
||||||
|
|
||||||
<!-- picture links -->
|
<!-- picture links -->
|
||||||
{% if mainLinks %}
|
{% if mainLinks and not conf["DISABLE_MAIN_LINKS"] %}
|
||||||
<div class="bg-dark pt-5">
|
<div class="bg-dark pt-5">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
Reference in New Issue
Block a user