Skip to content

Commit 42bf43b

Browse files
authored
Merge pull request #11 from SymbioSix/dev_amar
feat: add line in according component faq
2 parents 53194ac + fda84ed commit 42bf43b

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

src/components/accordion.jsx

+21-3
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,34 @@ const AccordionItem = ({ title, desc }) => {
1313
className="flex items-center justify-between w-full py-2 sm:py-4 focus:outline-none"
1414
onClick={() => setIsOpen(!isOpen)}
1515
>
16-
<span className="p-4 text-lg font-black text-left sm:text-2xl lg:text-3xl w-[95%] sm:w-[90%]">{title}</span>
16+
<span className="p-4 text-lg font-black text-left sm:text-2xl lg:text-3xl w-[95%] sm:w-[90%]">
17+
{title}
18+
</span>
1719
<span
1820
className={`p-2 sm:p-5 flex justify-center transform transition-transform ${
1921
isOpen ? "rotate-180" : ""
2022
}`}
2123
>
22-
<img src={btnDropdown} alt="Icon button dropdown" className="w-[60%] sm:w-full h-[60%] sm:h-full" />
24+
<img
25+
src={btnDropdown}
26+
alt="Icon button dropdown"
27+
className="w-[60%] sm:w-full h-[60%] sm:h-full"
28+
/>
2329
</span>
2430
</button>
25-
{isOpen && <div className="p-4 text-sm text-black sm:text-xl">{desc}</div>}
31+
<hr
32+
style={{
33+
color: "#00000030",
34+
backgroundColor: "#00000031",
35+
height: 1,
36+
marginLeft: "auto",
37+
marginRight: "auto",
38+
width: "90%",
39+
}}
40+
/>
41+
{isOpen && (
42+
<div className="p-4 text-sm text-black sm:text-xl">{desc}</div>
43+
)}
2644
</div>
2745
);
2846
};

0 commit comments

Comments
 (0)