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"> <div class="dialog-content">
<p class="intro"> <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. 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.
If it's been useful to you, here's how you can say thanks.
</p> </p>
<div class="support-cards"> <div class="support-cards">
@@ -20,8 +20,8 @@
} }
.intro { .intro {
font-size: 1rem; font-size: 0.95rem;
line-height: 1.7; line-height: 1.6;
color: var(--text-color-secondary); color: var(--text-color-secondary);
text-align: center; text-align: center;
margin: 0 0 1.5rem; margin: 0 0 1.5rem;
@@ -118,12 +118,12 @@
</li> </li>
<li class="topbar-item-relative heart-button topbar-item" (click)="openGithubSupportDialog()"> <li class="topbar-item-relative heart-button topbar-item" (click)="openGithubSupportDialog()">
<span <span class="heart-ripple"></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)" <span class="heart-ripple heart-ripple-delayed"></span>
class="heart-spinner"> <span class="heart-orbit heart-orbit-1"></span>
</span> <span class="heart-orbit heart-orbit-2"></span>
<span class="heart-background"></span> <span class="heart-orbit heart-orbit-3"></span>
<i class="pi pi-heart heart-icon"></i> <i class="pi pi-heart-fill heart-icon"></i>
</li> </li>
<li class="topbar-item-relative"> <li class="topbar-item-relative">
<button <button
@@ -67,30 +67,69 @@
} }
.heart-button { .heart-button {
overflow: hidden; overflow: visible;
border-color: transparent !important; 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));
} }
.heart-spinner { &:hover .heart-ripple {
position: absolute; animation: ripple-burst 1.2s ease-out infinite;
top: -1.25rem;
left: -1.25rem;
width: 5rem;
height: 5rem;
animation: spin 2s linear infinite;
} }
.heart-background { &:hover .heart-ripple-delayed {
animation-delay: 0.4s;
}
}
.heart-ripple {
position: absolute; position: absolute;
z-index: 2; z-index: -1;
inset: 1px; inset: 0;
border-radius: 4px; border-radius: 50%;
background: var(--p-surface-900); border: 1.5px solid #ec4899;
transition: all 0.2s; opacity: 0;
pointer-events: none;
}
.heart-orbit {
position: absolute;
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 { .heart-icon {
z-index: 10; 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 { .mobile-trigger {
@@ -143,6 +182,39 @@
animation: spin 1.5s linear infinite; 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 { @keyframes pulsate {
0% { transform: scale(1); opacity: 1; } 0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.25); opacity: 0.8; } 50% { transform: scale(1.25); opacity: 0.8; }