feat(app): add donation banner
This commit is contained in:
@@ -13,7 +13,8 @@
|
|||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner {
|
.banner ::selection {
|
||||||
|
background-color: var(--moss-shadow);
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner .main-button {
|
.banner .main-button {
|
||||||
@@ -67,6 +68,7 @@
|
|||||||
@media screen and (max-width: 719px) {
|
@media screen and (max-width: 719px) {
|
||||||
.banner-container {
|
.banner-container {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
gap: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.banner-content {
|
.banner-content {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ type BannerProps = {
|
|||||||
const variants: Variants = {
|
const variants: Variants = {
|
||||||
initial: { y: -120 },
|
initial: { y: -120 },
|
||||||
animate: { y: 0 },
|
animate: { y: 0 },
|
||||||
exit: { y: -120 },
|
exit: { opacity: 0 },
|
||||||
};
|
};
|
||||||
|
|
||||||
const BANNER_STATE_KEY = "banner_state";
|
const BANNER_STATE_KEY = "banner_state";
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ import {
|
|||||||
ArrowCircleUpRight,
|
ArrowCircleUpRight,
|
||||||
ArrowCircleDown,
|
ArrowCircleDown,
|
||||||
MegaphoneSimple,
|
MegaphoneSimple,
|
||||||
|
HandHeart,
|
||||||
} from "@phosphor-icons/react";
|
} from "@phosphor-icons/react";
|
||||||
|
|
||||||
import Banner from "@/components/Banner";
|
import Banner from "@/components/Banner";
|
||||||
@@ -52,6 +53,20 @@ const Header = (_: HeaderProps) => {
|
|||||||
</small>
|
</small>
|
||||||
</div>
|
</div>
|
||||||
</Banner>
|
</Banner>
|
||||||
|
<Banner id={"buymeacoffee"}>
|
||||||
|
<div className="message">
|
||||||
|
<HandHeart size={32} mirrored />
|
||||||
|
<small>
|
||||||
|
We are now processing donations via{" "}
|
||||||
|
<a href="https://www.buymeacoffee.com/phosphoricons">
|
||||||
|
Buy Me a Coffee
|
||||||
|
</a>
|
||||||
|
! It takes a lot of work to make Phosphor available to the public
|
||||||
|
free and open-source, and your one-time or recurring contribution does
|
||||||
|
a lot to keep us going. Please show us some support if you can!
|
||||||
|
</small>
|
||||||
|
</div>
|
||||||
|
</Banner>
|
||||||
</Banner.Container>
|
</Banner.Container>
|
||||||
<div className="header-contents">
|
<div className="header-contents">
|
||||||
<div className="illustrations-top">
|
<div className="illustrations-top">
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ const Links = (_: LinksProps) => {
|
|||||||
<ArrowElbowDownRight size={24} />
|
<ArrowElbowDownRight size={24} />
|
||||||
<span>
|
<span>
|
||||||
<OutboundLink href="https://paypal.me/minoraxis" eventLabel="Donate">
|
<OutboundLink href="https://paypal.me/minoraxis" eventLabel="Donate">
|
||||||
Donate on PayPal
|
Donate on BuyMeACoffee
|
||||||
</OutboundLink>
|
</OutboundLink>
|
||||||
{" / "}
|
{" / "}
|
||||||
<OutboundLink
|
<OutboundLink
|
||||||
|
|||||||
Reference in New Issue
Block a user