diff --git a/bun.lockb b/bun.lockb index 1d119f4..f6e3bef 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/docs/home.md b/docs/intro.md similarity index 86% rename from docs/home.md rename to docs/intro.md index b7bab9c..1a74f8f 100644 --- a/docs/home.md +++ b/docs/intro.md @@ -1,9 +1,8 @@ --- -title: 'Home' +title: '🚀 Introduction' published: '10-06-2024' summary: 'petentium usu tota noluisse errem elaboraret auctor.' --- # Get started with Pulse App! - petentium usu tota noluisse errem elaboraret auctor. \ No newline at end of file diff --git a/src/app/layout.tsx b/src/app/layout.tsx index ed883e7..ca8204c 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -52,7 +52,9 @@ const RootLayout = ({
- +
+ +
{children}
diff --git a/src/components/navbar/navbar.tsx b/src/components/navbar/navbar.tsx index 14c2c46..5b94cd8 100644 --- a/src/components/navbar/navbar.tsx +++ b/src/components/navbar/navbar.tsx @@ -4,6 +4,7 @@ import Image from "next/image"; import { cn } from "@/lib/utils"; import QuickSearchDialog from "@/components/navbar/search-dialog"; import { getDocsContent } from "@/lib/mdx"; +import Sidebar from "@/components/sidebar/sidebar"; const Navbar = (): ReactElement => { const pages: DocsContentMetadata[] = getDocsContent(); @@ -32,7 +33,9 @@ const Navbar = (): ReactElement => { {/* Right */}
{/* Search */} - +
+ +
{/* Social */}
@@ -47,6 +50,11 @@ const Navbar = (): ReactElement => { icon="/media/discord.svg" />
+ + {/* Mobile Sidebar */} +
+ +
); diff --git a/src/components/navbar/search-dialog.tsx b/src/components/navbar/search-dialog.tsx index 8ded522..aff4b71 100644 --- a/src/components/navbar/search-dialog.tsx +++ b/src/components/navbar/search-dialog.tsx @@ -13,7 +13,6 @@ import { MagnifyingGlassIcon } from "@heroicons/react/24/outline"; import { Input } from "@/components/ui/input"; import { useRouter } from "next/navigation"; import { AppRouterInstance } from "next/dist/shared/lib/app-router-context.shared-runtime"; -import { Button } from "@/components/ui/button"; /** * The dialog for quickly searching the docs. @@ -48,31 +47,23 @@ const QuickSearchDialog = ({ className="cursor-pointer hover:opacity-85 transition-all transform-gpu select-none" onClick={() => setOpen(true)} > - {/* Bigger Screens */} -
-
- -
- - - -
- - ⌘K - -
+
+
- {/* Smaller Screens */} - + + +
+ + ⌘K + +
{/* Dialog */} diff --git a/src/components/sidebar/sidebar-links.tsx b/src/components/sidebar/sidebar-links.tsx index 0ba8843..e077b13 100644 --- a/src/components/sidebar/sidebar-links.tsx +++ b/src/components/sidebar/sidebar-links.tsx @@ -46,12 +46,12 @@ const CategoryItem = ({ }) => { const path = usePathname(); const active = - (path === "/" && node.slug === "home") || path === `/${node.slug}`; + (path === "/" && node.slug === "intro") || path === `/${node.slug}`; const [isOpen, setIsOpen] = useState(true); const hasChildren = Object.keys(node.children).length > 0; return ( -
0 ? "ml-4" : ""} select-none`}> +
0 ? "ml-2.5" : ""} select-none`}> {/* Indentation */} {depth > 0 && (