|
1 | 1 |
|
2 | | -import React from 'react'; |
| 2 | +import React, { useEffect } from 'react'; |
3 | 3 | import { motion } from 'framer-motion'; |
4 | | -import { Bitcoin, Landmark, Coins } from 'lucide-react'; |
| 4 | +import { Bitcoin, TrendingUp, Shield } from 'lucide-react'; |
5 | 5 | import AnimatedText from './AnimatedText'; |
6 | 6 |
|
7 | 7 | const FinancialFreedomSection = () => { |
| 8 | + useEffect(() => { |
| 9 | + // Load CoinMarketCap widget script |
| 10 | + const script = document.createElement('script'); |
| 11 | + script.type = 'text/javascript'; |
| 12 | + script.src = 'https://files.coinmarketcap.com/static/widget/currency.js'; |
| 13 | + script.async = true; |
| 14 | + document.head.appendChild(script); |
| 15 | + |
| 16 | + return () => { |
| 17 | + // Cleanup script on unmount |
| 18 | + if (document.head.contains(script)) { |
| 19 | + document.head.removeChild(script); |
| 20 | + } |
| 21 | + }; |
| 22 | + }, []); |
| 23 | + |
8 | 24 | return ( |
9 | | - <section className="py-20 relative overflow-hidden"> |
| 25 | + <section className="py-16 relative overflow-hidden"> |
10 | 26 | <div className="container mx-auto px-4"> |
11 | 27 | <motion.div |
12 | | - initial={{ |
13 | | - opacity: 0, |
14 | | - }} |
15 | | - whileInView={{ |
16 | | - opacity: 1, |
17 | | - }} |
18 | | - transition={{ |
19 | | - duration: 0.8, |
20 | | - }} |
21 | | - viewport={{ |
22 | | - once: true, |
23 | | - }} |
24 | | - className="text-center mb-12" |
| 28 | + initial={{ opacity: 0 }} |
| 29 | + whileInView={{ opacity: 1 }} |
| 30 | + transition={{ duration: 0.8 }} |
| 31 | + viewport={{ once: true }} |
| 32 | + className="text-center mb-8" |
25 | 33 | > |
26 | | - <h2 className="text-4xl font-bold mb-6 text-alien-gold text-glow font-nasalization"> |
27 | | - Financial Freedom |
| 34 | + <h2 className="text-4xl font-bold mb-4 text-alien-gold text-glow font-nasalization"> |
| 35 | + ₿£€$$ |
28 | 36 | </h2> |
| 37 | + <h3 className="text-3xl font-bold mb-6 text-alien-gold text-glow font-nasalization"> |
| 38 | + Financial Freedom |
| 39 | + </h3> |
29 | 40 |
|
30 | | - <div className="flex justify-center mb-8"> |
31 | | - <Bitcoin className="text-alien-gold h-16 w-16 mr-4" /> |
32 | | - <Landmark className="text-alien-green h-16 w-16 mx-4" /> |
33 | | - <Coins className="text-alien-gold h-16 w-16 ml-4" /> |
| 41 | + <div className="flex justify-center mb-6 gap-8"> |
| 42 | + <Bitcoin className="text-alien-gold h-12 w-12" /> |
| 43 | + <TrendingUp className="text-alien-green h-12 w-12" /> |
| 44 | + <Shield className="text-alien-gold h-12 w-12" /> |
34 | 45 | </div> |
35 | 46 |
|
36 | | - <AnimatedText className="text-xl max-w-5xl mx-auto text-gray-300 font-[Exo] leading-relaxed"> |
37 | | - Any Individual or Professional can Understand the Advantage of Digital Money: Impartial Money that does not discriminate, Decentralized Currencies, Scalable and Stable with the Volatility. Safe Reserves of Values, allowing individuals to secure their wealth while enjoying the benefits of a decentralized economy. |
38 | | - </AnimatedText> |
39 | | - <AnimatedText className="text-xl max-w-5xl mx-auto text-gray-300 font-[Exo] leading-relaxed mt-4"> |
40 | | - Access with Cryptokens and NFTs to Order & Generate All Types of Experiences, Products & Services According to your Demands Instantly... |
41 | | - </AnimatedText> |
| 47 | + <div className="max-w-5xl mx-auto space-y-4 mb-8"> |
| 48 | + <AnimatedText className="text-lg text-gray-300 font-[Exo] leading-relaxed"> |
| 49 | + Any Individual or Professional can Understand the Advantage of Digital Money: |
| 50 | + </AnimatedText> |
| 51 | + <AnimatedText className="text-lg text-gray-300 font-[Exo] leading-relaxed"> |
| 52 | + Impartial Money that does not discriminate, Decentralized Currencies, Scalable and Stable with the Volatility for Safe Reserves of Values, allowing individuals to secure their wealth while enjoying the benefits of a decentralized economy. |
| 53 | + </AnimatedText> |
| 54 | + <AnimatedText className="text-lg text-gray-300 font-[Exo] leading-relaxed"> |
| 55 | + Access with Cryptokens and NFTs to Order & Generate All Types of Experiences, Products & Services According to your Demands Instantly... |
| 56 | + </AnimatedText> |
| 57 | + </div> |
42 | 58 | </motion.div> |
43 | 59 |
|
44 | 60 | {/* ABTC Token Highlight */} |
45 | 61 | <motion.div |
46 | | - initial={{ |
47 | | - opacity: 0, |
48 | | - scale: 0.9, |
49 | | - }} |
50 | | - whileInView={{ |
51 | | - opacity: 1, |
52 | | - scale: 1, |
53 | | - }} |
54 | | - transition={{ |
55 | | - duration: 0.8, |
56 | | - delay: 0.5, |
57 | | - }} |
58 | | - viewport={{ |
59 | | - once: true, |
60 | | - }} |
61 | | - className="card-border p-8 max-w-3xl mx-auto text-center" |
| 62 | + initial={{ opacity: 0, scale: 0.9 }} |
| 63 | + whileInView={{ opacity: 1, scale: 1 }} |
| 64 | + transition={{ duration: 0.8, delay: 0.3 }} |
| 65 | + viewport={{ once: true }} |
| 66 | + className="card-border p-6 max-w-4xl mx-auto text-center mb-8" |
62 | 67 | > |
63 | 68 | <h3 className="text-2xl font-bold mb-3 text-alien-gold font-nasalization"> |
64 | 69 | A₿tc (Aurum nostrum non est aurum vulgi) |
65 | 70 | </h3> |
66 | 71 | <p className="text-gray-300 mb-4 font-[Exo]"> |
67 | 72 | Aurum ₿itoin cryptoken serves as collateral and derivative of Bitcoin and gold, providing scalability, stability and growth potential (Φπ)... |
68 | 73 | </p> |
69 | | - <div className="inline-block bg-alien-space-dark px-4 py-2 rounded-full text-alien-green border border-alien-green/30"> |
| 74 | + <div className="inline-block bg-alien-space-dark px-4 py-2 rounded-full text-alien-green border border-alien-green/30 mb-6"> |
70 | 75 | • Bitcoin-backed + Interoperable |
71 | 76 | </div> |
| 77 | + |
| 78 | + {/* CoinMarketCap Widget */} |
| 79 | + <div className="mt-6 flex justify-center"> |
| 80 | + <div |
| 81 | + className="coinmarketcap-currency-widget" |
| 82 | + data-currencyid="1" |
| 83 | + data-base="USD" |
| 84 | + data-secondary="BTC" |
| 85 | + data-ticker="true" |
| 86 | + data-rank="true" |
| 87 | + data-marketcap="true" |
| 88 | + data-volume="true" |
| 89 | + data-statsticker="true" |
| 90 | + data-stats="USD" |
| 91 | + ></div> |
| 92 | + </div> |
72 | 93 | </motion.div> |
73 | 94 | </div> |
74 | 95 | </section> |
|
0 commit comments