From 013989774636854c3c7383abe5e44fa62fac484d Mon Sep 17 00:00:00 2001 From: Ed-Gah Date: Wed, 4 Oct 2023 12:05:43 +0100 Subject: [PATCH 1/3] Redesigned FAQs page --- .env.example | 12 ------------ components/FaqsSection.js | 32 +++++++++++++++++++++++++++++++ components/Header.js | 18 ++++++++++-------- package.json | 4 ++-- pages/faqs.js | 40 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 84 insertions(+), 22 deletions(-) delete mode 100644 .env.example create mode 100644 components/FaqsSection.js create mode 100644 pages/faqs.js diff --git a/.env.example b/.env.example deleted file mode 100644 index fd92875..0000000 --- a/.env.example +++ /dev/null @@ -1,12 +0,0 @@ -email = -- your email -- -password = -- email password -- -NODE_ENV = dev -access_key = -- internet-archive-access-key -- -secret_key = -- internet-archive-secret-key -- -GB_KEY = -- google-books-key -- -redishost = -- redis-host -- -redisport = -- redis-port -- -service = -- email service provider -- -WIKIMEDIA_CLIENT_ID = -- oauth client id -- -WIKIMEDIA_CLIENT_SECRET = -- oauth client secret -- -NEXTAUTH_URL = -- nextauth base url -- \ No newline at end of file diff --git a/components/FaqsSection.js b/components/FaqsSection.js new file mode 100644 index 0000000..629b0bc --- /dev/null +++ b/components/FaqsSection.js @@ -0,0 +1,32 @@ +import React from "react"; + +const FaqsSection = ({ faqs_data }) => { + return ( +
+ + {faqs_data?.map((faq, index) => ( + + + {faq?.que} + {faq?.ans} + + + ))} +
+ ); +}; + +export default FaqsSection; diff --git a/components/Header.js b/components/Header.js index ed58665..321adf6 100644 --- a/components/Header.js +++ b/components/Header.js @@ -64,7 +64,7 @@ class Header extends Component { role="presentation" >