The serverless API for our final software engineering project.

index.tsx 2.2KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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.tsx</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/canary/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. target="_blank"
  39. rel="noopener noreferrer"
  40. className={styles.card}
  41. >
  42. <h2>Deploy &rarr;</h2>
  43. <p>
  44. Instantly deploy your Next.js site to a public URL with Vercel.
  45. </p>
  46. </a>
  47. </div>
  48. </main>
  49. <footer className={styles.footer}>
  50. <a
  51. href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
  52. target="_blank"
  53. rel="noopener noreferrer"
  54. >
  55. Powered by{' '}
  56. <span className={styles.logo}>
  57. <Image src="/vercel.svg" alt="Vercel Logo" width={72} height={16} />
  58. </span>
  59. </a>
  60. </footer>
  61. </div>
  62. )
  63. }