Skip to content

Commit 40646d4

Browse files
committed
feat: update HeroSection with improved animations and text styling for enhanced visual appeal
1 parent bfb6b52 commit 40646d4

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

app/components/home/HeroSection.tsx

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function HeroSection() {
1717
<section className="relative min-h-[500px] sm:min-h-[600px] lg:min-h-[700px] flex items-center justify-center overflow-hidden">
1818
{/* Animated Background */}
1919
<div className="absolute inset-0 bg-linear-to-br from-gray-100 via-white to-gray-200 dark:from-black dark:via-gray-900 dark:to-gray-800 transition-colors">
20-
{/* Animated geometric shapes */}
20+
{/* Animated gradient blobs */}
2121
<motion.div
2222
animate={{
2323
scale: [1, 1.2, 1],
@@ -69,21 +69,29 @@ export default function HeroSection() {
6969
transition={{ duration: 0.8 }}
7070
>
7171
<motion.h1
72-
className="text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-bold mb-4 sm:mb-6 text-gray-900 dark:text-white px-4 transition-colors"
72+
className="text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-bold mb-4 sm:mb-6 text-gray-900 dark:text-white px-4 transition-colors drop-shadow-2xl"
7373
initial={{ opacity: 0, y: 20 }}
7474
animate={{ opacity: 1, y: 0 }}
7575
transition={{ delay: 0.2, duration: 0.8 }}
76+
style={{
77+
textShadow: '0 4px 20px rgba(0,0,0,0.3), 0 0 40px rgba(255,115,0,0.2)',
78+
}}
7679
>
7780
Build Your Dream.
7881
<br />
79-
<span className="text-wso2-orange">Forge Your Power.</span>
82+
<span className="text-wso2-orange" style={{ textShadow: '0 0 40px rgba(255,115,0,0.5)' }}>
83+
Forge Your Power.
84+
</span>
8085
</motion.h1>
8186

8287
<motion.p
83-
className="text-base sm:text-lg md:text-xl lg:text-2xl text-gray-600 dark:text-gray-300 mb-8 sm:mb-12 max-w-3xl mx-auto px-4 transition-colors"
88+
className="text-base sm:text-lg md:text-xl lg:text-2xl text-gray-600 dark:text-gray-300 mb-8 sm:mb-12 max-w-3xl mx-auto px-4 transition-colors drop-shadow-lg"
8489
initial={{ opacity: 0, y: 20 }}
8590
animate={{ opacity: 1, y: 0 }}
8691
transition={{ delay: 0.4, duration: 0.8 }}
92+
style={{
93+
textShadow: '0 2px 10px rgba(0,0,0,0.3)',
94+
}}
8795
>
8896
Premium computer components and custom PC builds. Experience unmatched performance with CS02.
8997
</motion.p>
@@ -121,12 +129,13 @@ export default function HeroSection() {
121129
initial={{ opacity: 0, scale: 0.8 }}
122130
animate={{ opacity: 1, scale: 1 }}
123131
transition={{ delay: 1 + index * 0.1, duration: 0.5 }}
124-
className="text-center"
132+
whileHover={{ scale: 1.05, y: -5 }}
133+
className="text-center backdrop-blur-md bg-white/10 dark:bg-black/20 border border-white/20 dark:border-white/10 rounded-2xl p-4 sm:p-6 shadow-2xl"
125134
>
126-
<div className="text-2xl sm:text-3xl md:text-4xl font-bold text-wso2-orange mb-1 sm:mb-2">
135+
<div className="text-2xl sm:text-3xl md:text-4xl font-bold text-wso2-orange mb-1 sm:mb-2" style={{ textShadow: '0 0 20px rgba(255,115,0,0.4)' }}>
127136
{stat.value}
128137
</div>
129-
<div className="text-xs sm:text-sm md:text-base text-gray-400">
138+
<div className="text-xs sm:text-sm md:text-base text-gray-700 dark:text-gray-300 font-medium">
130139
{stat.label}
131140
</div>
132141
</motion.div>

0 commit comments

Comments
 (0)