Skip to content

Commit be40561

Browse files
committed
Update QuestionBox.js
1 parent 69fd8d2 commit be40561

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/components/Common/QuestionBox.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,30 @@
11
import React, { useState } from "react";
22
import clsx from "clsx";
33
import Section from "./section";
4-
import { GoChevronDown } from "react-icons/go";
4+
import { GoChevronDown, GoDiscussionClosed } from "react-icons/go";
55

66
const QuestionBox = ({ id, question, answer }) => {
77
const [open, setOpen] = useState(false);
88

99
return (
10-
<Section
10+
<div
1111
id={id}
12-
title=""
13-
as="section"
14-
headingTag="h3"
1512
className={clsx(
16-
"p-6 rounded-2xl border transition-all shadow-sm hover:shadow-md cursor-pointer",
17-
"border-black/10 bg-white", // light
13+
"p-4 rounded-lg mt-4 border transition-all cursor-pointer",
14+
"border-black/10 ", // light
1815
"dark:border-white/10 dark:bg-[#1e1e1e]" // dark
1916
)}
2017
>
21-
{/* Header row */}
2218
<div
2319
onClick={() => setOpen(!open)}
2420
className="flex items-center justify-between select-none"
2521
>
26-
<h3 className="text-lg font-semibold">{question}</h3>
22+
<div className="flex items-center gap-3">
23+
<div className="bg-[#222] text-sm h-max w-max text-white p-1 rounded-md">
24+
<GoDiscussionClosed className="" />
25+
</div>
26+
<h3 className="text-base border-r border-[#bababa88] px-3">{question}</h3>
27+
</div>
2728
<GoChevronDown
2829
className={clsx(
2930
"w-5 h-5 transition-transform duration-300",
@@ -32,7 +33,6 @@ const QuestionBox = ({ id, question, answer }) => {
3233
/>
3334
</div>
3435

35-
{/* Answer (animated) */}
3636
<div
3737
className={clsx(
3838
"overflow-hidden transition-all duration-500 ease-in-out",
@@ -49,7 +49,7 @@ const QuestionBox = ({ id, question, answer }) => {
4949
{answer}
5050
</div>
5151
</div>
52-
</Section>
52+
</div>
5353
);
5454
};
5555

0 commit comments

Comments
 (0)