Skip to content

Commit acb4cef

Browse files
feat:FAQ-section
chore: correct grammar
1 parent 58bc39f commit acb4cef

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

src/components/FAQ.tsx

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
import { JSX } from "react";
2+
3+
const faqQuestions = [
4+
{
5+
question: "Is my video uploaded anywhere?",
6+
answer: "No, your video is not uploaded anywhere. They are processed locally on your machine."
7+
},{
8+
question:"What video formats are supported?",
9+
answer:"Reframe supports a wide range of video formats including MP4, MOV, AVI, and WEBM. If your video is in a different format, you can convert it to one of the supported formats using free online converters or software.",
10+
},
11+
{
12+
question:"Why is processing slow for large files?",
13+
answer:"Large videos require more memory and processing power, which may slow down processing depending on your device.",
14+
},
15+
{
16+
question:"Can I use this offline?",
17+
answer:"Once loaded, Reframe works fully offline — your browser needs to download the FFmpeg engine (~30MB) the first time, but after that no internet connection is needed.",
18+
}
19+
]
20+
21+
const FAQ = (): JSX.Element => {
22+
return (
23+
<>
24+
<div className= "bg-[var(--surface)] rounded-xl shadow p-5 space-y-4 animate-fade-in border border-[var(--border)] transition-colors">
25+
<details >
26+
<summary className= "text-xl text-[var(--text)] font-heading font-bold uppercase tracking-widest p-2 cursor-pointer rounded-md">
27+
FAQ
28+
</summary>
29+
{faqQuestions.map((faq, index)=>{
30+
return (
31+
<details key= {index}>
32+
<summary className= "text-md text-[var(--text)] font-heading font-light mt-4 cursor-pointer p-2 rounded-md ">
33+
{faq.question}
34+
</summary>
35+
<p className= "text-md text-[var(--text)] mt-2 ml-2 font-extralight p-2 rounded-md">
36+
{faq.answer}
37+
</p>
38+
</details>
39+
)
40+
})}
41+
</details>
42+
</div>
43+
</>
44+
)
45+
}
46+
47+
export default FAQ;

src/components/VideoEditor.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import FormatSelector from "./FormatSelector";
1212
import ExportSettings from "./ExportSettings";
1313
import ExportOverlay from "./ExportOverlay";
1414
import DownloadResult from "./DownloadResult";
15+
import FAQ from "./FAQ";
1516
import { cn } from "@/lib/utils";
1617
import {
1718
Layers, Crop, Scissors, RotateCw, Volume2,
@@ -313,6 +314,9 @@ export default function VideoEditor() {
313314
</div>
314315
</div>
315316
</div>
317+
<div className="max-w-6xl mx-auto px-4 pb-8 w-full border-[var(--border)]">
318+
<FAQ />
319+
</div>
316320
</div>
317321
);
318322
}

0 commit comments

Comments
 (0)