Skip to content

Commit 3a44ade

Browse files
committed
[feat]: added faq section;
1 parent 9017def commit 3a44ade

1 file changed

Lines changed: 68 additions & 0 deletions

File tree

src/components/FAQ.tsx

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import { useState } from 'react';
2+
3+
const faqs = [
4+
{
5+
question: 'What motivates you as a developer?',
6+
answer: 'I love building solutions that matter. Whether it\'s contributing to open-source projects like GitHub Desktop or developing innovative applications, I\'m driven by the impact my work has on the community and ecosystem.',
7+
},
8+
{
9+
question: 'How do you approach learning new technologies?',
10+
answer: 'I\'m a quick learner who believes in learning by doing. I dive deep into documentation, build projects, and contribute to open-source to understand technologies thoroughly. My GitHub profile shows my continuous learning journey.',
11+
},
12+
{
13+
question: 'What\'s your experience with full-stack development?',
14+
answer: 'I\'ve worked across the entire stack - from building scalable backends with Python and Node.js to creating responsive frontends with React and TypeScript. I also have experience with ML/AI integration and system automation.',
15+
},
16+
{
17+
question: 'Why should someone hire you?',
18+
answer: 'I can tell you that I will try my best to get my job done. I am a learner, a quick one, I may add. And my past record speaks for itself - from backend engineer to ML team lead, I\'ve consistently delivered value.',
19+
},
20+
];
21+
22+
const FAQ = () => {
23+
const [openIndex, setOpenIndex] = useState<number | null>(null);
24+
25+
return (
26+
<section className="py-20 bg-white">
27+
<div className="max-w-7xl mx-auto px-6">
28+
<div className="grid grid-cols-1 lg:grid-cols-2 gap-16 items-start">
29+
<div className="space-y-8">
30+
<div>
31+
<h2 className="text-4xl sm:text-5xl md:text-6xl font-bold text-black mb-6">
32+
Ask Me Anything.
33+
</h2>
34+
<p className="text-lg text-gray-600 leading-relaxed max-w-lg">
35+
A passionate full-stack engineer and machine learning enthusiast who loves building innovative solutions and contributing to open-source projects.
36+
</p>
37+
</div>
38+
</div>
39+
40+
<div className="space-y-4">
41+
{faqs.map((faq, index) => (
42+
<div key={index} className="border-b border-gray-200 last:border-b-0">
43+
<div className="py-6">
44+
<button
45+
onClick={() => setOpenIndex(openIndex === index ? null : index)}
46+
className="w-full flex items-center justify-between text-left text-black cursor-pointer"
47+
>
48+
<span className="text-lg font-medium pr-4">{faq.question}</span>
49+
<div className="text-red-500 text-2xl font-bold flex-shrink-0">
50+
{openIndex === index ? '−' : '+'}
51+
</div>
52+
</button>
53+
{openIndex === index && (
54+
<div className="mt-4 text-gray-600 leading-relaxed">
55+
{faq.answer}
56+
</div>
57+
)}
58+
</div>
59+
</div>
60+
))}
61+
</div>
62+
</div>
63+
</div>
64+
</section>
65+
);
66+
};
67+
68+
export default FAQ;

0 commit comments

Comments
 (0)