research-index / src /app /layout.tsx
ameerazampixis's picture
new
06a7653
raw
history blame
1.73 kB
import "./globals.css";
import type { Metadata } from "next";
import { Roboto } from "next/font/google";
import { Layout, FixedPlugin } from "@/components";
import React from "react";
const roboto = Roboto({
subsets: ["latin"],
weight: ["300", "400", "500", "700", "900"],
display: "swap",
});
export const metadata: Metadata = {
title: "NextJS Tailwind Event Landing Page",
description:
"Introducing Tailwind Event Landing Page, a dynamic and visually appealing landing page template designed using Tailwind CSS and Material Tailwind.",
};
// getting this Type error: Type 'ReactNode' is not assignable to type 'NonNullable<ReactNodeLike>'.
// Type 'undefined' is not assignable to type 'NonNullable<ReactNodeLike>'.
// ReactNodeLike is a type that represents a ReactNode or a string.
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="en">
<head>
<script
defer
data-site="YOUR_DOMAIN_HERE"
src="https://api.nepcha.com/js/nepcha-analytics.js"
></script>
<link rel="shortcut icon" href="/favicon.png" type="image/png" />
</head>
<body className={roboto.className}>
<Layout>
{children || <></>}
<FixedPlugin />
</Layout>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"
integrity="sha512-MV7K8+y+gLIBoVD59lQIYicR65iaqukzvf/nwasF0nqhPay5w/9lJmVM2hMDcnK1OnMGCdVK+iQrJ7lzPJQd1w=="
crossOrigin="anonymous"
referrerPolicy="no-referrer"
/>
</body>
</html>
);
}