Skip to content

Commit 85bc3f6

Browse files
committed
Completed Testimonials with Responsiveness
1 parent 6ace2b5 commit 85bc3f6

File tree

8 files changed

+98
-22
lines changed

8 files changed

+98
-22
lines changed
Lines changed: 12 additions & 0 deletions
Loading
Lines changed: 8 additions & 0 deletions
Loading
Lines changed: 7 additions & 0 deletions
Loading
Lines changed: 8 additions & 0 deletions
Loading
Lines changed: 8 additions & 0 deletions
Loading
Lines changed: 8 additions & 0 deletions
Loading
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
export const quickAnswers = [
2+
{
3+
question: 'Is Music Blocks free to use?',
4+
answer: 'Yes, Music Blocks is a 100% free to use, open sourced software.',
5+
image: '/assets/QuickAnswers/cards.svg',
6+
},
7+
{
8+
question: 'What is Music Blocks?',
9+
answer:
10+
'A visual programming language for creating music and learning coding.',
11+
image: '/assets/QuickAnswers/Headset.svg',
12+
},
13+
{
14+
question: 'Can I use Sugar on any device?',
15+
answer: 'Yes! It runs on Linux, Windows, macOS, and live USBs.',
16+
image: '/assets/QuickAnswers/monitor-mobbile.svg',
17+
},
18+
{
19+
question: 'Who develops Sugar and Music Blocks?',
20+
answer: 'Sugar Labs and a global open-source community.',
21+
image: '/assets/QuickAnswers/people.svg',
22+
},
23+
{
24+
question: 'How can I contribute to Sugar Labs?',
25+
answer: 'By coding, translating, designing, or writing docs!',
26+
image: '/assets/QuickAnswers/task.svg',
27+
},
28+
{
29+
question: 'Is Sugar Labs a nonprofit?',
30+
answer: 'Yes! It creates free, open-source educational software.',
31+
image: '/assets/QuickAnswers/card-slash.svg',
32+
},
33+
];

src/pages/About/FAQs.tsx

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Footer from '@/sections/Footer';
33
import { useState } from 'react';
44
import { stats } from '@/constants/Stats';
55
import faqs from '@/constants/aboutUs/faqs.ts';
6+
import { quickAnswers } from '@/constants/aboutUs/quickanswers';
67

78
const FAQs = () => {
89
const [openIndex, setOpenIndex] = useState<number | null>(null);
@@ -45,29 +46,20 @@ const FAQs = () => {
4546
<section className="my-10">
4647
<h2 className="text-3xl font-bold mb-6">Quick Answers</h2>
4748
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 mt-6">
48-
{Array(6)
49-
.fill(0)
50-
.map((_, index) => (
51-
<div
52-
key={index}
53-
className="bg-white shadow-lg rounded-2xl p-6 flex flex-col items-center border border-gray-200"
54-
>
55-
<div className="w-12 h-12 bg-gray-100 flex items-center justify-center rounded-lg mb-4">
56-
<img
57-
src="/faq-icon.svg"
58-
alt="FAQ Icon"
59-
className="w-6 h-6"
60-
/>
61-
</div>
62-
<h3 className="font-semibold text-center">
63-
Is Music Blocks Free?
64-
</h3>
65-
<p className="text-gray-600 text-sm text-center mt-2">
66-
Yes! It is absolutely free to use, just visit the Music
67-
Blocks webpage to access it for free.
68-
</p>
49+
{quickAnswers.map((qa, index) => (
50+
<div
51+
key={index}
52+
className="bg-white shadow-lg rounded-2xl p-6 flex flex-col items-center border border-gray-200"
53+
>
54+
<div className="w-12 h-12 bg-white flex items-center justify-center rounded-lg mb-4">
55+
<img src={qa.image} alt={qa.question} className="w-6 h-6" />
6956
</div>
70-
))}
57+
<h3 className="font-semibold text-center">{qa.question}</h3>
58+
<p className="text-gray-600 text-sm text-center mt-2">
59+
{qa.answer}
60+
</p>
61+
</div>
62+
))}
7163
</div>
7264
</section>
7365

0 commit comments

Comments
 (0)