Skip to content

Commit 1f77a54

Browse files
feat:FAQ-section
chore: correct grammar chore: update bun lockfile
1 parent 50df47a commit 1f77a54

3 files changed

Lines changed: 62 additions & 13 deletions

File tree

bun.lock

Lines changed: 10 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import FormatSelector from "./FormatSelector";
1414
import ExportSettings from "./ExportSettings";
1515
import ExportOverlay from "./ExportOverlay";
1616
import DownloadResult from "./DownloadResult";
17-
import ImageOverlay from "./ImageOverlay"
18-
17+
import ImageOverlay from "./ImageOverlay";
18+
import FAQ from "./FAQ";
1919
import { cn } from "@/lib/utils";
2020
import {
2121
Layers, Crop, Scissors, RotateCw, Volume2,
@@ -505,6 +505,9 @@ export default function VideoEditor() {
505505
</div>
506506
</div>
507507
</div>
508+
<div className="max-w-6xl mx-auto px-4 pb-8 w-full border-[var(--border)]">
509+
<FAQ />
510+
</div>
508511
</div>
509512
);
510513
}

0 commit comments

Comments
 (0)