Skip to content

Commit 905c5e3

Browse files
Refine hero section design
1 parent 8a9c3b0 commit 905c5e3

File tree

2 files changed

+81
-69
lines changed

2 files changed

+81
-69
lines changed

src/components/Hero.tsx

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

19-
if (!mounted) return null; // ✅ Eliminado flash "loading..."
19+
if (!mounted) return null;
2020

2121
return (
22-
<section className="relative flex flex-col items-center justify-center min-h-[calc(100vh-4rem)] py-16 overflow-hidden">
23-
{/* Fondo de estrellas */}
24-
<div className="absolute inset-0 bg-stars bg-cover bg-center opacity-40"></div>
22+
<section className="relative flex flex-col items-center justify-center min-h-[calc(100vh-4rem)] py-12 sm:py-16 overflow-hidden">
23+
{/* Background layers */}
24+
<div className="absolute inset-0 bg-stars bg-cover bg-center opacity-30"></div>
2525
<div className="absolute inset-0 bg-glow-radial"></div>
2626

27-
<div className="container relative z-10 px-4 mx-auto text-center">
28-
{/* Logo flotante */}
27+
<div className="container relative z-10 px-4 mx-auto text-center max-w-6xl">
28+
{/* Floating logo */}
2929
<motion.img
3030
src="/lovable-uploads/ALogo.png"
3131
alt="AlienFlowSpaceDAO Logo"
32-
className="h-24 md:h-28 gold-glow z-20 mb-8 mx-auto"
33-
initial={{ scale: 0.8 }}
32+
className="h-20 sm:h-24 md:h-28 logo-glow z-20 mb-6 sm:mb-8 mx-auto"
33+
initial={{ scale: 0.9, opacity: 0 }}
3434
animate={{
35-
scale: [1, 1.05, 1],
36-
rotate: [0, 2, 0],
37-
y: [0, -10, 0]
35+
scale: [1, 1.02, 1],
36+
opacity: 1,
37+
y: [0, -5, 0]
38+
}}
39+
transition={{
40+
duration: 4,
41+
repeat: Infinity,
42+
repeatType: "reverse",
43+
opacity: { duration: 0.8 }
3844
}}
39-
transition={{ duration: 6, repeat: Infinity, repeatType: "reverse" }}
4045
loading="lazy"
4146
/>
4247

43-
{/* Título */}
48+
{/* Main title */}
4449
<motion.h1
45-
initial={{ opacity: 0, y: -30 }}
50+
initial={{ opacity: 0, y: -20 }}
4651
animate={{ opacity: 1, y: 0 }}
47-
transition={{ duration: 1.2, ease: 'easeOut' }}
48-
className="text-3xl sm:text-4xl lg:text-6xl font-nasalization font-extrabold leading-tight text-center starwars-text mb-6"
52+
transition={{ duration: 1, ease: 'easeOut' }}
53+
className="text-2xl sm:text-4xl md:text-5xl lg:text-6xl font-nasalization font-extrabold leading-tight text-center hero-title mb-8 sm:mb-12"
4954
>
5055
<span className="text-alien-green">Δlieπ</span>
5156
<span className="text-alien-gold">FlΦw</span>
5257
<span className="text-alien-green"> $pac€</span>
5358
<span className="text-alien-gold"> DAO</span>
5459
</motion.h1>
5560

56-
{/* Crawl Star Wars */}
57-
<div className="star-wars-crawl">
58-
<div className="star-wars-content starwars-text">
59-
<p>
61+
{/* Star Wars inspired description */}
62+
<motion.div
63+
className="star-wars-crawl"
64+
initial={{ opacity: 0 }}
65+
animate={{ opacity: 1 }}
66+
transition={{ delay: 0.5, duration: 1 }}
67+
>
68+
<div className="star-wars-content">
69+
<p className="mb-4 text-sm sm:text-base lg:text-lg">
6070
Access the DAO with Innovative Solutions, Unlocks Energy Efficiency & Environmental Sustainability.
6171
</p>
62-
<p>
72+
<p className="text-sm sm:text-base lg:text-lg opacity-90">
6373
Advantages Boosting the BENEFITS, for Connecting you and Raise your QUALITY of LIFE, with Mutual PROFITS…
6474
</p>
6575
</div>
66-
</div>
76+
</motion.div>
6777

68-
{/* Botones */}
78+
{/* Action buttons */}
6979
<motion.div
70-
className="flex flex-wrap justify-center gap-4 mt-8"
80+
className="flex flex-col sm:flex-row flex-wrap justify-center gap-3 sm:gap-4 mt-8 sm:mt-12"
7181
initial={{ opacity: 0, y: 20 }}
7282
animate={{ opacity: 1, y: 0 }}
73-
transition={{ delay: 1.5, duration: 1 }}
83+
transition={{ delay: 1, duration: 0.8 }}
7484
>
75-
<Link to="/about">
76-
<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">
85+
<Link to="/about" className="w-full sm:w-auto">
86+
<Button className="w-full sm:w-auto bg-alien-green text-alien-gold hover:bg-alien-gold hover:text-alien-green font-nasalization px-6 sm:px-8 py-3 sm:py-4 text-sm sm:text-base rounded-full transition-all duration-300 shadow-lg hover:shadow-xl hover:scale-105">
7787
<Orbit className="mr-2 h-4 w-4" /> About Enter Portal
7888
</Button>
7989
</Link>
8090

81-
<Link to="/alien-trip">
82-
<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">
91+
<Link to="/alien-trip" className="w-full sm:w-auto">
92+
<Button className="w-full sm:w-auto bg-alien-green text-alien-gold hover:bg-alien-gold hover:text-alien-green font-nasalization px-6 sm:px-8 py-3 sm:py-4 text-sm sm:text-base rounded-full transition-all duration-300 shadow-lg hover:shadow-xl hover:scale-105">
8393
<ScrollText className="mr-2 h-4 w-4" /> Alientrip Manifesto
8494
</Button>
8595
</Link>
8696

8797
<Button
8898
onClick={scrollToSpaces}
89-
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"
99+
className="w-full sm:w-auto bg-alien-green text-alien-gold hover:bg-alien-gold hover:text-alien-green font-nasalization px-6 sm:px-8 py-3 sm:py-4 text-sm sm:text-base rounded-full transition-all duration-300 shadow-lg hover:shadow-xl hover:scale-105"
90100
>
91101
<Globe className="mr-2 h-4 w-4" /> Join the Journey
92102
</Button>

src/index.css

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -166,63 +166,65 @@
166166
background: linear-gradient(145deg, hsl(var(--sidebar-accent)), hsl(var(--sidebar-primary)));
167167
}
168168

169-
/* Star Wars text styling */
169+
/* Professional Star Wars text styling - Subtle and harmonious */
170170
.starwars-text {
171-
color: #FFE81F;
171+
color: hsl(var(--primary));
172172
text-shadow:
173-
0 0 5px #FFE81F,
174-
0 0 10px #FFE81F,
175-
0 0 20px #FFE81F,
176-
0 0 40px #FFE81F,
177-
0 0 80px #FFE81F;
173+
0 1px 3px rgba(0, 0, 0, 0.3),
174+
0 0 8px hsl(var(--primary) / 0.2);
178175
font-family: 'Nasalization', sans-serif;
179176
font-weight: bold;
180-
letter-spacing: 2px;
177+
letter-spacing: 1px;
181178
}
182179

183-
/* Star Wars scrolling text effect - COMPACTO Y MEJORADO */
180+
/* Clean Star Wars crawl - No background box, subtle animation */
184181
.star-wars-crawl {
185-
perspective: 300px;
186-
height: 200px;
187-
overflow: hidden;
182+
perspective: 400px;
183+
height: auto;
184+
overflow: visible;
188185
margin: 2rem 0;
186+
display: flex;
187+
justify-content: center;
188+
align-items: center;
189189
}
190190

191191
.star-wars-content {
192-
animation: crawl 15s linear infinite;
193-
transform-origin: 50% 100%;
194-
transform: rotateX(25deg);
195-
color: #FFE81F;
196-
text-align: justify;
197-
max-width: 600px;
192+
transform: rotateX(12deg);
193+
transform-origin: center top;
194+
max-width: 700px;
198195
margin: 0 auto;
199-
padding: 2rem;
200-
font-size: 1.1rem;
201-
line-height: 1.6;
202-
text-shadow:
203-
0 0 5px #FFE81F,
204-
0 0 10px #FFE81F,
205-
0 0 15px #FFE81F;
206-
background: rgba(0, 0, 0, 0.8);
207-
border-radius: 12px;
208-
backdrop-filter: blur(10px);
209-
border: 1px solid rgba(255, 232, 31, 0.3);
196+
padding: 1.5rem;
197+
font-size: 1rem;
198+
line-height: 1.7;
199+
text-align: center;
200+
color: hsl(var(--foreground) / 0.9);
201+
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
202+
animation: subtle-float 4s ease-in-out infinite;
210203
}
211204

212-
@keyframes crawl {
213-
0% {
214-
transform: rotateX(25deg) translateY(50px);
215-
opacity: 0;
205+
@keyframes subtle-float {
206+
0%, 100% {
207+
transform: rotateX(12deg) translateY(0px);
216208
}
217-
20% {
218-
opacity: 1;
219-
}
220-
100% {
221-
transform: rotateX(25deg) translateY(-200px);
222-
opacity: 0;
209+
50% {
210+
transform: rotateX(12deg) translateY(-3px);
223211
}
224212
}
225213

214+
/* Professional title glow - Subtle and elegant */
215+
.hero-title {
216+
text-shadow:
217+
0 0 20px hsl(var(--primary) / 0.3),
218+
0 0 40px hsl(var(--secondary) / 0.2),
219+
0 2px 4px rgba(0, 0, 0, 0.1);
220+
}
221+
222+
/* Refined logo glow */
223+
.logo-glow {
224+
filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1))
225+
drop-shadow(0 0 12px hsl(var(--primary) / 0.2));
226+
}
227+
226228
/* Responsive improvements */
227229
@media (max-width: 768px) {
228230
.star-wars-content {

0 commit comments

Comments
 (0)