DND_Things/James' Things/foundry patches/loginpagecss.sh

22 lines
1.1 KiB
Bash
Raw Normal View History

2022-06-01 09:12:54 +00:00
# Login Screen customisation
## This downloads the Prettier Login Screen from github.
## SRC:
2022-06-01 09:01:22 +00:00
wget https://raw.githubusercontent.com/TheEpicSnowWolf/Foundry-VTT-Prettier-Login-Screen/main/foundry_login.css
2022-06-01 09:12:54 +00:00
# Replace the BASE64 Data with the DND Logo
2022-06-01 09:22:38 +00:00
sed -i -e 's+url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII=)+url("https://static.dnd.theepicsnowwolf.com/naoulan/foundry/dnd_logo.svg")+g' ./foundry_login.css
2022-06-01 09:12:54 +00:00
2022-06-01 11:08:15 +00:00
# Replace Red with James' Blue
sed -i -e 's+rgb(150, 12, 16)+rgb(0, 150, 136)+g' ./foundry_login.css
sed -i -e 's+rgb(228, 9, 19)+rgb(0, 188, 170)+g' ./foundry_login.css
# Make the Width responsive and add a sick blur effect
sed -i -e 's+width: 400px !important;+width: 90% !important;backdrop-filter: blur(7px) !important;+g' ./foundry_login.css
2022-06-01 11:08:15 +00:00
2022-06-01 09:12:54 +00:00
# Append to the Foundry Style.css
2022-06-01 09:01:22 +00:00
cat ./foundry_login.css >> /home/foundry/resources/app/public/css/style.css
2022-06-01 11:08:15 +00:00
# Note: this is how dockerized Foundry likes to handle the sed... or linux... whatever it's a note, don't read into it
#sed -i -e 's+A+B+g' ./foundry_login.css