From c8e5e138407c812d2f72997aab4b801a478ec15e Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Thu, 27 Mar 2025 16:11:17 -0500 Subject: [PATCH] Combine about and subscribe pages, add fourth button to bottom bar on mobile, fix styles, test --- src/components/BottomBar.js | 3 + .../SubscriptionPaymentButton.js | 4 +- .../InteractivePromotionalCarousel.js | 10 +- src/components/navbar/Navbar.js | 2 +- .../profile/subscription/UserSubscription.js | 2 +- src/pages/about.js | 345 +++++++++++++++++- src/pages/subscribe.js | 306 ---------------- 7 files changed, 353 insertions(+), 319 deletions(-) delete mode 100644 src/pages/subscribe.js diff --git a/src/components/BottomBar.js b/src/components/BottomBar.js index d77a0aa..da7193a 100644 --- a/src/components/BottomBar.js +++ b/src/components/BottomBar.js @@ -20,6 +20,9 @@ const BottomBar = () => {
router.push('/feed?channel=global')} className={`hover:bg-gray-700 cursor-pointer px-4 py-2 rounded-lg ${isActive('/feed') ? 'bg-gray-700' : ''}`}>
+
router.push('/about')} className={`hover:bg-gray-700 cursor-pointer px-4 py-2 rounded-lg ${isActive('/about') ? 'bg-gray-700' : ''}`}> + +
); }; diff --git a/src/components/bitcoinConnect/SubscriptionPaymentButton.js b/src/components/bitcoinConnect/SubscriptionPaymentButton.js index 753ae64..af9d567 100644 --- a/src/components/bitcoinConnect/SubscriptionPaymentButton.js +++ b/src/components/bitcoinConnect/SubscriptionPaymentButton.js @@ -27,7 +27,7 @@ const SubscriptionPaymentButtons = ({ onSuccess, onError, onRecurringSubscriptio const router = useRouter(); const lnAddress = process.env.NEXT_PUBLIC_LIGHTNING_ADDRESS; - const amount = 50000; + const amount = 50; useEffect(() => { initializeBitcoinConnect(); @@ -92,7 +92,7 @@ const SubscriptionPaymentButtons = ({ onSuccess, onError, onRecurringSubscriptio const initNwcOptions = { name: "plebdevs.com", requestMethods: ['pay_invoice'], - maxAmount: 50000, + maxAmount: 500, editable: false, budgetRenewal: 'monthly', expiresAt: yearFromNow, diff --git a/src/components/content/carousels/InteractivePromotionalCarousel.js b/src/components/content/carousels/InteractivePromotionalCarousel.js index 440c157..19a7173 100644 --- a/src/components/content/carousels/InteractivePromotionalCarousel.js +++ b/src/components/content/carousels/InteractivePromotionalCarousel.js @@ -105,7 +105,7 @@ const InteractivePromotionalCarousel = () => { }, [selectedPromotion]); return ( -
+
{selectedPromotion.video ? (