Spaces:
Build error
Build error
Upload components/Skills.jsx with huggingface_hub
Browse files- components/Skills.jsx +90 -0
components/Skills.jsx
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import { useState } from 'react';
|
| 2 |
+
|
| 3 |
+
export default function Skills() {
|
| 4 |
+
const [activeCategory, setActiveCategory] = useState('all');
|
| 5 |
+
|
| 6 |
+
const categories = [
|
| 7 |
+
{ id: 'all', name: 'All Skills' },
|
| 8 |
+
{ id: 'frontend', name: 'Frontend' },
|
| 9 |
+
{ id: 'backend', name: 'Backend' },
|
| 10 |
+
{ id: 'tools', name: 'Tools & Others' },
|
| 11 |
+
];
|
| 12 |
+
|
| 13 |
+
const skills = [
|
| 14 |
+
// Frontend
|
| 15 |
+
{ name: 'React', level: 95, category: 'frontend' },
|
| 16 |
+
{ name: 'Next.js', level: 90, category: 'frontend' },
|
| 17 |
+
{ name: 'TypeScript', level: 88, category: 'frontend' },
|
| 18 |
+
{ name: 'Tailwind CSS', level: 92, category: 'frontend' },
|
| 19 |
+
{ name: 'Vue.js', level: 75, category: 'frontend' },
|
| 20 |
+
{ name: 'HTML/CSS', level: 95, category: 'frontend' },
|
| 21 |
+
|
| 22 |
+
// Backend
|
| 23 |
+
{ name: 'Node.js', level: 85, category: 'backend' },
|
| 24 |
+
{ name: 'Python', level: 80, category: 'backend' },
|
| 25 |
+
{ name: 'PostgreSQL', level: 78, category: 'backend' },
|
| 26 |
+
{ name: 'MongoDB', level: 82, category: 'backend' },
|
| 27 |
+
{ name: 'GraphQL', level: 75, category: 'backend' },
|
| 28 |
+
{ name: 'REST APIs', level: 90, category: 'backend' },
|
| 29 |
+
|
| 30 |
+
// Tools
|
| 31 |
+
{ name: 'Git', level: 90, category: 'tools' },
|
| 32 |
+
{ name: 'Docker', level: 70, category: 'tools' },
|
| 33 |
+
{ name: 'AWS', level: 65, category: 'tools' },
|
| 34 |
+
{ name: 'Figma', level: 85, category: 'tools' },
|
| 35 |
+
{ name: 'CI/CD', level: 75, category: 'tools' },
|
| 36 |
+
{ name: 'Jest', level: 80, category: 'tools' },
|
| 37 |
+
];
|
| 38 |
+
|
| 39 |
+
const filteredSkills = activeCategory === 'all'
|
| 40 |
+
? skills
|
| 41 |
+
: skills.filter(skill => skill.category === activeCategory);
|
| 42 |
+
|
| 43 |
+
return (
|
| 44 |
+
<section id="skills" className="bg-gray-50">
|
| 45 |
+
<div className="section-container">
|
| 46 |
+
<div className="text-center mb-12">
|
| 47 |
+
<h2 className="text-3xl sm:text-4xl font-bold text-gray-900 mb-4">Skills & Technologies</h2>
|
| 48 |
+
<p className="text-lg text-gray-600 max-w-2xl mx-auto">
|
| 49 |
+
Technologies I've been working with recently
|
| 50 |
+
</p>
|
| 51 |
+
<div className="w-20 h-1 bg-primary-500 mx-auto rounded-full mt-4"></div>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
{/* Category Filter */}
|
| 55 |
+
<div className="flex flex-wrap justify-center gap-2 mb-12">
|
| 56 |
+
{categories.map((category) => (
|
| 57 |
+
<button
|
| 58 |
+
key={category.id}
|
| 59 |
+
onClick={() => setActiveCategory(category.id)}
|
| 60 |
+
className={`px-5 py-2 rounded-full text-sm font-medium transition-all ${activeCategory === category.id ? 'bg-primary-600 text-white shadow-lg shadow-primary-500/25' : 'bg-white text-gray-600 hover:bg-gray-100'}`}
|
| 61 |
+
>
|
| 62 |
+
{category.name}
|
| 63 |
+
</button>
|
| 64 |
+
))}
|
| 65 |
+
</div>
|
| 66 |
+
|
| 67 |
+
{/* Skills Grid */}
|
| 68 |
+
<div className="grid sm:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 69 |
+
{filteredSkills.map((skill) => (
|
| 70 |
+
<div
|
| 71 |
+
key={skill.name}
|
| 72 |
+
className="bg-white rounded-xl p-6 shadow-sm hover:shadow-md transition-shadow"
|
| 73 |
+
>
|
| 74 |
+
<div className="flex items-center justify-between mb-3">
|
| 75 |
+
<span className="font-semibold text-gray-900">{skill.name}</span>
|
| 76 |
+
<span className="text-sm text-primary-600 font-medium">{skill.level}%</span>
|
| 77 |
+
</div>
|
| 78 |
+
<div className="w-full bg-gray-200 rounded-full h-2.5">
|
| 79 |
+
<div
|
| 80 |
+
className="bg-gradient-to-r from-primary-500 to-primary-600 h-2.5 rounded-full transition-all duration-500"
|
| 81 |
+
style={{ width: `${skill.level}%` }}
|
| 82 |
+
></div>
|
| 83 |
+
</div>
|
| 84 |
+
</div>
|
| 85 |
+
))}
|
| 86 |
+
</div>
|
| 87 |
+
</div>
|
| 88 |
+
</section>
|
| 89 |
+
);
|
| 90 |
+
}
|