From d0eed645a4276c182d373b00e2b383e0ed190ed7 Mon Sep 17 00:00:00 2001 From: IT Fixcomart Date: Thu, 27 Oct 2022 09:44:54 +0700 Subject: initial commit --- pages/_app.js | 7 ++++++ pages/api/hello.js | 5 ++++ pages/index.js | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 81 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 00000000..1e1cec92 --- /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 00000000..df63de88 --- /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 function handler(req, res) { + res.status(200).json({ name: 'John Doe' }) +} diff --git a/pages/index.js b/pages/index.js new file mode 100644 index 00000000..dc4b6403 --- /dev/null +++ b/pages/index.js @@ -0,0 +1,69 @@ +import Head from 'next/head' +import Image from 'next/image' +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