|
| 1 | +import type { NextPage } from 'next' |
| 2 | +import Head from 'next/head' |
| 3 | +import Image from 'next/image' |
| 4 | + |
| 5 | +const Home: NextPage = () => { |
| 6 | + return ( |
| 7 | + <div className="flex min-h-screen flex-col items-center justify-center py-2"> |
| 8 | + <Head> |
| 9 | + <title>Create Next App</title> |
| 10 | + <link rel="icon" href="/favicon.ico" /> |
| 11 | + </Head> |
| 12 | + |
| 13 | + <main className="flex w-full flex-1 flex-col items-center justify-center px-20 text-center"> |
| 14 | + <h1 className="text-6xl font-bold"> |
| 15 | + Welcome to{' '} |
| 16 | + <a className="text-blue-600" href="https://nextjs.org"> |
| 17 | + Next.js! |
| 18 | + </a> |
| 19 | + </h1> |
| 20 | + |
| 21 | + <p className="mt-3 text-2xl"> |
| 22 | + Get started by editing{' '} |
| 23 | + <code className="rounded-md bg-gray-100 p-3 font-mono text-lg"> |
| 24 | + pages/index.tsx |
| 25 | + </code> |
| 26 | + </p> |
| 27 | + |
| 28 | + <div className="mt-6 flex max-w-4xl flex-wrap items-center justify-around sm:w-full"> |
| 29 | + <a |
| 30 | + href="https://nextjs.org/docs" |
| 31 | + className="mt-6 w-96 rounded-xl border p-6 text-left hover:text-blue-600 focus:text-blue-600" |
| 32 | + > |
| 33 | + <h3 className="text-2xl font-bold">Documentation →</h3> |
| 34 | + <p className="mt-4 text-xl"> |
| 35 | + Find in-depth information about Next.js features and API. |
| 36 | + </p> |
| 37 | + </a> |
| 38 | + |
| 39 | + <a |
| 40 | + href="https://nextjs.org/learn" |
| 41 | + className="mt-6 w-96 rounded-xl border p-6 text-left hover:text-blue-600 focus:text-blue-600" |
| 42 | + > |
| 43 | + <h3 className="text-2xl font-bold">Learn →</h3> |
| 44 | + <p className="mt-4 text-xl"> |
| 45 | + Learn about Next.js in an interactive course with quizzes! |
| 46 | + </p> |
| 47 | + </a> |
| 48 | + |
| 49 | + <a |
| 50 | + href="https://github.com/vercel/next.js/tree/canary/examples" |
| 51 | + className="mt-6 w-96 rounded-xl border p-6 text-left hover:text-blue-600 focus:text-blue-600" |
| 52 | + > |
| 53 | + <h3 className="text-2xl font-bold">Examples →</h3> |
| 54 | + <p className="mt-4 text-xl"> |
| 55 | + Discover and deploy boilerplate example Next.js projects. |
| 56 | + </p> |
| 57 | + </a> |
| 58 | + |
| 59 | + <a |
| 60 | + href="https://vercel.com/import?filter=next.js&utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
| 61 | + className="mt-6 w-96 rounded-xl border p-6 text-left hover:text-blue-600 focus:text-blue-600" |
| 62 | + > |
| 63 | + <h3 className="text-2xl font-bold">Deploy →</h3> |
| 64 | + <p className="mt-4 text-xl"> |
| 65 | + Instantly deploy your Next.js site to a public URL with Vercel. |
| 66 | + </p> |
| 67 | + </a> |
| 68 | + </div> |
| 69 | + </main> |
| 70 | + |
| 71 | + <footer className="flex h-24 w-full items-center justify-center border-t"> |
| 72 | + <a |
| 73 | + className="flex items-center justify-center gap-2" |
| 74 | + href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app" |
| 75 | + target="_blank" |
| 76 | + rel="noopener noreferrer" |
| 77 | + > |
| 78 | + Powered by{' '} |
| 79 | + <Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} /> |
| 80 | + </a> |
| 81 | + </footer> |
| 82 | + </div> |
| 83 | + ) |
| 84 | +} |
| 85 | + |
| 86 | +export default Home |
0 commit comments