From a2ead3c3f51e4cdce01a75ad8235f49951b0fff6 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Fri, 12 Feb 2021 14:14:45 +0000 Subject: Inital commit --- pages/_app.js | 7 ++++++ pages/api/hello.js | 5 +++++ pages/index.js | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+) create mode 100644 pages/_app.js create mode 100644 pages/api/hello.js create mode 100644 pages/index.js (limited to 'pages') diff --git a/pages/_app.js b/pages/_app.js new file mode 100644 index 0000000..1e1cec9 --- /dev/null +++ b/pages/_app.js @@ -0,0 +1,7 @@ +import '../styles/globals.css' + +function MyApp({ Component, pageProps }) { + return +} + +export default MyApp diff --git a/pages/api/hello.js b/pages/api/hello.js new file mode 100644 index 0000000..9987aff --- /dev/null +++ b/pages/api/hello.js @@ -0,0 +1,5 @@ +// Next.js API route support: https://nextjs.org/docs/api-routes/introduction + +export default (req, res) => { + res.status(200).json({ name: 'John Doe' }) +} diff --git a/pages/index.js b/pages/index.js new file mode 100644 index 0000000..5787b11 --- /dev/null +++ b/pages/index.js @@ -0,0 +1,65 @@ +import Head from 'next/head' +import styles from '../styles/Home.module.css' + +export default function Home() { + return ( +
+ + Create Next App + + + +
+

+ Welcome to Next.js! +

+ +

+ Get started by editing{' '} + pages/index.js +

+ +
+ +

Documentation →

+

Find in-depth information about Next.js features and API.

+
+ + +

Learn →

+

Learn about Next.js in an interactive course with quizzes!

+
+ + +

Examples →

+

Discover and deploy boilerplate example Next.js projects.

+
+ + +

Deploy →

+

+ Instantly deploy your Next.js site to a public URL with Vercel. +

+
+
+
+ + +
+ ) +} -- cgit v1.2.3