Skip to content

Commit 63b94bc

Browse files
committed
Fix Deplopyment Error
1 parent a988309 commit 63b94bc

File tree

5 files changed

+13
-38
lines changed

5 files changed

+13
-38
lines changed

src/components/AboutUs/GoalsSection.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,13 @@ interface GoalStat {
2424
}
2525

2626
const 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}

src/components/AboutUs/HeroSection.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff 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"

src/components/AboutUs/RoadmapSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { motion } from 'framer-motion';
33
import SectionContainer from '@/components/shared/SectionContainer';
44
import SectionTitle from '@/components/shared/SectionTitle';
55
import { roadmapItems, roadmapContent } from '@/constants/aboutUs/roadmap';
6-
import { roadmapSectionAnimations } from '@/styles/animations';
6+
import { roadmapSectionAnimations } from '@/styles/Animations';
77

88
const RoadmapSection: React.FC = () => {
99
return (

src/constants/aboutUs/goals.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { MotionProps, Variants } from 'framer-motion';
1+
import { MotionProps} from 'framer-motion';
22

33
export 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+
1414
export interface SectionContentType {
1515
title: {
1616
main: string;

src/styles/Animations.ts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ export const goalSectionAnimations = {
349349
},
350350
};
351351

352-
// Hero Section animations
352+
353353
export 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: {

0 commit comments

Comments
 (0)