Added donation modal
This commit is contained in:
parent
2df9957d39
commit
868b44047e
3 changed files with 40 additions and 0 deletions
|
|
@ -0,0 +1,26 @@
|
||||||
|
<.modal id="donate-modal" allow_close={true}>
|
||||||
|
<section x-data="{ inputValue: '' }">
|
||||||
|
<h3 class="text-2xl text-white">Donate</h3>
|
||||||
|
<p class="text-sm">Thank you for your support :)</p>
|
||||||
|
<p class="mt-4">
|
||||||
|
If you find the project valuable and want to support its development, a
|
||||||
|
<.inline_link href="https://www.paypal.me/kieraneglin">donation</.inline_link>
|
||||||
|
would be greatly appreciated.
|
||||||
|
</p>
|
||||||
|
<p class="mt-4">
|
||||||
|
Plus, $5 USD from any donation over $10 USD will be donated to
|
||||||
|
<.inline_link href="https://www.eff.org/">The Electronic Frontier Foundation</.inline_link>
|
||||||
|
who defend your online liberties and backed
|
||||||
|
<.inline_code>youtube-dl</.inline_code>
|
||||||
|
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" />
|
||||||
|
</.inline_link>.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<.link href="https://www.paypal.me/kieraneglin" target="_blank">
|
||||||
|
<.button color="bg-primary" class="w-full mt-8">
|
||||||
|
Donate
|
||||||
|
</.button>
|
||||||
|
</.link>
|
||||||
|
</section>
|
||||||
|
</.modal>
|
||||||
|
|
@ -39,6 +39,19 @@
|
||||||
target="_blank"
|
target="_blank"
|
||||||
href="https://github.com/kieraneglin/pinchflat"
|
href="https://github.com/kieraneglin/pinchflat"
|
||||||
/>
|
/>
|
||||||
|
<li>
|
||||||
|
<span
|
||||||
|
class={[
|
||||||
|
"font-medium text-bodydark1",
|
||||||
|
"group relative flex items-center gap-2.5 rounded-sm px-4 py-2 duration-300 ease-in-out",
|
||||||
|
"duration-300 ease-in-out cursor-pointer",
|
||||||
|
"hover:bg-graydark dark:hover:bg-meta-4"
|
||||||
|
]}
|
||||||
|
phx-click={show_modal("donate-modal")}
|
||||||
|
>
|
||||||
|
<.icon name="hero-currency-dollar" /> Donate
|
||||||
|
</span>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,7 @@
|
||||||
>
|
>
|
||||||
<%= @inner_content %>
|
<%= @inner_content %>
|
||||||
|
|
||||||
|
<.donate_modal conn={@conn} />
|
||||||
<template x-if="!proEnabled">
|
<template x-if="!proEnabled">
|
||||||
<.upgrade_modal conn={@conn} />
|
<.upgrade_modal conn={@conn} />
|
||||||
</template>
|
</template>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue