Skip to content

Commit 0c903fd

Browse files
Refactor: Improve Financial Freedom section
- Updated title to "Bless" and "Financial Freedom for the Free Earth" on two lines. - Adjusted text alignment within the main content section. - Removed the TradingView dominance widget due to visibility issues.
1 parent 96f1d82 commit 0c903fd

File tree

1 file changed

+13
-46
lines changed

1 file changed

+13
-46
lines changed

src/components/FinancialFreedomSection.tsx

Lines changed: 13 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,11 @@ const FinancialFreedomSection = () => {
1313
script.async = true;
1414
document.head.appendChild(script);
1515

16-
// Load TradingView widget script
17-
const tradingViewScript = document.createElement('script');
18-
tradingViewScript.type = 'text/javascript';
19-
tradingViewScript.src = 'https://s3.tradingview.com/external-embedding/embed-widget-symbol-info.js';
20-
tradingViewScript.async = true;
21-
document.head.appendChild(tradingViewScript);
22-
2316
return () => {
2417
// Cleanup scripts on unmount
2518
if (document.head.contains(script)) {
2619
document.head.removeChild(script);
2720
}
28-
if (document.head.contains(tradingViewScript)) {
29-
document.head.removeChild(tradingViewScript);
30-
}
3121
};
3222
}, []);
3323

@@ -60,19 +50,21 @@ const FinancialFreedomSection = () => {
6050
<div className="absolute inset-0 bg-gradient-radial from-alien-green/5 via-transparent to-transparent" />
6151

6252
<div className="container mx-auto px-4 relative z-10">
63-
{/* Header Section - Centered and Balanced */}
53+
{/* Header Section - Two Line Title */}
6454
<motion.div
6555
initial={{ opacity: 0, y: 30 }}
6656
whileInView={{ opacity: 1, y: 0 }}
6757
transition={{ duration: 0.8 }}
6858
viewport={{ once: true }}
6959
className="text-center mb-16"
7060
>
71-
<div className="inline-block relative mb-8">
72-
<h2 className="text-5xl md:text-7xl font-bold mb-4 text-alien-gold text-glow font-nasalization tracking-wider">
73-
₿£€$$ <span className="text-3xl md:text-4xl text-alien-green">Financial Freedom for the Free Earth</span>
61+
<div className="space-y-4">
62+
<h2 className="text-6xl md:text-8xl font-bold text-alien-gold font-nasalization tracking-wider">
63+
₿£€$$
7464
</h2>
75-
<div className="absolute -inset-4 bg-gradient-to-r from-alien-gold/20 to-alien-green/20 blur-xl rounded-full" />
65+
<h3 className="text-3xl md:text-5xl font-bold text-alien-green font-nasalization tracking-wide">
66+
Financial Freedom for the Free Earth
67+
</h3>
7668
</div>
7769
</motion.div>
7870

@@ -89,15 +81,15 @@ const FinancialFreedomSection = () => {
8981
Any individual or professional can understand the advantage of digital Money:
9082
</p>
9183

92-
<div className="space-y-6 text-left max-w-3xl mx-auto">
93-
<div className="flex items-start gap-4">
84+
<div className="space-y-6 text-center max-w-3xl mx-auto">
85+
<div className="flex items-center justify-center gap-4">
9486
<span className="text-alien-gold text-xl">·</span>
9587
<p className="text-lg text-gray-300 font-[Exo] leading-relaxed">
9688
<span className="text-alien-gold font-semibold">Impartial Money:</span> that does not discriminate.
9789
</p>
9890
</div>
9991

100-
<div className="flex items-start gap-4">
92+
<div className="flex items-center justify-center gap-4">
10193
<span className="text-alien-gold text-xl">·</span>
10294
<p className="text-lg text-gray-300 font-[Exo] leading-relaxed">
10395
<span className="text-alien-green font-semibold">Decentralized Currencies:</span> Scalable and Stable with the Volatility for Safe Reserves of Values.
@@ -197,16 +189,15 @@ const FinancialFreedomSection = () => {
197189
<span className="text-alien-gold font-semibold font-[Exo]">Interoperable</span>
198190
</motion.div>
199191

200-
{/* Widgets Section - Side by Side */}
192+
{/* CoinMarketCap Widget - Solo este */}
201193
<motion.div
202194
initial={{ opacity: 0, y: 20 }}
203195
whileInView={{ opacity: 1, y: 0 }}
204196
transition={{ duration: 0.6, delay: 0.9 }}
205197
viewport={{ once: true }}
206-
className="grid md:grid-cols-2 gap-6 max-w-4xl mx-auto"
198+
className="max-w-2xl mx-auto"
207199
>
208-
{/* CoinMarketCap Widget */}
209-
<div className="bg-alien-space-dark/50 rounded-lg border border-alien-gold/20 p-4">
200+
<div className="bg-alien-space-dark/50 rounded-lg border border-alien-gold/20 p-6">
210201
<h4 className="text-lg font-bold text-alien-gold font-nasalization mb-4 text-center">Bitcoin Price</h4>
211202
<div
212203
className="coinmarketcap-currency-widget"
@@ -221,30 +212,6 @@ const FinancialFreedomSection = () => {
221212
data-stats="USD"
222213
></div>
223214
</div>
224-
225-
{/* TradingView Bitcoin Dominance Widget */}
226-
<div className="bg-alien-space-dark/50 rounded-lg border border-alien-green/20 p-4">
227-
<h4 className="text-lg font-bold text-alien-green font-nasalization mb-4 text-center">Bitcoin Dominance</h4>
228-
<div className="tradingview-widget-container h-48">
229-
<div
230-
className="tradingview-widget-container__widget h-full"
231-
dangerouslySetInnerHTML={{
232-
__html: `
233-
<script type="text/javascript" src="https://s3.tradingview.com/external-embedding/embed-widget-symbol-info.js" async>
234-
{
235-
"symbol": "CRYPTOCAP:BTC.D",
236-
"width": "100%",
237-
"height": "192",
238-
"locale": "en",
239-
"colorTheme": "dark",
240-
"isTransparent": true
241-
}
242-
</script>
243-
`
244-
}}
245-
/>
246-
</div>
247-
</div>
248215
</motion.div>
249216
</div>
250217
</motion.div>

0 commit comments

Comments
 (0)