From 82117152bac2caa9ec9a98534f803bcf489d1f86 Mon Sep 17 00:00:00 2001 From: Ayush Date: Tue, 5 Nov 2024 21:14:39 +0530 Subject: [PATCH] faq visible in dark mode --- client/src/App.jsx | 2 +- client/src/component/About.jsx | 401 +++++++++++++++++++++++++++------ client/src/component/Faq.jsx | 20 +- 3 files changed, 339 insertions(+), 84 deletions(-) diff --git a/client/src/App.jsx b/client/src/App.jsx index 67e6e81..84eb74e 100644 --- a/client/src/App.jsx +++ b/client/src/App.jsx @@ -257,7 +257,7 @@ function App() { } /> } /> } /> - } /> {/* Add this line */} + } /> {/* Add this line */} } /> {/* Add this line */} } /> {/* Add this line */} } /> diff --git a/client/src/component/About.jsx b/client/src/component/About.jsx index 5daa715..a603541 100644 --- a/client/src/component/About.jsx +++ b/client/src/component/About.jsx @@ -1,14 +1,14 @@ import "../css/About.css"; -import PropTypes from 'prop-types'; +import PropTypes from "prop-types"; // import { useEffect } from "react"; import img1 from "../assets/images/Anuj.png"; import img2 from "../assets/images/Jitendra.png"; import img3 from "../assets/images/Harshit.png"; import AboutImgHero from "../assets/images/Others/heroimg.png"; -import '@fortawesome/fontawesome-free/css/all.css'; -import { faCoffee } from '@fortawesome/free-solid-svg-icons'; -import { faUser } from '@fortawesome/free-solid-svg-icons'; -import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; +import "@fortawesome/fontawesome-free/css/all.css"; +import { faCoffee } from "@fortawesome/free-solid-svg-icons"; +import { faUser } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; // import {Contri} from './Contributers' // import { Link } from "react-router-dom"; @@ -50,17 +50,18 @@ export default function About(props) { About Us

- Bitbox is like a friendly community where people working on projects - can come together. If you’re stuck or need advice, you can ask for help. - And if you know something, you can share your knowledge with others. - It’s all about supporting each other and building a helpful community. 🌟 + Bitbox is like a friendly community where people working on + projects can come together. If you’re stuck or need advice, you + can ask for help. And if you know something, you can share your + knowledge with others. It’s all about supporting each other and + building a helpful community. 🌟

- Welcome to our open-source platform, where innovation knows no bounds - and collaboration is key. Dive into our repository of code, where - creativity flourishes and solutions come to life. Join our vibrant - community of developers, enthusiasts, and visionaries as we build the - future together, one line at a time. + Welcome to our open-source platform, where innovation knows no + bounds and collaboration is key. Dive into our repository of code, + where creativity flourishes and solutions come to life. Join our + vibrant community of developers, enthusiasts, and visionaries as + we build the future together, one line at a time.

@@ -106,81 +107,233 @@ export default function About(props) {

-
Our Team
+
+ Our{" "} + + Team + +

{/* card 1 */} -
-
- Anuj Verma is a tech-savvy person who loves working with AI and building websites. He's gained experience through internships and projects, showing that he's ready to do great things in the tech world. +
+
+ Anuj Verma is a tech-savvy person who loves working + with AI and building websites. He's gained experience + through internships and projects, showing that he's ready + to do great things in the tech world.
-

+

Anuj Verma

-

+

BTech CSE AIML
3rd Year

{/* card 2 */} -
-
- Jitendra Kumar: Tech enthusiast skilled in web development and database management, showcasing expertise in projects like weather app and algorithm analyzer, poised for impactful contributions in the tech industry. +
+
+ Jitendra Kumar: Tech enthusiast skilled in web + development and database management, showcasing expertise in + projects like weather app and algorithm analyzer, poised for + impactful contributions in the tech industry.
-

+

Jitendra Kumar

-

+

BTech CSE AIML
3rd Year

{/* card 3 */} -
-
- Harshit Singh: Entry-level software engineer skilled in C, C++, Python, HTML, CSS, and JavaScript. Eager to leverage abilities in problem-solving and project development for organizational growth. +
+
+ Harshit Singh: Entry-level software engineer skilled in + C, C++, Python, HTML, CSS, and JavaScript. Eager to leverage + abilities in problem-solving and project development for + organizational growth.
-

+

Harshit Singh

-

+

BTech CSE AIML
3rd Year

@@ -194,47 +347,117 @@ export default function About(props) {
-

+

Visitors

-
+
- 876K+ + + 876K+ +

VisitorCount

-
+
-
+
{/* */}
- 876K+ -

Registrations

+ + 876K+ + +

+ Registrations +

-
+
- 876K+ + + 876K+ +

Participants

-
+
-
+
{/* */}
- 828K+ -

Total Projects

+ + 828K+ + +

+ Total Projects +

@@ -244,50 +467,79 @@ export default function About(props) {
{/* FAQ */}
-
-

- Frequently Asked Questions +

+ + Frequently Asked Questions +

-
+
{[ { - question: "Will a beginner, with absolutely no knowledge of GitHub, gain anything fruitful?", - answer: "Absolutely! This program is designed to guide beginners, with projects and support for all experience levels." + question: + "Will a beginner, with absolutely no knowledge of GitHub, gain anything fruitful?", + answer: + "Absolutely! This program is designed to guide beginners, with projects and support for all experience levels.", }, { question: "Are there any charges for registration?", - answer: "No, participating in this program is entirely free with no hidden costs." + answer: + "No, participating in this program is entirely free with no hidden costs.", }, { - question: "Is there a specific age requirement for participation?", - answer: "There are no age restrictions! People of all ages are welcome to join and contribute." + question: + "Is there a specific age requirement for participation?", + answer: + "There are no age restrictions! People of all ages are welcome to join and contribute.", }, { question: "What are the project requirements?", - answer: "Projects are open-ended, allowing mentors to share ideas in their fields of expertise without restrictions." + answer: + "Projects are open-ended, allowing mentors to share ideas in their fields of expertise without restrictions.", }, { - question: "As a beginner, where should we begin to contribute effectively to projects?", - answer: "The resources on our website, including GitHub links and tutorials, will help you contribute effectively." + question: + "As a beginner, where should we begin to contribute effectively to projects?", + answer: + "The resources on our website, including GitHub links and tutorials, will help you contribute effectively.", }, ].map((item, index) => (
-

+

))}
-
{/* Info */} {/*
@@ -297,10 +549,9 @@ export default function About(props) { ); } - // Props Validation About.propTypes = { mode: PropTypes.string, toggleMode: PropTypes.func, showAlert: PropTypes.func, -}; \ No newline at end of file +}; diff --git a/client/src/component/Faq.jsx b/client/src/component/Faq.jsx index 15e299f..541d836 100644 --- a/client/src/component/Faq.jsx +++ b/client/src/component/Faq.jsx @@ -1,6 +1,6 @@ // component/FAQ.jsx -import { useState } from 'react'; -import '../css/Faq.css'; +import { useState } from "react"; +import "../css/Faq.css"; const FAQ = () => { const [activeIndex, setActiveIndex] = useState(null); @@ -27,25 +27,29 @@ const FAQ = () => { const faqData = [ { question: "What is BitBox?", - answer: "BitBox is a user-friendly platform that simplifies version control and collaboration for developers.", + answer: + "BitBox is a user-friendly platform that simplifies version control and collaboration for developers.", }, { question: "How does BitBox enhance collaboration?", - answer: "BitBox offers intuitive tools that enable both solo programmers and large teams to manage projects efficiently.", + answer: + "BitBox offers intuitive tools that enable both solo programmers and large teams to manage projects efficiently.", }, { question: "How do I get started with BitBox?", - answer: "You can sign up for an account on BitBox and start managing your projects right away.", + answer: + "You can sign up for an account on BitBox and start managing your projects right away.", }, { question: "Is BitBox compatible with modern development workflows?", - answer: "Yes, BitBox seamlessly integrates with modern development workflows, providing fast and reliable performance.", + answer: + "Yes, BitBox seamlessly integrates with modern development workflows, providing fast and reliable performance.", }, { question: "How can I contact support if I need help?", - answer: "You can reach out to support through the 'Contact Us' page or by emailing support@example.com.", + answer: + "You can reach out to support through the 'Contact Us' page or by emailing support@example.com.", }, ]; - export default FAQ;