Files
website/apps/website/app/layout.tsx
Mauricio Siu 0b52b9b1af docs: refactor code for consistency and readability
- Standardized import statements across various components to use double quotes for consistency.
- Updated component files to ensure proper formatting and adherence to coding standards.
- Enhanced overall code readability by aligning code structure and improving comment clarity.
- Made minor adjustments to ensure all components follow the same coding conventions, improving maintainability.
2025-12-07 18:13:12 -06:00

82 lines
2.0 KiB
TypeScript

import { GoogleAnalytics } from "@next/third-parties/google";
import clsx from "clsx";
import type { Metadata } from "next";
import { Inter, Lexend } from "next/font/google";
import type { ReactNode } from "react";
import "@/styles/tailwind.css";
import "react-photo-view/dist/react-photo-view.css";
import { Footer } from "@/components/Footer";
import { Header } from "@/components/Header";
type Props = {
children: ReactNode;
};
export const metadata: Metadata = {
metadataBase: new URL("https://dokploy.com"),
title: {
default: "Dokploy - Deploy your applications with ease",
template: "%s | Dokploy",
},
description: "Deploy your applications with ease using Dokploy",
icons: {
icon: "icon.svg",
apple: "apple-touch-icon.png",
},
openGraph: {
title: "Dokploy - Deploy your applications with ease",
description: "Deploy your applications with ease using Dokploy",
images: "/og.png",
type: "website",
},
twitter: {
card: "summary_large_image",
title: "Dokploy - Deploy your applications with ease",
description: "Deploy your applications with ease using Dokploy",
images: ["/og.png"],
},
};
const inter = Inter({
subsets: ["latin"],
display: "swap",
variable: "--font-inter",
});
const lexend = Lexend({
subsets: ["latin"],
display: "swap",
variable: "--font-lexend",
});
// Since we have a `not-found.tsx` page on the root, a layout file
// is required, even if it's just passing children through.
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html
lang="en"
className={clsx(
"h-full scroll-smooth antialiased",
inter.variable,
lexend.variable,
)}
>
<head>
<script
type="text/javascript"
id="hs-script-loader"
async
defer
src="//js-eu1.hs-scripts.com/147033433.js"
/>
</head>
<body>
<GoogleAnalytics gaId="G-0RTZ5EPB26" />
<div className="flex h-full flex-col">
<Header />
{children}
<Footer />
</div>
</body>
</html>
);
}