🚑️ shadow optional
This commit is contained in:
parent
78eb538162
commit
37800adce4
2 changed files with 6 additions and 2 deletions
|
@ -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(
|
||||
|
|
|
@ -174,6 +174,7 @@ def public_key():
|
|||
],
|
||||
"Public Key",
|
||||
disable_color=True,
|
||||
shadow=False,
|
||||
).to_code()
|
||||
|
||||
# Return raw key
|
||||
|
|
Loading…
Add table
Reference in a new issue