🚑️ fix text readability & avif

This commit is contained in:
JMARyA 2022-09-13 07:54:13 +02:00
parent 840287e317
commit 43c8d4d013
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
3 changed files with 4 additions and 4 deletions

View file

@ -19,4 +19,4 @@ Specify mirror urls inside of `mirrors.txt` and it will be served at `/mirrors.t
The site colors can be configured with pywal. Place pywal's colors.json in the config folder. The site colors can be configured with pywal. Place pywal's colors.json in the config folder.
## Background ## Background
To set a background picture place it at `config/wall.png` To set a background picture place it at `config/wall.avif`

View file

@ -20,4 +20,4 @@ def me_picture():
@asset_pages.route("/wall") @asset_pages.route("/wall")
def wall_bg(): def wall_bg():
return filesend("/config/wall.png") return filesend("/config/wall.avif")

View file

@ -21,8 +21,8 @@ def buildSite(content, title=None, disable_color=False):
bg = colors()["colors"][f"color{i}"] bg = colors()["colors"][f"color{i}"]
c_style = f"background: {bg}; color: {fg};" c_style = f"background: {bg}; color: {fg};"
if os.path.exists("/config/wall.png"): if os.path.exists("/config/wall.avif"):
c_style += "background-image: url('assets/wall');background-size:cover" c_style += "background-image: url('assets/wall');background-size:cover;text-shadow: 1px 1px 3px black;"
return Document( return Document(
head=Head( head=Head(