AndrewPaglusch / FlashPaper

One-time encrypted password/secret sharing
MIT License
383 stars 61 forks source link

Suggestion: Color Themes #58

Open CorneliousJD opened 2 years ago

CorneliousJD commented 2 years ago

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?

AndrewPaglusch commented 2 years ago

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'
CorneliousJD commented 2 years ago

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.

Bulletoverload commented 1 year ago

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?

trulow commented 5 months ago

Any update to this request?

A dark theme and an option to add a logo would be amazing!

AndrewPaglusch commented 5 months ago

Hey @trulow thanks for reaching out! There hasn't been any movement on implementing this yet. This is something I'd like to see added some day, but it's not a priority right now and more of a nice-to-have feature. If you'd like to take a shot at adding, we'd be happy to review a PR. Otherwise, please just keep an eye on this issue.

krumka commented 4 months ago

Hi, that would be very awesome to have colors and logos !

I've seen that a PR was created for this feature (thanks @barry-smithjr) (at least dark mode even if no custom colors) @AndrewPaglusch any idea on when/if you would merge this PR ?

Thanks for this awesome project anyway !

AndrewPaglusch commented 4 months ago

Hey @krumka. A lot has been happening in my personal life over the past two weeks, so I haven't been able to give the PR a good review yet. I plan on reviewing it this weekend. Keep an eye out for more updates!