diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 61d1bc5..729ad31 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -1,14 +1,14 @@ -// datasource db { -// provider = "postgresql" -// url = env("DATABASE_URL") -// } - datasource db { - provider = "postgresql" - url = env("POSTGRES_PRISMA_URL") - directUrl = env("POSTGRES_URL_NON_POOLING") + provider = "postgresql" + url = env("DATABASE_URL") } +// datasource db { +// provider = "postgresql" +// url = env("POSTGRES_PRISMA_URL") +// directUrl = env("POSTGRES_URL_NON_POOLING") +// } + generator client { provider = "prisma-client-js" } diff --git a/src/components/content/carousels/InteractivePromotionalCarousel.js b/src/components/content/carousels/InteractivePromotionalCarousel.js index 2f26f30..e73dca1 100644 --- a/src/components/content/carousels/InteractivePromotionalCarousel.js +++ b/src/components/content/carousels/InteractivePromotionalCarousel.js @@ -4,6 +4,8 @@ import { useImageProxy } from "@/hooks/useImageProxy" import GenericButton from "@/components/buttons/GenericButton" import { useRouter } from "next/router" import useWindowWidth from "@/hooks/useWindowWidth" +import NostrIcon from "../../../../public/images/nostr.png" +import { useToast } from "@/hooks/useToast"; // With current spacing the title can only be 1 line const promotions = [ @@ -44,11 +46,28 @@ const promotions = [ const InteractivePromotionalCarousel = () => { const [selectedPromotion, setSelectedPromotion] = useState(promotions[0]) const { returnImageProxy } = useImageProxy(); + const { showToast } = useToast(); const windowWidth = useWindowWidth(); const isMobileView = windowWidth <= 1360; const router = useRouter(); const videoRef = useRef(null); + const copyToClipboard = async (text) => { + try { + await navigator.clipboard.writeText(text); + showToast("success", "Copied", "Copied Lightning Address to clipboard"); + if (window && window?.webln && window?.webln?.lnurl) { + await window.webln.enable(); + const result = await window.webln.lnurl("austin@bitcoinpleb.dev"); + if (result && result?.preimage) { + showToast("success", "Payment Sent", "Thank you for your donation!"); + } + } + } catch (err) { + console.error('Failed to copy:', err); + } + }; + useEffect(() => { if (videoRef.current && selectedPromotion.video) { videoRef.current.play(); @@ -164,7 +183,7 @@ const InteractivePromotionalCarousel = () => { > )} -
Welcome! 👋
+Plebdevs is open source software and is still in early development. If you have any questions drop an issue on the Github repo, or reach out to me in the Community tab, cheers! - Austin
+