NextJS + Tailwind base setup.

This commit is contained in:
Daniel
2023-01-23 01:09:35 +03:30
parent 75e5f52a91
commit 31010c96e9
15 changed files with 2467 additions and 99 deletions
+5
View File
@@ -0,0 +1,5 @@
import '@/styles/globals.css'
export default function App({ Component, pageProps }) {
return <Component {...pageProps} />
}
+13
View File
@@ -0,0 +1,13 @@
import { Html, Head, Main, NextScript } from 'next/document'
export default function Document() {
return (
<Html lang="en">
<Head />
<body>
<Main />
<NextScript />
</body>
</Html>
)
}
+5
View File
@@ -0,0 +1,5 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
export default function handler(req, res) {
res.status(200).json({ name: 'John Doe' })
}
+17
View File
@@ -0,0 +1,17 @@
import Head from "next/head";
export default function Home() {
return (
<>
<Head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main>
<h1 className="text-3xl font-bold text-center">LinkWarden</h1>
</main>
</>
);
}