|
| 1 | +import React from "react"; |
| 2 | +import { ChevronRight } from "lucide-react"; |
| 3 | + |
| 4 | +import { Marquee } from "@devnomic/marquee"; |
| 5 | +import "@devnomic/marquee/dist/index.css"; |
| 6 | + |
| 7 | +function TestimonialCard({ name, avatar, content }) { |
| 8 | + return ( |
| 9 | + <div className="w-60 mb-6 break-inside-avoid space-y-3 rounded-2xl bg-gray-800/50 border border-gray-700/50 px-5 py-3 text-sm shadow-sm p-6 backdrop-blur-xl hover:scale-[1.02] transition duration-200 ease-out"> |
| 10 | + <div className="flex items-center gap-2 mb-2"> |
| 11 | + <img |
| 12 | + src={avatar} |
| 13 | + alt={name} |
| 14 | + onError={e => { |
| 15 | + e.target.onerror = null; |
| 16 | + e.target.src = "/fallback-coin.png"; |
| 17 | + }} |
| 18 | + className="size-7 rounded-full" |
| 19 | + /> |
| 20 | + <div className="text-white font-medium">{name}</div> |
| 21 | + </div> |
| 22 | + <div className="text-gray-300 text-xs font-normal leading-relaxed">{content}</div> |
| 23 | + </div> |
| 24 | + ); |
| 25 | +} |
| 26 | + |
| 27 | +const Community = () => { |
| 28 | + const socialLinks = [ |
| 29 | + { |
| 30 | + name: "Join our Telegram", |
| 31 | + link: "https://t.me/codexbotzsupport", |
| 32 | + classes: "bg-gradient-to-r from-pink-500 to-purple-600 hover:from-pink-600 hover:to-purple-700", |
| 33 | + }, |
| 34 | + { |
| 35 | + name: "Follow on Twiiter", |
| 36 | + link: "https://x.com/givemysolback", |
| 37 | + classes: "bg-gray-800 hover:bg-gray-700 border border-gray-700 hover:border-gray-600", |
| 38 | + }, |
| 39 | + ]; |
| 40 | + |
| 41 | + const testimonialsOne = [ |
| 42 | + { |
| 43 | + name: "StellarFox", |
| 44 | + quote: "What impressed me most was the transparency—no hidden steps, just clear results.", |
| 45 | + avatar: "https://gateway.irys.xyz/qkA9eXvVtsDu5hr4BNYzyILngrDzkTGKoSOxzDS5iaQ", |
| 46 | + }, |
| 47 | + { |
| 48 | + name: "Jordan Lee", |
| 49 | + quote: "Super easy to use—felt like it was made for everyday users like me.", |
| 50 | + avatar: "https://sapphire-working-koi-276.mypinata.cloud/ipfs/bafybeihvuo6kkggegbfykumeldyfaxnexmzjqxiouakwsjbfgwz7zq6k5a", |
| 51 | + }, |
| 52 | + { |
| 53 | + name: "AlphaDrip", |
| 54 | + quote: "A reliable tool that actually does what it says—no unnecessary steps.", |
| 55 | + avatar: "https://ipfs.io/ipfs/Qmc4ieJEoSvAMbdN1nCFvxDqoMyXNgaJocYCYQnavztHLc", |
| 56 | + }, |
| 57 | + { |
| 58 | + name: "Emily R.", |
| 59 | + quote: "I’ve used other tools before, but this is the first one that feels built for memecoins traders.", |
| 60 | + avatar: "https://pbs.twimg.com/media/GvOsNfrWwAAwy-0?format=jpg&name=small", |
| 61 | + }, |
| 62 | + { |
| 63 | + name: "CryptoKitty", |
| 64 | + quote: "I was surprised at how quickly I could reclaim my SOL. Simple and effective!", |
| 65 | + avatar: |
| 66 | + "https://blznujiyxatc2qyysynmwqqqoreckcg2aolugfgoflsqqaiztuiq.arweave.net/CvLaJRi4Ji1DGJYay0IQdEglCNoDl0MUzirlCAEZnRE", |
| 67 | + }, |
| 68 | + { |
| 69 | + name: "Rahul Verma", |
| 70 | + quote: "Open source builds trust. If something’s unclear, I can audit it myself.", |
| 71 | + avatar: "https://pbs.twimg.com/media/F5sWrztbsAAcJRn?format=jpg&name=small", |
| 72 | + }, |
| 73 | + ]; |
| 74 | + |
| 75 | + const testimonialsTwo = [ |
| 76 | + { |
| 77 | + name: "DeFiNomad", |
| 78 | + quote: "I was skeptical at first, but the process worked flawlessly. Now I recommend it to my trading friends", |
| 79 | + avatar: "https://ipfs.io/ipfs/QmQKuTQySG6t6pW2gV3vfmrXEQ2wJkwyqyhKRorPjZpHt7", |
| 80 | + }, |
| 81 | + { |
| 82 | + name: "LunaPark", |
| 83 | + quote: "As someone trading daily, this helped me free up SOL I didn’t even realize was locked. Every bit counts.", |
| 84 | + avatar: "https://node1.irys.xyz/vvXjvBJwlLTudsD-gxFCXDkZ7CCbLutxUKDhvGIEyhM", |
| 85 | + }, |
| 86 | + { |
| 87 | + name: "BlockNinja", |
| 88 | + quote: "The app works exactly as promised. No confusing steps, just results.", |
| 89 | + avatar: "https://cdn.moonshot.com/OzN3OPbPavejWdQAJX4twX1z.jpg", |
| 90 | + }, |
| 91 | + { |
| 92 | + name: "NFTSlayer", |
| 93 | + quote: "It saved me from losing small amounts of SOL I didn’t even notice before.", |
| 94 | + avatar: "https://ipfs.io/ipfs/QmdAQCAKXr2jEDSHwn5XjtWWWMuhB4xCmDhNTqmYgWSuva", |
| 95 | + }, |
| 96 | + { |
| 97 | + name: "Alex M", |
| 98 | + quote: "Really impressed with how smooth the process is. Definitely useful.", |
| 99 | + avatar: "https://pbs.twimg.com/media/Gy4Mp1PasAAV6C_?format=jpg&name=900x900", |
| 100 | + }, |
| 101 | + { |
| 102 | + name: "ChainSurfer", |
| 103 | + quote: "Knowing the app is open source makes me trust it even more. Transparency matters in crypto.", |
| 104 | + avatar: "https://pbs.twimg.com/media/GvPxx0LWIAAoUoa?format=jpg&name=small", |
| 105 | + }, |
| 106 | + ]; |
| 107 | + |
| 108 | + return ( |
| 109 | + <section className="py-12"> |
| 110 | + <div className="text-center mb-6"> |
| 111 | + <h2 className="text-3xl sm:text-4xl font-bold text-white mb-2">Join the community</h2> |
| 112 | + <p className="text-base text-gray-400 max-w-2xl mx-auto"> |
| 113 | + Discover what our community has to say about their amazing experiences. |
| 114 | + </p> |
| 115 | + </div> |
| 116 | + |
| 117 | + <div className="flex flex-wrap justify-center gap-6 mb-16"> |
| 118 | + <div className="flex flex-wrap justify-center gap-3"> |
| 119 | + {socialLinks.map((btn, idx) => ( |
| 120 | + <a |
| 121 | + key={idx} |
| 122 | + href={btn.link} |
| 123 | + target="_blank" |
| 124 | + rel="noopener noreferrer" |
| 125 | + className={`px-6 py-2.5 rounded-lg font-semibold text-white shadow-xl ${btn.classes}`} |
| 126 | + > |
| 127 | + <p className="flex items-center space-x-2"> |
| 128 | + <span>{btn.name} </span> |
| 129 | + <ChevronRight className="w-4 h-4" /> |
| 130 | + </p> |
| 131 | + </a> |
| 132 | + ))} |
| 133 | + </div> |
| 134 | + </div> |
| 135 | + |
| 136 | + <Marquee fade={true} pauseOnHover={true}> |
| 137 | + {testimonialsOne.map((testimonial, i) => ( |
| 138 | + <TestimonialCard key={i} name={testimonial.name} avatar={testimonial.avatar} content={testimonial.quote} /> |
| 139 | + ))} |
| 140 | + </Marquee> |
| 141 | + <Marquee reverse={true} fade={true} pauseOnHover={true}> |
| 142 | + {testimonialsTwo.map((testimonial, i) => ( |
| 143 | + <TestimonialCard key={i} name={testimonial.name} avatar={testimonial.avatar} content={testimonial.quote} /> |
| 144 | + ))} |
| 145 | + </Marquee> |
| 146 | + </section> |
| 147 | + ); |
| 148 | +}; |
| 149 | + |
| 150 | +export default Community; |
0 commit comments