From 36b121a21e5cccaf0a6d2e86dacca24e7a74fa6e Mon Sep 17 00:00:00 2001 From: Adspillar Date: Tue, 7 Oct 2025 14:54:55 +0600 Subject: [PATCH] remove pricing table --- src/components/landing/CommissionDetails.tsx | 2 +- src/components/landing/FAQ.tsx | 73 +++++++++++--------- src/components/landing/PricingTable.tsx | 51 -------------- src/pages/Landing.tsx | 2 - 4 files changed, 40 insertions(+), 88 deletions(-) delete mode 100644 src/components/landing/PricingTable.tsx diff --git a/src/components/landing/CommissionDetails.tsx b/src/components/landing/CommissionDetails.tsx index 8aae21f..efc57da 100644 --- a/src/components/landing/CommissionDetails.tsx +++ b/src/components/landing/CommissionDetails.tsx @@ -3,7 +3,7 @@ export default function CommissionDetails() {
-

+

Maximize Your Earnings

diff --git a/src/components/landing/FAQ.tsx b/src/components/landing/FAQ.tsx index 8e84325..6705259 100644 --- a/src/components/landing/FAQ.tsx +++ b/src/components/landing/FAQ.tsx @@ -1,5 +1,4 @@ -import { useState } from "react" -import { motion, AnimatePresence } from "framer-motion" +import { useState, useRef, useEffect } from "react" interface FAQItem { question: string @@ -60,40 +59,46 @@ export function FAQ() { {/* FAQ Items */}

- {faqs.map((faq, index) => ( - - + {faqs.map((faq, index) => { + const contentRef = useRef(null) - - {openIndex === index && ( - { + if (contentRef.current) { + setHeight(isOpen ? `${contentRef.current.scrollHeight}px` : "0px") + } + }, [isOpen]) + + return ( +
+ + +
+

{faq.answer}

+
+
+ ) + })}
diff --git a/src/components/landing/PricingTable.tsx b/src/components/landing/PricingTable.tsx deleted file mode 100644 index 6e3193a..0000000 --- a/src/components/landing/PricingTable.tsx +++ /dev/null @@ -1,51 +0,0 @@ -export function PricingTable() { - const rows = [ - { referrals: "1 Referral", order: "1 monthly Gold Subscription", earn: "$24 / month" }, - { referrals: "1 Referral", order: "1 monthly Diamond Subscription", earn: "$58 / month" }, - { referrals: "2 Referrals", order: "2 monthly Gold Subscriptions", earn: "$48 / month" }, - { referrals: "5 Referrals", order: "5 monthly Diamond Subscriptions", earn: "$290 / month" }, - ] - - return ( -
- {/* Decorative Glow */} -
-
- -
-

- How much can you get paid? -

- -
- - - - - - - - - - {rows.map((row, index) => ( - - - - - - ))} - - - - -
Referrals:They order:You earn:
{row.referrals}{row.order} - {row.earn} -
-
-
-
- ) -} diff --git a/src/pages/Landing.tsx b/src/pages/Landing.tsx index aa9468c..a06dcce 100644 --- a/src/pages/Landing.tsx +++ b/src/pages/Landing.tsx @@ -9,7 +9,6 @@ import { HowItWorks } from "@/components/landing/HowItWorks"; import { Navigation } from "@/components/landing/Navigation"; import PartnerTypes from "@/components/landing/PartnerTypes"; -import { PricingTable } from "@/components/landing/PricingTable"; import Resources from "@/components/landing/Resources"; import Stats from "@/components/landing/Stats"; import { Testimonials } from "@/components/landing/Testimonials"; @@ -26,7 +25,6 @@ const Landing: React.FC = () => { -