File tree Expand file tree Collapse file tree 5 files changed +13
-38
lines changed Expand file tree Collapse file tree 5 files changed +13
-38
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,13 @@ interface GoalStat {
2424}
2525
2626const GoalsSection : FC = ( ) => {
27- const renderProgressBars = ( items ) => {
27+ interface ProgressItem {
28+ label : string ;
29+ percent : number ;
30+ color : string ;
31+ }
32+
33+ const renderProgressBars = ( items : ProgressItem [ ] ) => {
2834 return items . map ( ( item , index ) => (
2935 < motion . div
3036 key = { index }
Original file line number Diff line number Diff line change @@ -81,24 +81,6 @@ const HeroSection = () => {
8181 </ motion . span > { ' ' }
8282 Enthusiasts
8383 </ motion . h2 >
84-
85- { /* Animated decorative circles */ }
86- < div className = "absolute w-full h-full pointer-events-none" >
87- { [ ...Array ( 6 ) ] . map ( ( _ , i ) => (
88- < motion . div
89- key = { i }
90- className = "absolute w-4 h-4 rounded-full bg-red-500/10"
91- style = { {
92- x : Math . random ( ) * window . innerWidth ,
93- y : Math . random ( ) * window . innerHeight ,
94- } }
95- variants = { heroAnimations . floatingCircle }
96- animate = "visible"
97- custom = { i }
98- />
99- ) ) }
100- </ div >
101-
10284 { /* Interactive mouse-follow effect */ }
10385 < motion . div
10486 className = "absolute w-96 h-96 bg-red-100 rounded-full blur-3xl opacity-20"
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import { motion } from 'framer-motion';
33import SectionContainer from '@/components/shared/SectionContainer' ;
44import SectionTitle from '@/components/shared/SectionTitle' ;
55import { roadmapItems , roadmapContent } from '@/constants/aboutUs/roadmap' ;
6- import { roadmapSectionAnimations } from '@/styles/animations ' ;
6+ import { roadmapSectionAnimations } from '@/styles/Animations ' ;
77
88const RoadmapSection : React . FC = ( ) => {
99 return (
Original file line number Diff line number Diff line change 1- import { MotionProps , Variants } from 'framer-motion' ;
1+ import { MotionProps } from 'framer-motion' ;
22
33export interface Goal {
44 title : string ;
55 description : string ;
66}
77
8- interface ProgressItem extends Variants {
9- label : string ;
8+ interface ProgressItem {
109 percent : number ;
10+ label : string ;
1111 color : string ;
12- [ key : string ] : string | number ;
1312}
13+
1414export interface SectionContentType {
1515 title : {
1616 main : string ;
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ export const goalSectionAnimations = {
349349 } ,
350350} ;
351351
352- // Hero Section animations
352+
353353export const heroAnimations = {
354354 container : {
355355 hidden : { opacity : 0 } ,
@@ -390,19 +390,6 @@ export const heroAnimations = {
390390 transition : { delay : 1.2 , duration : 0.8 } ,
391391 } ,
392392 } ,
393- floatingCircle : {
394- hidden : { scale : 0 , opacity : 0 } ,
395- visible : ( i : number ) => ( {
396- scale : [ 0 , 1.5 , 1 ] ,
397- opacity : [ 0 , 0.8 , 0 ] ,
398- transition : {
399- duration : 3 ,
400- delay : i * 0.5 ,
401- repeat : Infinity ,
402- repeatType : 'loop' ,
403- } ,
404- } ) ,
405- } ,
406393 hoverText : {
407394 initial : { } ,
408395 hover : {
You can’t perform that action at this time.
0 commit comments