mirror of
https://github.com/documenso/documenso.git
synced 2025-11-19 19:21:39 +10:00
app shell
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import "../styles/tailwind.css";
|
||||
import { ReactElement, ReactNode } from "react";
|
||||
import type { AppProps } from "next/app";
|
||||
import { NextPage } from "next";
|
||||
|
||||
21
apps/web/pages/_document.jsx
Normal file
21
apps/web/pages/_document.jsx
Normal file
@ -0,0 +1,21 @@
|
||||
import { Head, Html, Main, NextScript } from "next/document";
|
||||
import Script from "next/script";
|
||||
|
||||
export default function Document(props) {
|
||||
let pageProps = props.__NEXT_DATA__?.props?.pageProps;
|
||||
|
||||
return (
|
||||
<Html
|
||||
className="h-full scroll-smooth bg-white font-normal antialiased"
|
||||
lang="en"
|
||||
>
|
||||
<Head>
|
||||
<meta name="color-scheme"></meta>
|
||||
</Head>
|
||||
<body className="flex h-full flex-col">
|
||||
<Main />
|
||||
<NextScript />
|
||||
</body>
|
||||
</Html>
|
||||
);
|
||||
}
|
||||
@ -3,7 +3,7 @@ import Layout from "../components/layout";
|
||||
import type { NextPageWithLayout } from "./_app";
|
||||
|
||||
const Page: NextPageWithLayout = () => {
|
||||
return <p>hello world</p>;
|
||||
return <p className="text-red-900">This is the index page</p>;
|
||||
};
|
||||
|
||||
Page.getLayout = function getLayout(page: ReactElement) {
|
||||
|
||||
Reference in New Issue
Block a user