-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathFAQ.tsx
More file actions
96 lines (89 loc) · 4.2 KB
/
Copy pathFAQ.tsx
File metadata and controls
96 lines (89 loc) · 4.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import { useState } from 'react';
import BackButton from '../components/buttons/BackBtn';
import useDocumentTitle from '../hooks/usePageTitles';
interface FAQItemProps {
question: string;
answer: string;
isOpen: boolean;
onClick: () => void;
}
const FAQItem = ({ question, answer, isOpen, onClick }: FAQItemProps) => {
useDocumentTitle('FAQ | BingeBox');
return (
<div className='faq-item mb-4'>
<div className='absolute top-20 left-3 z-1'>
<BackButton />
</div>
<div
className='question p-4 bg-gray-800 rounded cursor-pointer flex justify-between items-center'
onClick={onClick}
>
<h3 className='text-xl font-semibold'>{question}</h3>
<span className='text-xl'>{isOpen ? '−' : '+'}</span>
</div>
{isOpen && (
<div className='answer p-4 bg-gray-700 rounded-b'>
<p>{answer}</p>
</div>
)}
</div>
);
};
const FAQPage = () => {
const [openItemIndex, setOpenItemIndex] = useState<number | null>(null);
const faqData = [
{
question: 'Do I have to pay anything to use your site?',
answer:
'BingeBox is 100% free. We may start accepting donations in the future, strictly for your appreciation of the site, not the content.',
},
{
question: 'What about all these popups & redirects?',
answer:
"We aren't putting those on you, they come from the servers we link to that allow you to stream content. To some extent it is understandable that content providers need money coming in, but we can't always be sure that the popups are safe or appropriate. If you want to block the popups, the recommendations are as follows: 1) If you are on Safari IOS mobile, you can go into settings for Safari, and under advanced options, then feature flags, you can find a toggle to verify the window.open function. This will stop almost everything (100% all redirects/popups on SOME servers) and some of your taps will appear to do nothing. This is the absolute most comprehensive approach. 2) On Chrome or Firefox desktop, you can add Poper Blocker. 3) For Android, we think Firefox + uBlock is a good option. 4) Brave browser is another option in \"Shields Up\" mode but on iOS it can't stop all the pop-ups & redirects and isn't nearly as good as #1. 4) We are working on ad blocking options you will be able to opt into later.",
},
{
question:
'Is this site illegal for me to use? Will my ISP know I am using it?',
answer:
'Your ISP will only know that you are watching videos, not what the videos are or whether you paid for them or not. Your ISP will see it as similar to YouTube. BingeBox uses servers with DMCA protected links and we do not engage in any copyright infrigement. We recommend that you use a VPN if you are concerned about your privacy. ',
},
{
question: "Sometimes I can't find what I am looking for, what do I do?",
answer:
"BingeBox is not responsible for the content of the servers we link to, therefore we can't help you if you don't find something you are looking for. However, this is often a temporary problem and we encourage you to check back later. We provide multiple servers including multi-server embeds, so please make sure you are checking all possible resources. Look for a cloud icon, a gearbox icon, or a dropdown menu to see additional servers not listed in the main list.",
},
// {
// question: "",
// answer: " "
// },
// {
// question: "",
// answer: " "
// },
// {
// question: "",
// answer: " "
// },
];
const handleItemClick = (index: number) => {
setOpenItemIndex(openItemIndex === index ? null : index);
};
return (
<div className='faq-page text-white p-4 max-w-3xl mx-auto mt-20'>
<h1 className='text-center text-4xl mb-8'>Frequently Asked Questions</h1>
<div className='faq-items'>
{faqData.map((item, index) => (
<FAQItem
key={index}
question={item.question}
answer={item.answer}
isOpen={openItemIndex === index}
onClick={() => handleItemClick(index)}
/>
))}
</div>
</div>
);
};
export default FAQPage;