🚑️ shadow optional

This commit is contained in:
JMARyA 2022-09-13 09:50:27 +02:00
parent 78eb538162
commit 37800adce4
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
2 changed files with 6 additions and 2 deletions

View file

@ -4,7 +4,7 @@ from htmlpy import *
from config import colors, CONFIG
# Wrapper for Base HTML
def buildSite(content, title=None, disable_color=False):
def buildSite(content, title=None, disable_color=False, shadow=True):
c_class = "bg-dark text-white justify-content-center text-center"
c_style = ""
if not disable_color:
@ -22,7 +22,10 @@ def buildSite(content, title=None, disable_color=False):
c_style = f"background: {bg}; color: {fg};"
if os.path.exists("/config/wall.avif"):
c_style += "background-image: url('assets/wall');background-size:cover;text-shadow: 1px 1px 3px black;"
c_style += "background-image: url('assets/wall');background-size:cover;"
if shadow:
c_style += "text-shadow: 1px 1px 3px black;"
return Document(
head=Head(

View file

@ -174,6 +174,7 @@ def public_key():
],
"Public Key",
disable_color=True,
shadow=False,
).to_code()
# Return raw key