import React, { useState } from 'react'; import { motion } from 'framer-motion'; import { skillsData } from '../data/skillsData'; import { SkillCard } from './SkillCard'; import AnimatedSection from '../../../shared/components/AnimatedSection'; type Category = 'All' | 'Frontend' | 'Backend' | 'Tools' | 'Design'; export const SkillsSection: React.FC = () => { const [selectedCategory, setSelectedCategory] = useState('All'); const categories: Category[] = ['All', 'Frontend', 'Backend', 'Tools', 'Design']; const filteredSkills = skillsData.filter( (skill) => selectedCategory === 'All' || skill.category === selectedCategory ); return (
{/* Section Header */}
My Expertise

Skills & Technologies

A comprehensive overview of my technical skills and proficiency levels

{/* Category Filter */} {categories.map((category) => ( setSelectedCategory(category)} whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }} className={`px-6 py-2 rounded-full font-medium transition-all duration-300 ${ selectedCategory === category ? 'bg-green-500 text-black' : 'border border-green-500/30 text-gray-300 hover:border-green-500/60' }`} > {category} ))} {/* Skills Grid */} {filteredSkills.map((skill, index: number) => ( ))}
); };