This commit is contained in:
3zachm 2022-11-23 14:20:36 -08:00
commit 3ed18f7eda
16 changed files with 7445 additions and 0 deletions

6
pages/_app.tsx Normal file
View file

@ -0,0 +1,6 @@
import "../styles/globals.css";
import type { AppProps } from "next/app";
export default function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
}

13
pages/api/ping.ts Normal file
View file

@ -0,0 +1,13 @@
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction
import type { NextApiRequest, NextApiResponse } from "next";
type Data = {
code: string;
};
export default function handler(
req: NextApiRequest,
res: NextApiResponse<Data>
) {
res.status(200).json({ code: "pong" });
}

17
pages/index.tsx Normal file
View file

@ -0,0 +1,17 @@
import Head from "next/head";
export default function Home() {
return (
<div className="flex h-screen w-screen flex-col items-center justify-center bg-gray-900">
<Head>
<title>InvestBot</title>
<meta name="description" content="Temporary home :)" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main>
<h1 className="text-6xl text-white">Hello :o</h1>
</main>
</div>
);
}