#!/bin/bash

touch test.html
echo "<!DOCTYPE html><html><head><title>" | tee -a test.html 
echo poop | tee -a test.html 
echo "</title><style>"| tee -a test.html
echo "body {background: tmpbg1;}"| tee -a test.html
echo "body {background: linear-gradient(315deg, tmpbg1, tmpbg2);}"| tee -a test.html
echo "</style></head><body>"| tee -a test.html
echo LOL | tee -a test.html
echo "</body></html>"| tee -a test.html


sed -i "s/tmpbg1/$(echo "#$(openssl rand -hex 3)")/" test.html
sed -i "s/tmpbg2/$(echo "#$(openssl rand -hex 3)")/" test.html
