import { motion } from 'framer-motion'; import { Code, Database, Smartphone, Globe, Server, Wrench } from 'lucide-react'; import { useLanguage } from '../contexts/LanguageContext'; const Skills = () => { const { t } = useLanguage(); const skillCategories = [ { id: 'mobile', icon: , title: t('skills.category.mobile'), color: "#4FC3F7", skills: [ { name: "Dart", level: 85, color: "#0175C2" }, { name: "Flutter", level: 80, color: "#02569B" } ] }, { id: 'frontend', icon: , title: t('skills.category.frontend'), color: "#42A5F5", skills: [ { name: "React", level: 75, color: "#61DAFB" }, { name: "TypeScript", level: 70, color: "#3178C6" }, { name: "JavaScript", level: 80, color: "#F7DF1E" } ] }, { id: 'backend', icon: , title: t('skills.category.backend'), color: "#66BB6A", skills: [ { name: "Java", level: 75, color: "#ED8B00" }, { name: "C#", level: 65, color: "#239120" } ] }, { id: 'tools', icon: , title: t('skills.category.tools'), color: "#AB47BC", skills: [ { name: "Git", level: 70, color: "#F05032" }, { name: "VS Code", level: 90, color: "#007ACC" }, { name: "Android Studio", level: 75, color: "#3DDC84" } ] } ]; const containerVariants = { hidden: { opacity: 0 }, visible: { opacity: 1, transition: { staggerChildren: 0.2, delayChildren: 0.3 } } }; const categoryVariants = { hidden: { opacity: 0, y: 50 }, visible: { opacity: 1, y: 0, transition: { duration: 0.6, ease: [0.25, 0.1, 0.25, 1] as const } } }; return ( {t('skills.title')} {t('skills.subtitle')} {skillCategories.map((category, categoryIndex) => ( {category.icon} {category.title} {category.skills.map((skill, skillIndex) => ( {skill.name} {skill.level}% ))} ))} {/* Section des soft skills */} {t('skills.otherSkills')} {[ { name: t('skills.problemSolving'), icon: }, { name: t('skills.teamwork'), icon: }, { name: t('skills.continuousLearning'), icon: }, { name: t('skills.communication'), icon: } ].map((softSkill, index) => ( {softSkill.icon} {softSkill.name} ))} ); }; export default Skills;
{t('skills.subtitle')}