FlashPaper
FlashPaper copied to clipboard
Suggestion: Color Themes
I'd love a way to set a docker container variable to change the color of certain elements, or possibly even to add a logo somewhere on the page. I'd love to use this for work to request password data from clients.
Right now we are using a branded version of onetimesecret with our primary color, a favicon, and our logo, but it doesn't play very nice on a mobile phone.
If I could replicate our use case for that and set this up instead, I think that would be easier/better for us, but we'd want it branded and to have our logo in it.
Or perhaps we could just embed this via an iFrame on on our website instead?
PS - How can we edit the templates via Docker install?
I've come across quite a few deployments of FlashPaper on the internet with logos added in, so this is definitely a feature others want as well. I will take a look into getting this implemented. Thanks!
As for adding in new templates: You need to map a volume to /var/www/templates
in the container. Only files ending in ".txt" will be listed.
volumes:
- './data:/var/www/html/data'
- './templates:/var/www/templates'
Thanks for the consideration, the way I guess I envision it within docker would be one of two ways.
1, inside the /data volume you could have an "images" folder with a "logo.png" and a "favicon.ico" that users could override with their own files. or 2, just have variables for LOGO and FAVICON that you can point to resources hosted elsewhere. (this may be cleaner to implement?) And then perhaps a variable for PRIMARYCOLOR or something like that which accepts a HEX color code? That could just change the color of the button, and a SECONDARYCOLOR that could change the color of the grey background box.
Seconded. I would also like to use this for my personal business and the ability to add logos/color themes would be super cool.
Also, how about sub-headers for message view_secret and confirm_view_secret?