mirror of
https://github.com/zadam/trilium.git
synced 2025-10-20 15:19:01 +02:00
feat(website): outline for donation buttons
This commit is contained in:
parent
7a73af0299
commit
892e84deaa
@ -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;
|
||||
}
|
@ -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}
|
||||
>
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user