Skip to content

Commit 59f4077

Browse files
feat:FAQ-section
chore: correct grammar chore: update bun lockfile chore: fix typography and formatting
1 parent 6255b6b commit 59f4077

3 files changed

Lines changed: 61 additions & 12 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-base text-[var(--text)] font-heading font-light mt-4 cursor-pointer p-2 rounded-md">
33+
{faq.question}
34+
</summary>
35+
<p className="text-base 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import ExportOverlay from "./ExportOverlay";
1818
import DownloadResult from "./DownloadResult";
1919
import ImageOverlay from "./ImageOverlay"
2020
import { getPresetById } from "@/lib/presets";
21-
21+
import FAQ from "./FAQ";
2222
import { cn } from "@/lib/utils";
2323
import {
2424
Layers, Crop, Scissors, RotateCw, Volume2, Type,
@@ -717,6 +717,9 @@ export default function VideoEditor() {
717717
</div>
718718
</div>
719719
</div>
720+
<div className="max-w-6xl mx-auto px-4 pb-8 w-full border-[var(--border)]">
721+
<FAQ />
722+
</div>
720723
</div>
721724
);
722725
}

0 commit comments

Comments
 (0)