Redesign support dialog and add Ko-fi link
This commit is contained in:
+32
-53
@@ -4,8 +4,8 @@
|
||||
<i class="pi pi-heart header-icon"></i>
|
||||
</div>
|
||||
<div class="header-text">
|
||||
<h2 class="panel-title">Support Booklore</h2>
|
||||
<p class="panel-description">Help us grow and improve</p>
|
||||
<h2 class="panel-title">Support BookLore</h2>
|
||||
<p class="panel-description">From a solo dev who loves books</p>
|
||||
</div>
|
||||
<p-button
|
||||
icon="pi pi-times"
|
||||
@@ -18,61 +18,40 @@
|
||||
</div>
|
||||
|
||||
<div class="dialog-content">
|
||||
<div class="header-section">
|
||||
<span class="badge">
|
||||
Open Source & Community Driven
|
||||
</span>
|
||||
<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>
|
||||
<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.
|
||||
</p>
|
||||
|
||||
<div class="actions-section">
|
||||
<a href="https://github.com/booklore-app/booklore" target="_blank" rel="noopener noreferrer">
|
||||
<p-button
|
||||
label="Star on GitHub"
|
||||
icon="pi pi-github"
|
||||
outlined
|
||||
severity="success"
|
||||
class="action-button">
|
||||
</p-button>
|
||||
<div class="support-cards">
|
||||
<a class="support-card star-card" href="https://github.com/booklore-app/booklore" target="_blank" rel="noopener noreferrer">
|
||||
<i class="pi pi-github card-icon"></i>
|
||||
<div class="card-text">
|
||||
<span class="card-title">Star on GitHub</span>
|
||||
<span class="card-desc">A star goes a long way. It helps new people find BookLore and keeps me motivated.</span>
|
||||
</div>
|
||||
<i class="pi pi-arrow-up-right card-arrow"></i>
|
||||
</a>
|
||||
<a href="https://opencollective.com/booklore" target="_blank" rel="noopener noreferrer">
|
||||
<p-button
|
||||
label="Support via Open Collective"
|
||||
icon="pi pi-heart"
|
||||
severity="info"
|
||||
outlined
|
||||
class="action-button">
|
||||
</p-button>
|
||||
|
||||
<a class="support-card collective-card" href="https://opencollective.com/booklore" target="_blank" rel="noopener noreferrer">
|
||||
<i class="pi pi-heart card-icon"></i>
|
||||
<div class="card-text">
|
||||
<span class="card-title">Open Collective</span>
|
||||
<span class="card-desc">Recurring support that helps cover hosting and keeps development sustainable.</span>
|
||||
</div>
|
||||
<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>
|
||||
</div>
|
||||
|
||||
<div class="footer-section">
|
||||
<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>
|
||||
<p class="closing">Thank you for being part of the BookLore community.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
+89
-108
@@ -11,7 +11,7 @@
|
||||
}
|
||||
|
||||
.dialog-content {
|
||||
padding: 1.5rem 1.5rem 2.5rem;
|
||||
padding: 1.5rem;
|
||||
background: var(--card-background);
|
||||
border: 1px solid var(--border-color);
|
||||
border-top: none;
|
||||
@@ -19,127 +19,108 @@
|
||||
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;
|
||||
margin-bottom: 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;
|
||||
}
|
||||
margin: 0 0 1.5rem;
|
||||
}
|
||||
|
||||
.message-section {
|
||||
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 {
|
||||
.support-cards {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.75rem;
|
||||
}
|
||||
|
||||
.support-card {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 1rem;
|
||||
justify-content: center;
|
||||
margin-bottom: 1.5rem;
|
||||
padding: 1rem 1.125rem;
|
||||
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 {
|
||||
text-decoration: none;
|
||||
flex: 0 1 auto;
|
||||
&:hover {
|
||||
transform: translateY(-1px);
|
||||
}
|
||||
|
||||
@media (max-width: 768px) {
|
||||
flex-direction: column;
|
||||
&.star-card {
|
||||
border-color: rgba(34, 197, 94, 0.3);
|
||||
|
||||
a {
|
||||
width: 100%;
|
||||
&:hover {
|
||||
border-color: rgb(34, 197, 94);
|
||||
}
|
||||
|
||||
::ng-deep .action-button {
|
||||
width: 100%;
|
||||
.card-icon {
|
||||
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;
|
||||
padding-top: 1.5rem;
|
||||
border-top: 1px solid var(--border-color);
|
||||
|
||||
.support-info {
|
||||
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;
|
||||
}
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
color: var(--primary-text-color);
|
||||
margin: 1.5rem 0 0;
|
||||
}
|
||||
|
||||
@@ -73,7 +73,7 @@ export class DialogLauncherService {
|
||||
openGithubSupportDialog(): DynamicDialogRef | null {
|
||||
return this.openDialog(GithubSupportDialog, {
|
||||
showHeader: false,
|
||||
styleClass: `${DialogSize.LG} ${DialogStyle.MINIMAL}`,
|
||||
styleClass: `${DialogSize.MD} ${DialogStyle.MINIMAL}`,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user