Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ export const metadata: Metadata = {
description: "Generated by create next app",
};

/**
* Root layout component that defines the application's HTML structure.
*
* Wraps the nested content within an HTML document element set to English. Global font styles are applied via imported font variables, and a navigation bar is rendered above the children.
*
* @param children - The content to be rendered within the layout.
*/
export default function RootLayout({
children,
}: Readonly<{
Expand Down
9 changes: 9 additions & 0 deletions components/NavBar.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
import Link from "next/link";

/**
* Renders a navigation bar with links to the home page and the Next.js documentation.
*
* The "Home" link routes to the application's root path, while the "Next.js Docs" link opens the official Next.js
* documentation in a new browser tab. Tailwind CSS classes are used for styling, including padding, a bottom border,
* and an underline effect on hover.
*
* @returns JSX element representing the navigation bar.
*/
export default function NavBar() {
return (
<nav className="p-4 border-b">
Expand Down