From 5052394ae476c9a243c54da413d9e5e3e8e0eca8 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 22 Jan 2022 15:03:55 +0100 Subject: [PATCH] Show overlay on staging --- sass/style.scss | 11 +++++++++++ static/assets/staging.svg | 2 ++ templates/base.html | 3 +++ 3 files changed, 16 insertions(+) create mode 100644 static/assets/staging.svg diff --git a/sass/style.scss b/sass/style.scss index 3791101..9cc6107 100644 --- a/sass/style.scss +++ b/sass/style.scss @@ -61,6 +61,17 @@ h2 a { font-size: 0.75rem; } +#staging-overlay { + background-image: url("/assets/staging.svg"); + position: fixed; + top: 0; + width: 100%; + height: 100%; + z-index: 10000; + opacity: 0.075; + pointer-events: none; +} + // noscript fallbacks .podlove-player > audio { diff --git a/static/assets/staging.svg b/static/assets/staging.svg new file mode 100644 index 0000000..425181c --- /dev/null +++ b/static/assets/staging.svg @@ -0,0 +1,2 @@ + + diff --git a/templates/base.html b/templates/base.html index a63771e..fb23ce4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -27,6 +27,9 @@ {%- endblock metadata %} + {%- if config.base_url is containing("staging") %} +
+ {%- endif %}
{%- block banner %}