Redesign support dialog and add Ko-fi link

This commit is contained in:
ACX
2026-02-22 21:48:17 -07:00
committed by acx10
parent 1c82461e49
commit d2f5a4ff66
3 changed files with 122 additions and 162 deletions
@@ -4,8 +4,8 @@
<i class="pi pi-heart header-icon"></i> <i class="pi pi-heart header-icon"></i>
</div> </div>
<div class="header-text"> <div class="header-text">
<h2 class="panel-title">Support Booklore</h2> <h2 class="panel-title">Support BookLore</h2>
<p class="panel-description">Help us grow and improve</p> <p class="panel-description">From a solo dev who loves books</p>
</div> </div>
<p-button <p-button
icon="pi pi-times" icon="pi pi-times"
@@ -18,61 +18,40 @@
</div> </div>
<div class="dialog-content"> <div class="dialog-content">
<div class="header-section"> <p class="intro">
<span class="badge"> 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.
Open Source & Community Driven If it's been useful to you, here's how you can say thanks.
</span> </p>
<h2 class="title">
Booklore
</h2>
<p class="description">
A modern platform crafted to help you curate, organize, and cherish your personal library with elegance and simplicity.
</p>
</div>
<div class="actions-section"> <div class="support-cards">
<a href="https://github.com/booklore-app/booklore" target="_blank" rel="noopener noreferrer"> <a class="support-card star-card" href="https://github.com/booklore-app/booklore" target="_blank" rel="noopener noreferrer">
<p-button <i class="pi pi-github card-icon"></i>
label="Star on GitHub" <div class="card-text">
icon="pi pi-github" <span class="card-title">Star on GitHub</span>
outlined <span class="card-desc">A star goes a long way. It helps new people find BookLore and keeps me motivated.</span>
severity="success" </div>
class="action-button"> <i class="pi pi-arrow-up-right card-arrow"></i>
</p-button>
</a> </a>
<a href="https://opencollective.com/booklore" target="_blank" rel="noopener noreferrer">
<p-button <a class="support-card collective-card" href="https://opencollective.com/booklore" target="_blank" rel="noopener noreferrer">
label="Support via Open Collective" <i class="pi pi-heart card-icon"></i>
icon="pi pi-heart" <div class="card-text">
severity="info" <span class="card-title">Open Collective</span>
outlined <span class="card-desc">Recurring support that helps cover hosting and keeps development sustainable.</span>
class="action-button"> </div>
</p-button> <i class="pi pi-arrow-up-right card-arrow"></i>
</a>
<a class="support-card kofi-card" href="https://ko-fi.com/bookloredev" target="_blank" rel="noopener noreferrer">
<i class="pi pi-gift card-icon"></i>
<div class="card-text">
<span class="card-title">Buy me a coffee</span>
<span class="card-desc">A one-time tip to fuel late-night coding sessions. Every bit is appreciated!</span>
</div>
<i class="pi pi-arrow-up-right card-arrow"></i>
</a> </a>
</div> </div>
<div class="footer-section"> <p class="closing">Thank you for being part of the BookLore community.</p>
<div class="support-info">
<p>
Starring the project on <span class="highlight github">GitHub</span> increases visibility, helps Booklore reach more book lovers, and motivates ongoing development.
</p>
<p>
Financial contributions through <span class="highlight open-collective">Open Collective</span> directly support hosting infrastructure, feature development, and long-term sustainability.
</p>
<p class="final-message">
Every form of support, stars, feedback, or contributions, helps keep Booklore thriving and accessible for all book enthusiasts.
</p>
</div>
<p class="commitment">
Booklore is and will always remain free for everyone.
</p>
</div>
<div class="message-section">
<p class="message">
Your support and engagement fuel Booklore's continuous evolution and inspire meaningful improvements.
</p>
<p class="author">- ACX10, Creator & Maintainer</p>
</div>
</div> </div>
</div> </div>
@@ -11,7 +11,7 @@
} }
.dialog-content { .dialog-content {
padding: 1.5rem 1.5rem 2.5rem; padding: 1.5rem;
background: var(--card-background); background: var(--card-background);
border: 1px solid var(--border-color); border: 1px solid var(--border-color);
border-top: none; border-top: none;
@@ -19,127 +19,108 @@
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
} }
.header-section { .intro {
font-size: 1rem;
line-height: 1.7;
color: var(--text-color-secondary);
text-align: center; text-align: center;
margin-bottom: 1.5rem; margin: 0 0 1.5rem;
.badge {
display: inline-block;
padding: 0.375rem 1rem;
border-radius: 9999px;
background: linear-gradient(to right, rgba(59, 130, 246, 0.4), rgba(99, 102, 241, 0.4));
color: var(--primary-text-color);
font-size: 0.75rem;
font-weight: 600;
letter-spacing: 0.05em;
margin-bottom: 1rem;
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}
.title {
font-size: 2rem;
font-weight: 700;
color: var(--high-contrast-text-color);
margin-bottom: 0.75rem;
letter-spacing: -0.025em;
}
.description {
font-size: 0.9375rem;
line-height: 1.6;
color: var(--text-color-secondary);
max-width: 750px;
margin: 0 auto;
}
} }
.message-section { .support-cards {
text-align: center;
margin-top: 1.5rem;
padding-top: 1.5rem;
border-top: 1px solid var(--border-color);
.message {
font-size: 0.875rem;
line-height: 1.6;
color: var(--primary-text-color);
margin-bottom: 0.5rem;
}
.author {
font-size: 0.875rem;
font-weight: 300;
color: var(--primary-text-color);
}
}
.actions-section {
display: flex; display: flex;
flex-direction: column;
gap: 0.75rem;
}
.support-card {
display: flex;
align-items: center;
gap: 1rem; gap: 1rem;
justify-content: center; padding: 1rem 1.125rem;
margin-bottom: 1.5rem; border-radius: 10px;
border: 1px solid var(--border-color);
background: var(--ground-background);
text-decoration: none;
color: inherit;
transition: border-color 0.2s, transform 0.15s;
a { &:hover {
text-decoration: none; transform: translateY(-1px);
flex: 0 1 auto;
} }
@media (max-width: 768px) { &.star-card {
flex-direction: column; border-color: rgba(34, 197, 94, 0.3);
a { &:hover {
width: 100%; border-color: rgb(34, 197, 94);
} }
::ng-deep .action-button { .card-icon {
width: 100%; color: rgb(34, 197, 94);
}
}
&.collective-card {
border-color: rgba(99, 102, 241, 0.3);
&:hover {
border-color: rgb(99, 102, 241);
}
.card-icon {
color: rgb(99, 102, 241);
}
}
&.kofi-card {
border-color: rgba(251, 146, 60, 0.3);
&:hover {
border-color: rgb(251, 146, 60);
}
.card-icon {
color: rgb(251, 146, 60);
} }
} }
} }
.footer-section { .card-icon {
font-size: 1.5rem;
flex-shrink: 0;
}
.card-text {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 0.2rem;
}
.card-title {
font-size: 1rem;
font-weight: 600;
color: var(--text-color);
}
.card-desc {
font-size: 0.875rem;
color: var(--text-secondary-color);
line-height: 1.5;
}
.card-arrow {
font-size: 0.85rem;
color: var(--text-secondary-color);
flex-shrink: 0;
}
.closing {
text-align: center; text-align: center;
padding-top: 1.5rem; font-size: 0.9rem;
border-top: 1px solid var(--border-color); font-weight: 500;
color: var(--primary-text-color);
.support-info { margin: 1.5rem 0 0;
font-size: 0.875rem;
line-height: 1.6;
color: var(--text-color-secondary);
margin: 0 auto 1.25rem;
p {
margin-bottom: 0.875rem;
&:last-child {
margin-bottom: 0;
}
}
.highlight {
font-weight: 600;
color: var(--primary-text-color);
&.github {
color: limegreen;
}
&.open-collective {
color: dodgerblue;
}
}
.final-message {
padding-top: 0.25rem;
color: #fcd34d;
}
}
.commitment {
font-size: 0.875rem;
font-weight: 600;
letter-spacing: 0.025em;
color: #6ee7b7;
margin-bottom: 0;
}
} }
@@ -73,7 +73,7 @@ export class DialogLauncherService {
openGithubSupportDialog(): DynamicDialogRef | null { openGithubSupportDialog(): DynamicDialogRef | null {
return this.openDialog(GithubSupportDialog, { return this.openDialog(GithubSupportDialog, {
showHeader: false, showHeader: false,
styleClass: `${DialogSize.LG} ${DialogStyle.MINIMAL}`, styleClass: `${DialogSize.MD} ${DialogStyle.MINIMAL}`,
}); });
} }