diff --git a/src/app/page.tsx b/src/app/page.tsx index 5559aa0..03c8fb1 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -14,6 +14,26 @@ import PricingCardThree from '@/components/sections/pricing/PricingCardThree'; import TestimonialCardTen from '@/components/sections/testimonial/TestimonialCardTen'; export default function LandingPage() { + const handlePayment = (price: string) => { + const script = document.createElement("script"); + script.src = "https://checkout.razorpay.com/v1/checkout.js"; + script.onload = () => { + const options = { + key: "YOUR_RAZORPAY_KEY", amount: parseInt(price.replace(/\D/g, "")) * 100 * 21, + currency: "INR", name: "TechPlatform", description: "Purchase of 21 units", handler: async (response: any) => { + alert("Payment Successful! Ref: " + response.razorpay_payment_id); + await fetch("/api/submit-lead", { + method: "POST", body: JSON.stringify({ paymentId: response.razorpay_payment_id, units: 21 }), + }); + }, + theme: { color: "#3b82f6" }, + }; + const rzp = new (window as any).Razorpay(options); + rzp.open(); + }; + document.body.appendChild(script); + }; + return ( @@ -54,20 +62,12 @@ export default function LandingPage() {
handlePayment("$29") }], features: ["1 User", "Basic Analytics", "Email Support"] }, + { id: "pro", price: "$99", name: "Professional", badge: "Popular", buttons: [{ text: "Buy Pro", onClick: () => handlePayment("$99") }], features: ["5 Users", "Advanced Analytics", "24/7 Support"] }, + { id: "enterprise", price: "$299", name: "Enterprise", buttons: [{ text: "Buy Enterprise", onClick: () => handlePayment("$299") }], features: ["Unlimited Users", "Full API Access", "Dedicated Manager"] }, ]} title="Flexible Plans" - description="Choose the right plan for your team size." + description="Choose the right plan for your team size. All purchases are for 21 units." />
@@ -182,33 +121,9 @@ export default function LandingPage() { textboxLayout="default" useInvertedBackground={true} metrics={[ - { - id: "m1", - value: "99.9%", - title: "Uptime", - items: [ - "Always on", - "Reliability guaranteed", - ], - }, - { - id: "m2", - value: "500+", - title: "Customers", - items: [ - "Global presence", - "Trusted leaders", - ], - }, - { - id: "m3", - value: "100M+", - title: "API Calls", - items: [ - "High throughput", - "Robust handling", - ], - }, + { id: "m1", value: "99.9%", title: "Uptime", items: ["Always on", "Reliability guaranteed"] }, + { id: "m2", value: "500+", title: "Customers", items: ["Global presence", "Trusted leaders"] }, + { id: "m3", value: "100M+", title: "API Calls", items: ["High throughput", "Robust handling"] }, ]} title="Proven Results" description="Numbers that define our impact." @@ -220,46 +135,11 @@ export default function LandingPage() { textboxLayout="default" useInvertedBackground={false} testimonials={[ - { - id: "1", - title: "Game changer", - quote: "This platform transformed our daily productivity.", - name: "Jane Doe", - role: "CTO", - imageSrc: "http://img.b2bpic.net/free-photo/stylish-bearded-hipster-male-dressed-suit-sunglasses-dark-grey-background_613910-12487.jpg", - }, - { - id: "2", - title: "Excellent service", - quote: "I've never experienced such smooth integration.", - name: "John Smith", - role: "CEO", - imageSrc: "http://img.b2bpic.net/free-photo/confident-cheerful-businesswoman_1262-21021.jpg", - }, - { - id: "3", - title: "Invaluable tool", - quote: "A must-have for any serious tech startup.", - name: "Alice Wang", - role: "Lead Dev", - imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-handsome-man-black-shirt-poses-against-dark-background-standing-studio_613910-15100.jpg", - }, - { - id: "4", - title: "Pure efficiency", - quote: "Reliability like no other in the industry.", - name: "Bob Chen", - role: "Engineer", - imageSrc: "http://img.b2bpic.net/free-photo/confident-middle-aged-businesswoman_74855-1573.jpg", - }, - { - id: "5", - title: "Highly recommended", - quote: "Best platform investment we have made.", - name: "Charlie Lee", - role: "Founder", - imageSrc: "http://img.b2bpic.net/free-photo/business-woman-standing_1187-1543.jpg", - }, + { id: "1", title: "Game changer", quote: "This platform transformed our daily productivity.", name: "Jane Doe", role: "CTO", imageSrc: "http://img.b2bpic.net/free-photo/stylish-bearded-hipster-male-dressed-suit-sunglasses-dark-grey-background_613910-12487.jpg" }, + { id: "2", title: "Excellent service", quote: "I've never experienced such smooth integration.", name: "John Smith", role: "CEO", imageSrc: "http://img.b2bpic.net/free-photo/confident-cheerful-businesswoman_1262-21021.jpg" }, + { id: "3", title: "Invaluable tool", quote: "A must-have for any serious tech startup.", name: "Alice Wang", role: "Lead Dev", imageSrc: "http://img.b2bpic.net/free-photo/close-up-portrait-handsome-man-black-shirt-poses-against-dark-background-standing-studio_613910-15100.jpg" }, + { id: "4", title: "Pure efficiency", quote: "Reliability like no other in the industry.", name: "Bob Chen", role: "Engineer", imageSrc: "http://img.b2bpic.net/free-photo/confident-middle-aged-businesswoman_74855-1573.jpg" }, + { id: "5", title: "Highly recommended", quote: "Best platform investment we have made.", name: "Charlie Lee", role: "Founder", imageSrc: "http://img.b2bpic.net/free-photo/business-woman-standing_1187-1543.jpg" }, ]} title="Client Success" description="Hear what our partners have to say." @@ -271,21 +151,9 @@ export default function LandingPage() { textboxLayout="split" useInvertedBackground={true} faqs={[ - { - id: "q1", - title: "Is my data secure?", - content: "Yes, we prioritize security with enterprise-grade encryption.", - }, - { - id: "q2", - title: "Can I upgrade anytime?", - content: "Absolutely, plans are flexible and can be modified.", - }, - { - id: "q3", - title: "Do you offer support?", - content: "Our support team is available 24/7 to help you.", - }, + { id: "q1", title: "Is my data secure?", content: "Yes, we prioritize security with enterprise-grade encryption." }, + { id: "q2", title: "Can I upgrade anytime?", content: "Absolutely, plans are flexible and can be modified." }, + { id: "q3", title: "Do you offer support?", content: "Our support team is available 24/7 to help you." }, ]} imageSrc="http://img.b2bpic.net/free-photo/wireless-router-with-copy-space_23-2148295822.jpg" title="Common Questions" @@ -297,35 +165,22 @@ export default function LandingPage() {
); -} +} \ No newline at end of file