From 3cfad67686471d099b153ee5dc391c89d6fe20bb Mon Sep 17 00:00:00 2001 From: VDawg Date: Fri, 2 May 2025 18:35:51 +0300 Subject: [PATCH] Add kofi button, make donate in navbar more prominent (#92) * navbar: more prominent donate button * button: cleanup imports * donate: add kofi button * kofi modal: lock scroll when open --- src/lib/components/Button.svelte | 1 - src/routes/Navbar.svelte | 29 +++++--- src/routes/styles.css | 6 ++ src/routes/support/+page.svelte | 124 +++++++++++++++++++++++++------ 4 files changed, 127 insertions(+), 33 deletions(-) diff --git a/src/lib/components/Button.svelte b/src/lib/components/Button.svelte index 3cdd622..ce2e0d0 100755 --- a/src/lib/components/Button.svelte +++ b/src/lib/components/Button.svelte @@ -1,6 +1,5 @@ @@ -30,14 +34,13 @@ class="prose prose-slate prose-invert m-0 mx-auto flex flex-col px-6 transition-none delay-500 animate-in fade-in-0 slide-in-from-bottom-6 fill-mode-backwards [animation-delay:800ms] [animation-duration:1500ms] lg:prose-xl prose-a:text-cyan-400 prose-img:rounded-lg" >

- Hyprland development is done by volunteers, and led by one person in their free time. - If you want to show a token of appreciation, or help the development continue, consider dontating to the project! + Hyprland development is done by volunteers, and led by one person in their free time. If you + want to show a token of appreciation, or help the development continue, consider dontating to + the project!

Donate

-

- You can donate once, or monthly, via the following channels: -

+

You can donate once, or monthly, via the following channels:

-

- Hyprland is, and will always stay Free and Open Source software. Donating is purely voluntary. We will never lock out features behind a paywall. -

-

Do I get anything?

@@ -63,7 +62,50 @@ Outside of that, you get the satisfaction that you rock and support the software you use and love!

+
+ + +

+ Hyprland is, and will always stay Free and Open Source software. Donating is purely + voluntary.
We will never lock out features behind a paywall. +

+
+

Thank you, you rock! :)

+ + +
+
+ +
+ +
+
@@ -103,15 +145,53 @@ left: 0; pointer-events: none; contain: strict; - - animation: parallax ease-in-out 500ms; - animation-duration: 1ms; - animation-timeline: scroll(); } - @keyframes parallax { + dialog { + transition: + display 0.2s allow-discrete, + overlay 0.2s allow-discrete; + + animation: close 0.2s forwards; + &[open] { + animation: open 0.5s forwards; + + & .modal-content { + height: 712px; + transition: + scale 0.2s cubic-bezier(0.2, 0.2, 0.165, 1.5), + height 0.15s cubic-bezier(0.875, 0.2, 0.165, 1); + scale: 1; + + @starting-style { + height: 0px; + scale: 0.9; + } + } + } + } + + .modal-content { + height: 0px; + scale: 0.4; + transition: all 2.5s ease-in-out; + } + + @keyframes open { + from { + opacity: 0; + } to { - translate: 0px 1000px; + opacity: 1; + } + } + + @keyframes close { + from { + opacity: 1; + } + to { + opacity: 0; } }