Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Faq #286

Merged
merged 6 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 140 additions & 0 deletions src/app/FAQs/faq.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
// src/FAQ.tsx
import React from 'react';
import styled from 'styled-components';
import { motion } from 'framer-motion';

const FAQContainer = styled.div`
max-width: 800px;
margin: 40px auto;
font-family: Arial, sans-serif;
`;

const FAQHeader = styled.h1`
text-align: center;
margin-bottom: 40px;
`;

const FAQItem = styled(motion.div)`
margin-bottom: 20px;
background: #f9f9f9;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
overflow: hidden;
`;

const FAQSummary = styled(motion.summary)`
font-size: 18px;
font-weight: bold;
cursor: pointer;
padding: 15px;
background: #007BFF;
color: white;
border: none;
outline: none;
display: flex;
align-items: center;
justify-content: space-between;
`;

const FAQDetails = styled(motion.div)`
padding: 0 20px 20px;
`;

const FAQ: React.FC = () => {
return (
<FAQContainer>
<FAQHeader>Frequently Asked Questions (FAQs)</FAQHeader>

<FAQItem initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3 }}>
<details>
<FAQSummary whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
1. What is BloxAI and what can it do?
</FAQSummary>
<FAQDetails>
<p>BloxAI is an advanced AI-powered tool designed to streamline and enhance productivity by automating repetitive tasks and providing intelligent insights. It can be used for various applications such as data analysis, natural language processing, and task scheduling, helping users to save time and focus on more complex tasks.</p>
</FAQDetails>
</details>
</FAQItem>

<FAQItem initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3, delay: 0.1 }}>
<details>
<FAQSummary whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
2. How can I install BloxAI on my system?
</FAQSummary>
<FAQDetails>
<p>To install BloxAI, follow these steps:</p>
<ol>
<li>Clone the repository using: <code>git clone https://github.com/subhadeeproy3902/BloxAI.git</code></li>
<li>Navigate to the project directory with: <code>cd BloxAI</code></li>
<li>Install the necessary dependencies by running: <code>npm install</code></li>
<li>Start the application using: <code>npm start</code></li>
</ol>
<p>Ensure that you have Node.js and npm installed on your system before proceeding with the installation.</p>
</FAQDetails>
</details>
</FAQItem>

<FAQItem initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3, delay: 0.2 }}>
<details>
<FAQSummary whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
3. How do I use BloxAI to automate repetitive tasks?
</FAQSummary>
<FAQDetails>
<p>To use BloxAI for automating tasks, follow these steps:</p>
<ol>
<li>Create a new task script in the designated scripts directory.</li>
<li>Define the tasks you want to automate using the provided APIs and libraries.</li>
<li>Configure the task scheduler to run your scripts at specified intervals or triggers.</li>
<li>Monitor the task execution and review the logs to ensure everything runs smoothly.</li>
</ol>
<p>Refer to the <a href="#user-guide">User Guide</a> for detailed examples and use cases.</p>
</FAQDetails>
</details>
</FAQItem>

<FAQItem initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3, delay: 0.3 }}>
<details>
<FAQSummary whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
4. How can I contribute to the development of BloxAI?
</FAQSummary>
<FAQDetails>
<p>We welcome contributions from the community! To contribute:</p>
<ol>
<li>Fork the repository to your GitHub account.</li>
<li>Clone the forked repository to your local machine.</li>
<li>Create a new branch for your feature or bug fix: <code>git checkout -b feature-name</code></li>
<li>Make your changes and commit them with descriptive messages.</li>
<li>Push your changes to your forked repository.</li>
<li>Open a pull request to the main repository with a detailed description of your changes.</li>
</ol>
<p>Ensure you follow our <a href="CONTRIBUTING.md">Contributing Guidelines</a> for more information on the contribution process.</p>
</FAQDetails>
</details>
</FAQItem>

<FAQItem initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3, delay: 0.4 }}>
<details>
<FAQSummary whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
5. Where can I find the detailed documentation for BloxAI?
</FAQSummary>
<FAQDetails>
<p>You can find the detailed documentation for BloxAI in the <a href="docs">docs</a> directory of this repository. Additionally, the documentation is available on our <a href="https://example.com/docs">official website</a>. The documentation includes setup guides, API references, and examples to help you get started and make the most of BloxAI.</p>
</FAQDetails>
</details>
</FAQItem>

<FAQItem initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3, delay: 0.5 }}>
<details>
<FAQSummary whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
6. Who can I contact for support or questions regarding BloxAI?
</FAQSummary>
<FAQDetails>
<p>If you have any questions or need support, you can open an issue on our GitHub repository. For more direct assistance, you can contact us at support@example.com. We also have a community forum where you can ask questions and share insights with other BloxAI users.</p>
</FAQDetails>
</details>
</FAQItem>
</FAQContainer>
);
};

export default FAQ;
5 changes: 5 additions & 0 deletions src/app/contributors/ContributorsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,9 @@ export const ContributorsData = [
github: "https://github.com/chaanakyaam",
imageUrl: "https://avatars.githubusercontent.com/u/131477601?s=400&v=4",
},
{
name: "Mahek Patel",
github: "https://github.com/mahek0620",
imageUrl: "https://avatars.githubusercontent.com/u/136893675?s=400&v=4",
},
];
4 changes: 4 additions & 0 deletions src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import Footer from "@/components/shared/Footer";
import ScrollToTopButton from "@/components/shared/ScrollUp";
import Lenis from '@studio-freight/lenis';
import { useEffect } from "react";
import Faq from "@/components/shared/Faq";
export default function Home() {
useEffect(() => {
const lenis = new Lenis();
Expand All @@ -26,6 +27,9 @@ export default function Home() {
<AnimatedTooltipPreview />
<FollowingPointerDemo />
</div>
<div>
<Faq />
</div>
<Footer />
<ScrollToTopButton />
</>
Expand Down
140 changes: 140 additions & 0 deletions src/components/shared/Faq.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
// src/FAQ.tsx
import React from 'react';
import styled from 'styled-components';
import { motion } from 'framer-motion';

const FAQContainer = styled.div`
max-width: 800px;
margin: 40px auto;
font-family: Arial, sans-serif;
`;

const FAQHeader = styled.h1`
text-align: center;
margin-bottom: 40px;
`;

const FAQItem = styled(motion.div)`
margin-bottom: 20px;
background: #f9f9f9;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
overflow: hidden;
`;

const FAQSummary = styled(motion.summary)`
font-size: 18px;
font-weight: bold;
cursor: pointer;
padding: 15px;
background: #007BFF;
color: white;
border: none;
outline: none;
display: flex;
align-items: center;
justify-content: space-between;
`;

const FAQDetails = styled(motion.div)`
padding: 0 20px 20px;
`;

const FAQ: React.FC = () => {
return (
<FAQContainer>
<FAQHeader>Frequently Asked Questions (FAQs)</FAQHeader>

<FAQItem initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3 }}>
<details>
<FAQSummary whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
1. What is BloxAI and what can it do?
</FAQSummary>
<FAQDetails>
<p>BloxAI is an advanced AI-powered tool designed to streamline and enhance productivity by automating repetitive tasks and providing intelligent insights. It can be used for various applications such as data analysis, natural language processing, and task scheduling, helping users to save time and focus on more complex tasks.</p>
</FAQDetails>
</details>
</FAQItem>

<FAQItem initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3, delay: 0.1 }}>
<details>
<FAQSummary whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
2. How can I install BloxAI on my system?
</FAQSummary>
<FAQDetails>
<p>To install BloxAI, follow these steps:</p>
<ol>
<li>Clone the repository using: <code>git clone https://github.com/subhadeeproy3902/BloxAI.git</code></li>
<li>Navigate to the project directory with: <code>cd BloxAI</code></li>
<li>Install the necessary dependencies by running: <code>npm install</code></li>
<li>Start the application using: <code>npm start</code></li>
</ol>
<p>Ensure that you have Node.js and npm installed on your system before proceeding with the installation.</p>
</FAQDetails>
</details>
</FAQItem>

<FAQItem initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3, delay: 0.2 }}>
<details>
<FAQSummary whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
3. How do I use BloxAI to automate repetitive tasks?
</FAQSummary>
<FAQDetails>
<p>To use BloxAI for automating tasks, follow these steps:</p>
<ol>
<li>Create a new task script in the designated scripts directory.</li>
<li>Define the tasks you want to automate using the provided APIs and libraries.</li>
<li>Configure the task scheduler to run your scripts at specified intervals or triggers.</li>
<li>Monitor the task execution and review the logs to ensure everything runs smoothly.</li>
</ol>
<p>Refer to the <a href="#user-guide">User Guide</a> for detailed examples and use cases.</p>
</FAQDetails>
</details>
</FAQItem>

<FAQItem initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3, delay: 0.3 }}>
<details>
<FAQSummary whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
4. How can I contribute to the development of BloxAI?
</FAQSummary>
<FAQDetails>
<p>We welcome contributions from the community! To contribute:</p>
<ol>
<li>Fork the repository to your GitHub account.</li>
<li>Clone the forked repository to your local machine.</li>
<li>Create a new branch for your feature or bug fix: <code>git checkout -b feature-name</code></li>
<li>Make your changes and commit them with descriptive messages.</li>
<li>Push your changes to your forked repository.</li>
<li>Open a pull request to the main repository with a detailed description of your changes.</li>
</ol>
<p>Ensure you follow our <a href="CONTRIBUTING.md">Contributing Guidelines</a> for more information on the contribution process.</p>
</FAQDetails>
</details>
</FAQItem>

<FAQItem initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3, delay: 0.4 }}>
<details>
<FAQSummary whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
5. Where can I find the detailed documentation for BloxAI?
</FAQSummary>
<FAQDetails>
<p>You can find the detailed documentation for BloxAI in the <a href="docs">docs</a> directory of this repository. Additionally, the documentation is available on our <a href="https://example.com/docs">official website</a>. The documentation includes setup guides, API references, and examples to help you get started and make the most of BloxAI.</p>
</FAQDetails>
</details>
</FAQItem>

<FAQItem initial={{ opacity: 0, y: 10 }} animate={{ opacity: 1, y: 0 }} transition={{ duration: 0.3, delay: 0.5 }}>
<details>
<FAQSummary whileHover={{ scale: 1.05 }} whileTap={{ scale: 0.95 }}>
6. Who can I contact for support or questions regarding BloxAI?
</FAQSummary>
<FAQDetails>
<p>If you have any questions or need support, you can open an issue on our GitHub repository. For more direct assistance, you can contact us at support@example.com. We also have a community forum where you can ask questions and share insights with other BloxAI users.</p>
</FAQDetails>
</details>
</FAQItem>
</FAQContainer>
);
};

export default FAQ;
Loading