index.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import Head from 'next/head'
  2. import Image from 'next/image'
  3. import styles from '../styles/Home.module.css'
  4. export default function Home() {
  5. return (
  6. <div className={styles.container}>
  7. <Head>
  8. <title>Create Next App</title>
  9. <meta name="description" content="Generated by create next app" />
  10. <link rel="icon" href="/favicon.ico" />
  11. </Head>
  12. <main className={styles.main}>
  13. <h1 className={styles.title}>
  14. Welcome to <a href="https://nextjs.org">Next.js!</a>
  15. </h1>
  16. <p className={styles.description}>
  17. Get started by editing{' '}
  18. <code className={styles.code}>pages/index.js</code>
  19. </p>
  20. <div className={styles.grid}>
  21. <a href="https://nextjs.org/docs" className={styles.card}>
  22. <h2>Documentation &rarr;</h2>
  23. <p>Find in-depth information about Next.js features and API.</p>
  24. </a>
  25. <a href="https://nextjs.org/learn" className={styles.card}>
  26. <h2>Learn &rarr;</h2>
  27. <p>Learn about Next.js in an interactive course with quizzes!</p>
  28. </a>
  29. <a
  30. href="https://github.com/vercel/next.js/tree/master/examples"
  31. className={styles.card}
  32. >
  33. <h2>Examples &rarr;</h2>
  34. <p>Discover and deploy boilerplate example Next.js projects.</p>
  35. </a>
  36. <a
  37. href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
  38. className={styles.card}
  39. >
  40. <h2>Deploy &rarr;</h2>
  41. <p>
  42. Instantly deploy your Next.js site to a public URL with Vercel.
  43. </p>
  44. </a>
  45. </div>
  46. </main>
  47. <footer className={styles.footer}>
  48. <a
  49. href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
  50. target="_blank"
  51. rel="noopener noreferrer"
  52. >
  53. Powered by{' '}
  54. <span className={styles.logo}>
  55. <Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
  56. </span>
  57. </a>
  58. </footer>
  59. </div>
  60. )
  61. }