diff --git a/lib/pinchflat_web/components/layouts/partials/donate_modal.heex b/lib/pinchflat_web/components/layouts/partials/donate_modal.heex new file mode 100644 index 0000000..a74d089 --- /dev/null +++ b/lib/pinchflat_web/components/layouts/partials/donate_modal.heex @@ -0,0 +1,26 @@ +<.modal id="donate-modal" allow_close={true}> +
+

Donate

+

Thank you for your support :)

+

+ If you find the project valuable and want to support its development, a + <.inline_link href="https://www.paypal.me/kieraneglin">donation + would be greatly appreciated. +

+

+ Plus, $5 USD from any donation over $10 USD will be donated to + <.inline_link href="https://www.eff.org/">The Electronic Frontier Foundation + who defend your online liberties and backed + <.inline_code>youtube-dl + when Google took them down<.inline_link href="https://github.com/github/dmca/blob/9a85e0f021f7967af80e186b890776a50443f06c/2020/11/2020-11-16-RIAA-reversal-effletter.pdf"> + <.icon name="hero-arrow-top-right-on-square" class="h-3 w-3" /> + . +

+ + <.link href="https://www.paypal.me/kieraneglin" target="_blank"> + <.button color="bg-primary" class="w-full mt-8"> + Donate + + +
+ diff --git a/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex b/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex index 9a1513f..b116ddc 100644 --- a/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex +++ b/lib/pinchflat_web/components/layouts/partials/sidebar.html.heex @@ -39,6 +39,19 @@ target="_blank" href="https://github.com/kieraneglin/pinchflat" /> +
  • + + <.icon name="hero-currency-dollar" /> Donate + +
  • diff --git a/lib/pinchflat_web/components/layouts/root.html.heex b/lib/pinchflat_web/components/layouts/root.html.heex index 6b696c0..1e3fd03 100644 --- a/lib/pinchflat_web/components/layouts/root.html.heex +++ b/lib/pinchflat_web/components/layouts/root.html.heex @@ -18,6 +18,7 @@ > <%= @inner_content %> + <.donate_modal conn={@conn} />