diff --git a/src/html_fn.py b/src/html_fn.py index 6a5d10e..ef3cf08 100644 --- a/src/html_fn.py +++ b/src/html_fn.py @@ -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( diff --git a/src/index.py b/src/index.py index 5d8b879..9cddff5 100644 --- a/src/index.py +++ b/src/index.py @@ -174,6 +174,7 @@ def public_key(): ], "Public Key", disable_color=True, + shadow=False, ).to_code() # Return raw key