Rob Caldecott 2e8a3b105d
feat: added nextjs example (#920)
* feat: added nextjs example

* chore: update

* chore: simplify nextjs demo

Co-authored-by: Rob Caldecott <robert.caldecott@keyloop.com>
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
2022-03-14 06:33:20 +08:00

34 lines
868 B
TypeScript

import type { NextPage } from 'next'
import Head from 'next/head'
import Image from 'next/image'
const Home: NextPage = () =>
<>
<Head>
<title>Create Next App</title>
<meta name="description" content="Generated by create next app" />
<link rel="icon" href="/favicon.ico" />
</Head>
<main>
<h1>
Welcome to Next.js!
</h1>
<footer>
<a
href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
target="_blank"
rel="noopener noreferrer"
>
Powered by{' '}
<span>
<Image src="https://assets.vercel.com/image/upload/q_auto/front/favicon/vercel/57x57.png" alt="Vercel Logo" width={72} height={16} />
</span>
</a>
</footer>
</main>
</>
export default Home