Skip to content

Commit 2b094b3

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

File tree

1 file changed

+64
-58
lines changed

1 file changed

+64
-58
lines changed

src/components/Hero.tsx

Lines changed: 64 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import React from 'react';
32
import { motion } from 'framer-motion';
43
import { Button } from '@/components/ui/button';
@@ -13,95 +12,102 @@ const Hero = () => {
1312
}
1413
};
1514

16-
return <div className="relative min-h-[calc(100vh-4rem)] flex flex-col items-center justify-center py-16 overflow-hidden">
15+
return (
16+
<section className="relative flex flex-col items-center justify-center min-h-[calc(100vh-4rem)] py-16 overflow-hidden">
17+
{/* Fondo con estrellas + glow */}
18+
<div className="absolute inset-0 bg-stars bg-cover bg-center opacity-40 animate-pulse-glow"></div>
19+
<div className="absolute inset-0 bg-glow-radial"></div>
20+
21+
{/* Contenido */}
1722
<div className="container relative z-10 px-4 mx-auto text-center">
18-
<motion.div initial={{
19-
opacity: 0,
20-
y: 20
21-
}} animate={{
22-
opacity: 1,
23-
y: 0
24-
}} transition={{
25-
duration: 0.8
26-
}} className="mb-8">
27-
<div className="flex flex-col justify-center items-center mb-6 relative">
28-
<motion.img src="/lovable-uploads/ALogo.png" alt="AlienFlowSpaceDAO Logo" className="h-24 md:h-28 gold-glow z-20" initial={{
29-
scale: 0.8
30-
}} animate={{
31-
scale: [1, 1.05, 1],
32-
rotate: [0, 2, 0],
33-
y: [0, -10, 0]
34-
}} transition={{
35-
duration: 6,
36-
repeat: Infinity,
37-
repeatType: "reverse"
38-
}} />
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"
29+
>
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+
/>
3943
</div>
40-
44+
45+
{/* Título estilo Star Wars */}
4146
<div className="star-wars-crawl mb-4">
4247
<div className="star-wars-content py-4">
43-
<h1 style={{
44-
fontFamily: "'Nasalization', sans-serif !important",
45-
letterSpacing: '0.02em'
46-
}} className="text-3xl sm:text-4xl lg:text-6xl mb-3 sw-title-glow text-center font-nasalization leading-tight md:text-6xl">
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+
>
4751
<span className="text-alien-green">Δlieπ</span>
4852
<span className="text-alien-gold">FlΦw</span>
4953
<span className="text-alien-green"> $pac€</span>
5054
<span className="text-alien-gold"> DAO</span>
5155
</h1>
5256
</div>
5357
</div>
54-
58+
59+
{/* Subtexto descriptivo */}
5560
<div className="star-wars-crawl mb-4">
5661
<div className="star-wars-content py-2">
57-
<motion.div className="readable-panel text-[clamp(1rem,1.8vw,1.25rem)] md:text-[clamp(1.1rem,1.6vw,1.35rem)] text-foreground readable-glow max-w-4xl mx-auto font-[Exo] text-center leading-relaxed" style={{
58-
letterSpacing: '0.01em'
59-
}} initial={{
60-
opacity: 0
61-
}} animate={{
62-
opacity: 1
63-
}} transition={{
64-
delay: 0.3,
65-
duration: 0.8
66-
}}>
67-
<p className="mb-2">Access the DAO with Innovative Solutions, Unlocks Energy Efficiency & Environmental Sustainability.</p>
68-
<p>Advantages Boosting the BENEFITS, for Connecting you and Raise your QUALITY of LIFE, with Mutual PROFITS…</p>
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>
6976
</motion.div>
7077
</div>
7178
</div>
7279
</motion.div>
73-
74-
<motion.div className="flex flex-wrap justify-center gap-4 mt-8" initial={{
75-
opacity: 0,
76-
y: 20
77-
}} animate={{
78-
opacity: 1,
79-
y: 0
80-
}} transition={{
81-
delay: 0.5,
82-
duration: 0.8
83-
}}>
80+
81+
{/* Botones */}
82+
<motion.div
83+
className="flex flex-wrap justify-center gap-4 mt-8"
84+
initial={{ opacity: 0, y: 20 }}
85+
animate={{ opacity: 1, y: 0 }}
86+
transition={{ delay: 0.5, duration: 0.8 }}
87+
>
8488
<Link to="/about">
85-
<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">
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">
8690
<Orbit className="mr-2 h-4 w-4" /> About Enter Portal
8791
</Button>
8892
</Link>
89-
93+
9094
<Link to="/alien-trip">
91-
<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">
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">
9296
<ScrollText className="mr-2 h-4 w-4" /> Alientrip Manifesto
9397
</Button>
9498
</Link>
9599

96-
<Button
100+
<Button
97101
onClick={scrollToSpaces}
98-
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"
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"
99103
>
100104
<Globe className="mr-2 h-4 w-4" /> Join the Journey
101105
</Button>
102106
</motion.div>
103107
</div>
104-
</div>;
108+
</section>
109+
);
105110
};
106111

107112
export default Hero;
113+

0 commit comments

Comments
 (0)