Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
feat(website): outline for donation buttons
Elian Doran892e84deaab0
diff --git a/apps/website/src/components/Button.css b/apps/website/src/components/Button.cssindex d79e17ec01..b252b24cee 100644--- a/apps/website/src/components/Button.css+++ b/apps/website/src/components/Button.css@@ -1,10 +1,16 @@a.button {display: block;- background: var(--brand-1);+ background-color: var(--brand-1);padding: 0.5em 1em;border-radius: 6px;color: var(--brand-foreground-color);text-decoration: none;text-align: center;- box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);+ box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.15);+}++a.button.outline {+ border: 1px solid var(--brand-1);+ color: var(--brand-1);+ background-color: transparent;}\ No newline at end of filediff --git a/apps/website/src/components/Button.tsx b/apps/website/src/components/Button.tsxindex 6c1e8a4222..dc189e7936 100644--- a/apps/website/src/components/Button.tsx+++ b/apps/website/src/components/Button.tsx@@ -8,12 +8,13 @@ interface ButtonProps {text: ComponentChildren;openExternally?: boolean;className?: string;+ outline?: boolean;}-export default function Button({ href, iconSvg, openExternally, text, className }: ButtonProps) {+export default function Button({ href, iconSvg, openExternally, text, className, outline }: ButtonProps) {return (<a- className={`button ${className}`}+ className={`button ${className} ${outline ? "outline" : ""}`}href={href}target={openExternally ? "_blank" : undefined}>diff --git a/apps/website/src/pages/Donate/Donate.tsx b/apps/website/src/pages/Donate/Donate.tsxindex d028fce066..e3af097372 100644--- a/apps/website/src/pages/Donate/Donate.tsx+++ b/apps/website/src/pages/Donate/Donate.tsx@@ -29,6 +29,7 @@ export default function Donate() {href="https://paypal.me/eliandoran"text="PayPal"openExternally+ outline/></li>@@ -38,6 +39,7 @@ export default function Donate() {href="https://buymeacoffee.com/eliandoran"text="Buy Me A Coffee"openExternally+ outline/></li></ul>