Refresh support me heart animation and dialog copy (#2885)

This commit is contained in:
ACX
2026-02-23 15:22:07 -07:00
committed by GitHub
parent c4e6d9eb68
commit 9fa0ac40bb
4 changed files with 95 additions and 24 deletions
@@ -19,8 +19,7 @@
<div class="dialog-content">
<p class="intro">
I built BookLore on my own time because I wanted a book manager that actually felt good to use. Thousands of hours have gone into making it what it is today.
If it's been useful to you, here's how you can say thanks.
BookLore is built and maintained by a single developer who genuinely loves books. If it's made organizing your library a little more enjoyable, here are a few ways to support the project and keep it going.
</p>
<div class="support-cards">
@@ -20,8 +20,8 @@
}
.intro {
font-size: 1rem;
line-height: 1.7;
font-size: 0.95rem;
line-height: 1.6;
color: var(--text-color-secondary);
text-align: center;
margin: 0 0 1.5rem;
@@ -118,12 +118,12 @@
</li>
<li class="topbar-item-relative heart-button topbar-item" (click)="openGithubSupportDialog()">
<span
style="animation-duration: 2s; background: conic-gradient(from 90deg, #f97316, #f59e0b, #eab308, #84cc16, #22c55e, #10b981, #14a8a6, #06b6d4, #0ea5e9, #3b82f6, #6366f1, #8b5cf6, #a855f7, #d946ef, #ec4899, #f43f5e)"
class="heart-spinner">
</span>
<span class="heart-background"></span>
<i class="pi pi-heart heart-icon"></i>
<span class="heart-ripple"></span>
<span class="heart-ripple heart-ripple-delayed"></span>
<span class="heart-orbit heart-orbit-1"></span>
<span class="heart-orbit heart-orbit-2"></span>
<span class="heart-orbit heart-orbit-3"></span>
<i class="pi pi-heart-fill heart-icon"></i>
</li>
<li class="topbar-item-relative">
<button
@@ -67,30 +67,69 @@
}
.heart-button {
overflow: hidden;
border-color: transparent !important;
overflow: visible;
cursor: pointer;
position: relative;
&:hover .heart-icon {
animation: heartbeat 0.6s ease-in-out;
filter: drop-shadow(0 0 8px rgba(236, 72, 153, 0.8));
}
&:hover .heart-ripple {
animation: ripple-burst 1.2s ease-out infinite;
}
&:hover .heart-ripple-delayed {
animation-delay: 0.4s;
}
}
.heart-spinner {
.heart-ripple {
position: absolute;
top: -1.25rem;
left: -1.25rem;
width: 5rem;
height: 5rem;
animation: spin 2s linear infinite;
z-index: -1;
inset: 0;
border-radius: 50%;
border: 1.5px solid #ec4899;
opacity: 0;
pointer-events: none;
}
.heart-background {
.heart-orbit {
position: absolute;
z-index: 2;
inset: 1px;
border-radius: 4px;
background: var(--p-surface-900);
transition: all 0.2s;
z-index: 11;
width: 4px;
height: 4px;
border-radius: 50%;
pointer-events: none;
top: calc(50% - 2px);
left: calc(50% - 2px);
}
.heart-orbit-1 {
background: #f472b6;
box-shadow: 0 0 6px #f472b6;
animation: orbit-1 2.5s linear infinite;
}
.heart-orbit-2 {
background: #a78bfa;
box-shadow: 0 0 6px #a78bfa;
animation: orbit-2 3.2s linear infinite reverse;
}
.heart-orbit-3 {
background: #38bdf8;
box-shadow: 0 0 6px #38bdf8;
animation: orbit-3 4s linear infinite;
}
.heart-icon {
z-index: 10;
color: #ec4899 !important;
animation: heart-float 2.5s ease-in-out infinite;
filter: drop-shadow(0 0 4px rgba(236, 72, 153, 0.5));
transition: filter 0.3s;
}
.mobile-trigger {
@@ -143,6 +182,39 @@
animation: spin 1.5s linear infinite;
}
@keyframes orbit-1 {
0% { transform: rotate(0deg) translateX(16px) rotate(0deg); }
100% { transform: rotate(360deg) translateX(16px) rotate(-360deg); }
}
@keyframes orbit-2 {
0% { transform: rotate(120deg) translateX(14px) rotate(-120deg); }
100% { transform: rotate(480deg) translateX(14px) rotate(-480deg); }
}
@keyframes orbit-3 {
0% { transform: rotate(240deg) translateX(18px) rotate(-240deg); }
100% { transform: rotate(600deg) translateX(18px) rotate(-600deg); }
}
@keyframes ripple-burst {
0% { transform: scale(0.8); opacity: 0.6; }
100% { transform: scale(2.2); opacity: 0; }
}
@keyframes heart-float {
0%, 100% { transform: translateY(2px); }
50% { transform: translateY(-2px); }
}
@keyframes heartbeat {
0% { transform: scale(1); }
25% { transform: scale(1.35); }
40% { transform: scale(0.95); }
55% { transform: scale(1.2); }
100% { transform: scale(1); }
}
@keyframes pulsate {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.25); opacity: 0.8; }