index.tsx 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. import type { NextPage } from 'next';
  2. import Head from 'next/head';
  3. import Image from 'next/image';
  4. import styles from '../styles/Home.module.css';
  5. const Home: NextPage = () => {
  6. return (
  7. <div className={styles.container}>
  8. <Head>
  9. <title>Create Next App</title>
  10. <meta name="description" content="Generated by create next app" />
  11. <link rel="icon" href="/favicon.ico" />
  12. </Head>
  13. <main className={styles.main}>
  14. <h1 className={styles.title}>
  15. Welcome to <a href="https://nextjs.org">Next.js!</a>
  16. </h1>
  17. <p className={styles.description}>
  18. Get started by editing <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 href="https://github.com/vercel/next.js/tree/master/examples" className={styles.card}>
  30. <h2>Examples &rarr;</h2>
  31. <p>Discover and deploy boilerplate example Next.js projects.</p>
  32. </a>
  33. <a
  34. href="https://vercel.com/new?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
  35. className={styles.card}
  36. >
  37. <h2>Deploy &rarr;</h2>
  38. <p>Instantly deploy your Next.js site to a public URL with Vercel.</p>
  39. </a>
  40. </div>
  41. </main>
  42. <footer className={styles.footer}>
  43. <a
  44. href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
  45. target="_blank"
  46. rel="noopener noreferrer"
  47. >
  48. Powered by{' '}
  49. <span className={styles.logo}>
  50. <Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
  51. </span>
  52. </a>
  53. </footer>
  54. </div>
  55. );
  56. };
  57. export default Home;