diff --git a/src/app/faq/layout.tsx b/src/app/faq/layout.tsx new file mode 100644 index 0000000..c16b056 --- /dev/null +++ b/src/app/faq/layout.tsx @@ -0,0 +1,6 @@ +import { HomeLayout } from "fumadocs-ui/layouts/home"; +import { baseOptions } from "@/lib/layout.shared"; + +export default function Layout({ children }: LayoutProps<"/">) { + return {children}; +} diff --git a/src/app/faq/page.tsx b/src/app/faq/page.tsx new file mode 100644 index 0000000..d4ba3aa --- /dev/null +++ b/src/app/faq/page.tsx @@ -0,0 +1,67 @@ +import type { Metadata } from "next"; +import { HelpCircle } from "lucide-react"; + +const faqs = [ + { + question: "What is Mist?", + answer: + "Mist is a modern programming language designed for systems programming with a focus on simplicity, performance, and developer experience. It compiles to native code and offers a rich type system with features like generics, traits, algebraic data types, and more.", + }, + { + question: "How does Mist compare to Rust?", + answer: + "Instead of replacing Rust, Mist aims to be more familiar and more approachable than Rust by offering design concepts that Rust rejected while still being Rust on the inside.", + }, + { + question: "Is Mist production-ready?", + answer: + "Mist is still in active development and is not yet production-ready. The language is evolving rapidly, and while many core features are implemented, you may encounter breaking changes between releases. Check the release notes and documentation for the current status.", + }, + { + question: "What platforms does Mist support?", + answer: + "Mist is cross platform, It's a base layer of Rust, meaning it can run on anything that Rust can run", + }, + { + question: "How can I contribute to Mist?", + answer: + "Mist is open source and contributions are welcome! You can contribute by submitting pull requests, reporting bugs, improving documentation, or participating in discussions on GitHub.", + }, +]; + +export default function FAQ() { + return ( +
+
+
+ +

+ Frequently Asked Questions +

+
+

+ Common questions about Mist, its features, and ecosystem. +

+
+ + {faqs.map((faq) => ( +
+

+ {faq.question} +

+

+ {faq.answer} +

+
+ ))} +
+ ); +} + +export const metadata: Metadata = { + title: "Frequently Asked Questions", + description: "Common questions about Mist, its features, and ecosystem.", +}; diff --git a/src/lib/layout.shared.tsx b/src/lib/layout.shared.tsx index 7bb8243..d203c08 100644 --- a/src/lib/layout.shared.tsx +++ b/src/lib/layout.shared.tsx @@ -29,8 +29,8 @@ export function baseOptions(): BaseLayoutProps { }, { type: "main", - text: "Faq", - url: "/feq", + text: "FAQ", + url: "/faq", icon: , }, ],