Skip to content

Commit c075c62

Browse files
authored
Update Hero.tsx
Signed-off-by: Aitor Alien <[email protected]>
1 parent 93dac03 commit c075c62

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

src/components/Hero.tsx

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const Hero: React.FC = () => {
1616
if (spacesSection) spacesSection.scrollIntoView({ behavior: 'smooth' });
1717
};
1818

19-
if (!mounted) return <div className="min-h-[calc(100vh-4rem)] bg-alien-space"></div>;
19+
if (!mounted) return null; // ✅ Eliminado flash "loading..."
2020

2121
return (
2222
<section className="relative flex flex-col items-center justify-center min-h-[calc(100vh-4rem)] py-16 overflow-hidden">
@@ -42,8 +42,8 @@ const Hero: React.FC = () => {
4242

4343
{/* Título */}
4444
<motion.h1
45-
initial={{ scale: 0.5, opacity: 0 }}
46-
animate={{ scale: 1, opacity: 1 }}
45+
initial={{ opacity: 0, y: -30 }}
46+
animate={{ opacity: 1, y: 0 }}
4747
transition={{ duration: 1.2, ease: 'easeOut' }}
4848
className="text-3xl sm:text-4xl lg:text-6xl font-nasalization font-extrabold leading-tight text-center sw-title-glow mb-6"
4949
>
@@ -54,23 +54,18 @@ const Hero: React.FC = () => {
5454
</motion.h1>
5555

5656
{/* Crawl Star Wars */}
57-
<div className="star-wars-crawl perspective-400 relative">
58-
<motion.div
59-
className="star-wars-content readable-glow font-exo text-center text-[clamp(1rem,1.8vw,1.25rem)] md:text-[clamp(1.1rem,1.6vw,1.35rem)] text-alien-green font-semibold"
60-
initial={{ translateY: '100%' }}
61-
animate={{ translateY: '-120%' }}
62-
transition={{ duration: 60, ease: 'linear', repeat: Infinity }}
63-
>
64-
<p className="mb-2">
57+
<div className="star-wars-crawl">
58+
<div className="star-wars-content">
59+
<p>
6560
Access the DAO with Innovative Solutions, Unlocks Energy Efficiency & Environmental Sustainability.
6661
</p>
6762
<p>
6863
Advantages Boosting the BENEFITS, for Connecting you and Raise your QUALITY of LIFE, with Mutual PROFITS…
6964
</p>
70-
</motion.div>
65+
</div>
7166
</div>
7267

73-
{/* Botones originales */}
68+
{/* Botones */}
7469
<motion.div
7570
className="flex flex-wrap justify-center gap-4 mt-8"
7671
initial={{ opacity: 0, y: 20 }}

0 commit comments

Comments
 (0)