From d78fc4ec7c902313003d65eb48e537966c463729 Mon Sep 17 00:00:00 2001 From: aashirwadRunjan Date: Tue, 24 Sep 2024 17:05:54 +0530 Subject: [PATCH] improved the FAQ section --- src/components/features.tsx | 184 +++++++++++++++++++++--------------- 1 file changed, 108 insertions(+), 76 deletions(-) diff --git a/src/components/features.tsx b/src/components/features.tsx index 5e2538d..9971a65 100644 --- a/src/components/features.tsx +++ b/src/components/features.tsx @@ -85,7 +85,7 @@ function Question() { } export default function Features() { - const [feature, setFeature] = useState("item-1"); + const [feature, setFeature] = useState(""); return (
@@ -395,47 +395,76 @@ export default function Features() {
+ + {/* ------------------------------------------------------------------------- */} +
-
-

- Frequently Asked Questions{" "} - -

- - - Is it Firefox based? - - Yes, Zen Browser is focused on being always at the latest - version of Firefox, ensuring that you have the latest security - updates and features. - - - - Does it track me? - - No! Zen Browser is built with privacy in mind. - We don't track you, we don't collect your data, and we don't - sell your data to third parties. - - - - How secure is Zen Browser? - - Zen Browser is built on top of Firefox, which is known for its - security features. We also have additional security features - like https only built into Zen Browser to help keep you safe - online. - - - +
+

+ Frequently Asked Questions{" "} + +

+ setFeature(value === feature ? "" : value)} + className="mt-8" + > + + Is it Firefox based? + + Yes, Zen Browser is focused on being always at the latest version of Firefox, ensuring that you have the latest security updates and features. + + + + Does it track me? + + No! Zen Browser is built with privacy in mind. We don't track you, we don't collect your data, and we don't sell your data to third parties. + + + + How secure is Zen Browser? + + Zen Browser is built on top of Firefox, which is known for its security features. We also have additional security features like HTTPS only built into Zen Browser to help keep you safe online. + + +
-
+ +
+ {feature === "" && ( +
+
+
+ + + + + + +
+
+ + + + +
+
+ + + + +
+
+
+ + )} + + {/* Show individual image when respective feature is selected */} - {feature == "item-1" && ( + {feature === "item-1" && ( )} - {feature == "item-2" && ( + + {feature === "item-2" && ( )} - {feature == "item-3" && ( + + {feature === "item-3" && ( )}
+