From 37800adce4c96ee7c8e492051a751a27355d90b8 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Tue, 13 Sep 2022 09:50:27 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20shadow=20optional?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/html_fn.py | 7 +++++-- src/index.py | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) 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