Skip to content

Commit 4b34737

Browse files
authored
Update Hero.tsx
Signed-off-by: Aitor Alien <[email protected]>
1 parent 2b094b3 commit 4b34737

File tree

1 file changed

+35
-67
lines changed

1 file changed

+35
-67
lines changed

src/components/Hero.tsx

Lines changed: 35 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -4,102 +4,71 @@ import { Button } from '@/components/ui/button';
44
import { ScrollText, Globe, Orbit } from 'lucide-react';
55
import { Link } from 'react-router-dom';
66

7-
const Hero = () => {
7+
const Hero: React.FC = () => {
88
const scrollToSpaces = () => {
99
const spacesSection = document.querySelector('[data-section="explore-spaces"]');
10-
if (spacesSection) {
11-
spacesSection.scrollIntoView({ behavior: 'smooth' });
12-
}
10+
if (spacesSection) spacesSection.scrollIntoView({ behavior: 'smooth' });
1311
};
1412

1513
return (
1614
<section className="relative flex flex-col items-center justify-center min-h-[calc(100vh-4rem)] py-16 overflow-hidden">
17-
{/* Fondo con estrellas + glow */}
15+
{/* Fondo de estrellas */}
1816
<div className="absolute inset-0 bg-stars bg-cover bg-center opacity-40 animate-pulse-glow"></div>
1917
<div className="absolute inset-0 bg-glow-radial"></div>
2018

21-
{/* Contenido */}
2219
<div className="container relative z-10 px-4 mx-auto text-center">
23-
{/* Logo animado */}
24-
<motion.div
25-
initial={{ opacity: 0, y: 20 }}
26-
animate={{ opacity: 1, y: 0 }}
27-
transition={{ duration: 0.8 }}
28-
className="mb-8"
20+
{/* Título con efecto lightspeed */}
21+
<motion.h1
22+
initial={{ scale: 0.5, opacity: 0 }}
23+
animate={{ scale: 1, opacity: 1 }}
24+
transition={{ duration: 1.2, ease: 'easeOut' }}
25+
className="text-3xl sm:text-4xl lg:text-6xl mb-6 font-nasalization font-extrabold text-center sw-title-glow leading-tight text-alien-gold"
2926
>
30-
<div className="flex flex-col items-center justify-center mb-6">
31-
<motion.img
32-
src="/lovable-uploads/ALogo.png"
33-
alt="AlienFlowSpaceDAO Logo"
34-
className="h-24 md:h-28 gold-glow z-20"
35-
initial={{ scale: 0.8 }}
36-
animate={{
37-
scale: [1, 1.05, 1],
38-
rotate: [0, 2, 0],
39-
y: [0, -10, 0],
40-
}}
41-
transition={{ duration: 6, repeat: Infinity, repeatType: 'reverse' }}
42-
/>
43-
</div>
44-
45-
{/* Título estilo Star Wars */}
46-
<div className="star-wars-crawl mb-4">
47-
<div className="star-wars-content py-4">
48-
<h1
49-
className="text-3xl sm:text-4xl lg:text-6xl mb-3 sw-title-glow font-nasalization leading-tight md:text-6xl text-center"
50-
>
51-
<span className="text-alien-green">Δlieπ</span>
52-
<span className="text-alien-gold">FlΦw</span>
53-
<span className="text-alien-green"> $pac€</span>
54-
<span className="text-alien-gold"> DAO</span>
55-
</h1>
56-
</div>
57-
</div>
27+
<span className="text-alien-green">Δlieπ</span>
28+
<span className="text-alien-gold">FlΦw</span>
29+
<span className="text-alien-green"> $pac€</span>
30+
<span className="text-alien-gold"> DAO</span>
31+
</motion.h1>
5832

59-
{/* Subtexto descriptivo */}
60-
<div className="star-wars-crawl mb-4">
61-
<div className="star-wars-content py-2">
62-
<motion.div
63-
className="readable-panel readable-glow text-foreground max-w-4xl mx-auto font-exo text-center leading-relaxed text-[clamp(1rem,1.8vw,1.25rem)] md:text-[clamp(1.1rem,1.6vw,1.35rem)]"
64-
initial={{ opacity: 0 }}
65-
animate={{ opacity: 1 }}
66-
transition={{ delay: 0.3, duration: 0.8 }}
67-
>
68-
<p className="mb-2">
69-
Access the DAO with Innovative Solutions, Unlocks Energy Efficiency &
70-
Environmental Sustainability.
71-
</p>
72-
<p>
73-
Advantages Boosting the BENEFITS, for Connecting you and Raise your
74-
QUALITY of LIFE, with Mutual PROFITS…
75-
</p>
76-
</motion.div>
77-
</div>
78-
</div>
79-
</motion.div>
33+
{/* Subtextos con Star Wars Crawl */}
34+
<div className="star-wars-crawl relative">
35+
<motion.div
36+
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)]"
37+
initial={{ translateY: '100%' }}
38+
animate={{ translateY: '-120%' }}
39+
transition={{ duration: 60, ease: 'linear', repeat: Infinity }}
40+
>
41+
<p className="mb-2">
42+
Access the DAO with Innovative Solutions, Unlocks Energy Efficiency & Environmental Sustainability.
43+
</p>
44+
<p>
45+
Advantages Boosting the BENEFITS, for Connecting you and Raise your QUALITY of LIFE, with Mutual PROFITS…
46+
</p>
47+
</motion.div>
48+
</div>
8049

81-
{/* Botones */}
50+
{/* Botones animados */}
8251
<motion.div
8352
className="flex flex-wrap justify-center gap-4 mt-8"
8453
initial={{ opacity: 0, y: 20 }}
8554
animate={{ opacity: 1, y: 0 }}
86-
transition={{ delay: 0.5, duration: 0.8 }}
55+
transition={{ delay: 1.5, duration: 1 }}
8756
>
8857
<Link to="/about">
89-
<Button className="bg-alien-green text-alien-gold hover:bg-alien-gold hover:text-alien-green font-nasalization px-6 sm:px-8 py-4 sm:py-5 text-sm sm:text-base rounded-full transition-colors shadow-lg shadow-alien-green/30">
58+
<Button className="bg-alien-green-dark text-alien-gold hover:bg-alien-gold hover:text-alien-green-dark font-nasalization px-6 sm:px-8 py-4 sm:py-5 text-sm sm:text-base rounded-full transition-colors shadow-lg shadow-alien-green-dark/40">
9059
<Orbit className="mr-2 h-4 w-4" /> About Enter Portal
9160
</Button>
9261
</Link>
9362

9463
<Link to="/alien-trip">
95-
<Button className="bg-alien-green text-alien-gold hover:bg-alien-gold hover:text-alien-green font-nasalization px-6 sm:px-8 py-4 sm:py-5 text-sm sm:text-base rounded-full transition-colors shadow-lg shadow-alien-green/30">
64+
<Button className="bg-alien-green-dark text-alien-gold hover:bg-alien-gold hover:text-alien-green-dark font-nasalization px-6 sm:px-8 py-4 sm:py-5 text-sm sm:text-base rounded-full transition-colors shadow-lg shadow-alien-green-dark/40">
9665
<ScrollText className="mr-2 h-4 w-4" /> Alientrip Manifesto
9766
</Button>
9867
</Link>
9968

10069
<Button
10170
onClick={scrollToSpaces}
102-
className="bg-alien-green text-alien-gold hover:bg-alien-gold hover:text-alien-green font-nasalization px-6 sm:px-8 py-4 sm:py-5 text-sm sm:text-base rounded-full transition-colors shadow-lg shadow-alien-green/30"
71+
className="bg-alien-green-dark text-alien-gold hover:bg-alien-gold hover:text-alien-green-dark font-nasalization px-6 sm:px-8 py-4 sm:py-5 text-sm sm:text-base rounded-full transition-colors shadow-lg shadow-alien-green-dark/40"
10372
>
10473
<Globe className="mr-2 h-4 w-4" /> Join the Journey
10574
</Button>
@@ -110,4 +79,3 @@ const Hero = () => {
11079
};
11180

11281
export default Hero;
113-

0 commit comments

Comments
 (0)