interstellar_ai/app/layout.tsx

25 lines
953 B
TypeScript
Raw Normal View History

import { ReactNode } from 'react';
2024-09-19 12:18:04 +02:00
// Metadata for the application, used for SEO and page information
2024-09-18 09:47:23 +02:00
export const metadata = {
title: 'AI Assistant | Interstellar Development', // Title of the page
description: 'A little AI chat that is able to assist you in little tasks', // Description of the page
};
2024-09-18 09:47:23 +02:00
// RootLayout component definition
export default function RootLayout({ children }: { children: ReactNode }) {
2024-09-18 09:47:23 +02:00
return (
<html lang="en"> {/* Set the language of the document */}
<head>
<title>{metadata.title}</title> {/* Set the page title */}
<meta name="description" content={metadata.description} /> {/* Set the page description for SEO */}
{/* Link to the favicon for the site */}
2024-09-27 14:03:43 +02:00
<link rel="icon" href="./favicon.ico" type="image/x-icon" />
</head>
2024-09-19 12:18:04 +02:00
<body>
<main>{children}</main> {/* Render the child components inside the main element */}
2024-09-19 12:18:04 +02:00
</body>
2024-09-18 09:47:23 +02:00
</html>
2024-09-19 12:18:04 +02:00
);
2024-09-18 09:47:23 +02:00
}