Skip to content

Build your personal knowledge base with Trilium Notes

feat(website): improve the donation page

Elian Dorand71d1ce8b412
diff --git a/apps/website/src/components/Button.tsx b/apps/website/src/components/Button.tsx
index dc189e7936..8556c0900e 100644
--- a/apps/website/src/components/Button.tsx
+++ b/apps/website/src/components/Button.tsx
@@ -17,6 +17,7 @@ export default function Button({ href, iconSvg, openExternally, text, className,
className={`button ${className} ${outline ? "outline" : ""}`}
href={href}
target={openExternally ? "_blank" : undefined}
+ rel={openExternally ? "noopener noreferrer" : undefined}
>
{iconSvg && <><Icon svg={iconSvg} />{" "}</>}
{text}
diff --git a/apps/website/src/pages/Donate/Donate.css b/apps/website/src/pages/Donate/Donate.css
index 748cefa970..7928a9082f 100644
--- a/apps/website/src/pages/Donate/Donate.css
+++ b/apps/website/src/pages/Donate/Donate.css
@@ -2,7 +2,7 @@ section.donate {
background: var(--background-color);
}
-section.donate ul {
+section.donate ul.donate-buttons {
list-style-type: none;
display: flex;
gap: 1em;
@@ -10,6 +10,11 @@ section.donate ul {
flex-direction: column;
}
+section.donate h3 {
+ font-size: 1.5em;
+ color: var(--brand-1);
+}
+
@media (min-width: 720px) {
section.donate ul {
gap: 0 1em;
diff --git a/apps/website/src/pages/Donate/Donate.tsx b/apps/website/src/pages/Donate/Donate.tsx
index e3af097372..1343ae4d0c 100644
--- a/apps/website/src/pages/Donate/Donate.tsx
+++ b/apps/website/src/pages/Donate/Donate.tsx
@@ -4,51 +4,63 @@ import githubIcon from "../../assets/boxicons/bx-github.svg?raw";
import paypalIcon from "../../assets/boxicons/bx-paypal.svg?raw";
import buyMeACoffeeIcon from "../../assets/boxicons/bx-buy-me-a-coffee.svg?raw";
import Button from "../../components/Button";
+import Card from "../../components/Card";
export default function Donate() {
return (
<>
- <Section title="Financial donations" className="donate">
- <p>A <a href="https://github.com/TriliumNext/Trilium/graphs/commit-activity">significant amount of time</a> is spent maintaining and bringing the best out of Trilium.</p>
+ <Section title="Support us" className="donate">
+ <div class="grid-2-cols">
+ <Card title="Financial donations">
+ <p>
+ Trilium is built and maintained with <a href="https://github.com/TriliumNext/Trilium/graphs/commit-activity" target="_blank">hundreds of hours of work</a>.
+ Your support keeps it open-source, improves features, and covers costs such as hosting.
+ </p>
- <p>Consider supporting the main developer of the application via:</p>
+ <p>Consider supporting the main developer (<a href="https://github.com/eliandoran">eliandoran</a>) of the application via:</p>
- <ul>
- <li>
- <Button
- iconSvg={githubIcon}
- href="https://github.com/sponsors/eliandoran"
- text="GitHub Sponsors"
- openExternally
- />
- </li>
+ <ul class="donate-buttons">
+ <li>
+ <Button
+ iconSvg={githubIcon}
+ href="https://github.com/sponsors/eliandoran"
+ text="GitHub Sponsors"
+ openExternally
+ />
+ </li>
- <li>
- <Button
- iconSvg={paypalIcon}
- href="https://paypal.me/eliandoran"
- text="PayPal"
- openExternally
- outline
- />
- </li>
+ <li>
+ <Button
+ iconSvg={paypalIcon}
+ href="https://paypal.me/eliandoran"
+ text="PayPal"
+ openExternally
+ outline
+ />
+ </li>
- <li>
- <Button
- iconSvg={buyMeACoffeeIcon}
- href="https://buymeacoffee.com/eliandoran"
- text="Buy Me A Coffee"
- openExternally
- outline
- />
- </li>
- </ul>
- </Section>
+ <li>
+ <Button
+ iconSvg={buyMeACoffeeIcon}
+ href="https://buymeacoffee.com/eliandoran"
+ text="Buy Me A Coffee"
+ openExternally
+ outline
+ />
+ </li>
+ </ul>
+ </Card>
- <Section title="Other ways to contribute">
- <ul>
- <li>Help us translate the application into your native language via <a href="https://hosted.weblate.org/engage/trilium/" target="_blank">Weblate</a>.</li>
- </ul>
+ <Card title="Other ways to contribute">
+ <ul>
+ <li>Translate the application into your native language via <a href="https://hosted.weblate.org/engage/trilium/" target="_blank">Weblate</a>.</li>
+ <li>Interact with the community on <a href="https://github.com/orgs/TriliumNext/discussions" target="_blank">GitHub Discussions</a> or on <a href="https://matrix.to/#/#triliumnext:matrix.org">Matrix</a>.</li>
+ <li>Report bugs via <a href="https://github.com/TriliumNext/Trilium/issues" target="_blank">GitHub issues</a>.</li>
+ <li>Improve the documentation by informing us on gaps in the documentation or contributing guides, FAQs or tutorials.</li>
+ <li>Spread the word: Share Trilium Notes with friends, or on blogs and social media.</li>
+ </ul>
+ </Card>
+ </div>
</Section>
</>
)