11import React from 'react' ;
22import { ArrowRight , PlugZap , UserPlus } from 'lucide-react' ;
33import L1Image from '../../assets/L1.webp' ;
4- import { scrollToContact , scrollToSection } from '../../utils/navigation' ;
4+ import { scrollToContact } from '../../utils/navigation' ; // no scrollToSection used anymore
55
66const HeroSection : React . FC = ( ) => {
77 const handleDemoClick = ( e : React . MouseEvent ) => {
@@ -14,21 +14,22 @@ const HeroSection: React.FC = () => {
1414 scrollToContact ( 'partnership' ) ;
1515 } ;
1616
17- const handleLearnMoreClick = ( e : React . MouseEvent ) => {
17+ const handleCardClick = ( e : React . MouseEvent ) => {
1818 e . preventDefault ( ) ;
19- scrollToSection ( 'technology ') ;
19+ scrollToContact ( 'learnmore ') ; // or 'form', depending on how you're handling IDs
2020 } ;
2121
2222 return (
2323 < section className = "relative pt-24 pb-20 md:pt-32 md:pb-24 bg-gradient-to-b from-dark-900 via-dark-800 to-dark-900 overflow-hidden" >
24- { /* Background elements */ }
24+ { /* Background Elements */ }
2525 < div className = "absolute inset-0 overflow-hidden" >
2626 < div className = "absolute top-[10%] left-[5%] w-72 h-72 bg-primary-500/10 rounded-full blur-3xl" > </ div >
2727 < div className = "absolute bottom-[20%] right-[10%] w-96 h-96 bg-secondary-500/10 rounded-full blur-3xl" > </ div >
2828 </ div >
2929
3030 < div className = "container mx-auto px-4 md:px-6 relative z-10" >
3131 < div className = "grid grid-cols-1 lg:grid-cols-2 gap-12 items-center" >
32+ { /* Left Side Text and Buttons */ }
3233 < div >
3334 < h1 className = "font-display font-bold text-4xl md:text-5xl lg:text-6xl text-white leading-tight mb-6" >
3435 Charging While Driving — The Future of EVs Starts Now.
@@ -54,18 +55,21 @@ const HeroSection: React.FC = () => {
5455 </ div >
5556 </ div >
5657
57- < div className = "relative" >
58- < div className = "absolute inset-0 bg-gradient-to-r from-primary-500/20 to-secondary-500/20 rounded-2xl blur-xl" > </ div >
59- < div className = "relative bg-dark-800/80 backdrop-blur-sm border border-white/10 rounded-2xl p-6 shadow-xl animate-float" >
58+ { /* Right Side Card - Entirely Clickable */ }
59+ < div className = "relative cursor-pointer" onClick = { handleCardClick } >
60+ < div className = "absolute inset-0 bg-gradient-to-r from-primary-500/20 to-secondary-500/20 rounded-2xl blur-xl pointer-events-none" > </ div >
61+ < div className = "relative bg-dark-800/80 backdrop-blur-sm border border-white/10 rounded-2xl p-6 shadow-xl animate-float hover:scale-[1.02] transition-transform duration-300" >
6062 < img
6163 src = { L1Image }
6264 alt = "LCM Technology Render"
63- className = "w-full h-auto rounded-lg mb-4"
65+ className = "w-full h-auto rounded-lg mb-4 pointer-events-none "
6466 loading = "eager"
6567 draggable = "false"
6668 />
67- < div className = "bg-dark-900/50 backdrop-blur-sm rounded-lg p-4 border border-white/10" >
68- < h3 className = "font-display font-semibold text-lg text-white mb-2" > Loop Charging Module</ h3 >
69+ < div className = "bg-dark-900/50 backdrop-blur-sm rounded-lg p-4 border border-white/10 pointer-events-none" >
70+ < h3 className = "font-display font-semibold text-lg text-white mb-2" >
71+ Loop Charging Module
72+ </ h3 >
6973 < p className = "text-white/70 text-sm" >
7074 Our 4-component system harnesses ambient airflow to generate electricity, charging your EV's battery in real-time while driving.
7175 </ p >
@@ -74,21 +78,18 @@ const HeroSection: React.FC = () => {
7478 < span className = "inline-block px-3 py-1 text-xs font-medium bg-primary-500/20 text-primary-300 rounded-full" > Zero Drag</ span >
7579 < span className = "inline-block px-3 py-1 text-xs font-medium bg-secondary-500/20 text-secondary-300 rounded-full" > In-Drive Charging</ span >
7680 </ div >
77- < a
78- href = "#technology"
79- onClick = { handleLearnMoreClick }
80- className = "text-primary-400 hover:text-primary-300 text-sm font-medium inline-flex items-center"
81- >
81+ < span className = "text-primary-400 text-sm font-medium inline-flex items-center" >
8282 Learn more < ArrowRight size = { 14 } className = "ml-1" />
83- </ a >
83+ </ span >
8484 </ div >
8585 </ div >
8686 </ div >
8787 </ div >
88+
8889 </ div >
8990 </ div >
9091 </ section >
9192 ) ;
9293} ;
9394
94- export default HeroSection ;
95+ export default HeroSection ;
0 commit comments