refactor: Migrate documentation content, rebuild UI components, and update core architecture.

This commit is contained in:
gitfromwildan
2026-03-10 01:38:58 +07:00
parent aac81dff8a
commit ab755844a3
132 changed files with 3947 additions and 12862 deletions

View File

@@ -1,5 +1,5 @@
import Link from "next/link";
import { ModeToggle } from "@/components/theme-toggle";
import { ModeToggle } from "@/components/ThemeToggle";
import docuData from "@/docu.json";
import * as LucideIcons from "lucide-react";
@@ -20,21 +20,25 @@ const docuConfig = docuData as {
footer: FooterConfig;
};
export function Footer() {
interface FooterProps {
id?: string;
}
export function Footer({ id }: FooterProps) {
const { footer } = docuConfig;
return (
<footer className="w-full py-8 border-t bg-background">
<footer id={id} className="w-full py-8 border-t bg-background">
<div className="container flex flex-col lg:flex-row items-center justify-between text-sm">
<div className="flex flex-col items-center lg:items-start justify-start gap-4 w-full lg:w-3/5 text-center lg:text-left">
<p className="text-muted-foreground">
Copyright © {new Date().getFullYear()} {footer.copyright} - <MadeWith />
</p>
<div className="flex items-center justify-center lg:justify-start gap-6 mt-2 w-full">
<FooterButtons />
</div>
<p className="text-muted-foreground">
Copyright © {new Date().getFullYear()} {footer.copyright} - <MadeWith />
</p>
<div className="flex items-center justify-center lg:justify-start gap-6 mt-2 w-full">
<FooterButtons />
</div>
</div>
<div className="hidden lg:flex items-center justify-end lg:w-2/5">
<ModeToggle />
<ModeToggle />
</div>
</div>
</footer>
@@ -79,9 +83,9 @@ export function MadeWith() {
<span className="text-muted-foreground">Made with </span>
<span className="text-primary">
<Link href="https://www.docubook.pro" target="_blank" rel="noopener noreferrer" className="underline underline-offset-2 text-muted-foreground">
DocuBook
DocuBook
</Link>
</span>
</span>
</>
);
}