page.tsx 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. import Image from "next/image";
  2. export default function Home() {
  3. return (
  4. <main className="flex min-h-screen flex-col items-center justify-between p-24">
  5. <div className="z-10 w-full max-w-5xl items-center justify-between font-mono text-sm lg:flex">
  6. <p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
  7. Get started by editing&nbsp;
  8. <code className="font-mono font-bold">app/page.tsx</code>
  9. </p>
  10. <div className="fixed bottom-0 left-0 flex h-48 w-full items-end justify-center bg-gradient-to-t from-white via-white dark:from-black dark:via-black lg:static lg:size-auto lg:bg-none">
  11. <a
  12. className="pointer-events-none flex place-items-center gap-2 p-8 lg:pointer-events-auto lg:p-0"
  13. href="https://vercel.com?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
  14. target="_blank"
  15. rel="noopener noreferrer"
  16. >
  17. By{" "}
  18. <Image
  19. src="/vercel.svg"
  20. alt="Vercel Logo"
  21. className="dark:invert"
  22. width={100}
  23. height={24}
  24. priority
  25. />
  26. </a>
  27. </div>
  28. </div>
  29. <div className="relative z-[-1] flex place-items-center before:absolute before:h-[300px] before:w-full before:-translate-x-1/2 before:rounded-full before:bg-gradient-radial before:from-white before:to-transparent before:blur-2xl before:content-[''] after:absolute after:-z-20 after:h-[180px] after:w-full after:translate-x-1/3 after:bg-gradient-conic after:from-sky-200 after:via-blue-200 after:blur-2xl after:content-[''] before:dark:bg-gradient-to-br before:dark:from-transparent before:dark:to-blue-700 before:dark:opacity-10 after:dark:from-sky-900 after:dark:via-[#0141ff] after:dark:opacity-40 sm:before:w-[480px] sm:after:w-[240px] before:lg:h-[360px]">
  30. <Image
  31. className="relative dark:drop-shadow-[0_0_0.3rem_#ffffff70] dark:invert"
  32. src="/next.svg"
  33. alt="Next.js Logo"
  34. width={180}
  35. height={37}
  36. priority
  37. />
  38. </div>
  39. <div className="mb-32 grid text-center lg:mb-0 lg:w-full lg:max-w-5xl lg:grid-cols-4 lg:text-left">
  40. <a
  41. href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
  42. className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
  43. target="_blank"
  44. rel="noopener noreferrer"
  45. >
  46. <h2 className="mb-3 text-2xl font-semibold">
  47. Docs{" "}
  48. <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
  49. -&gt;
  50. </span>
  51. </h2>
  52. <p className="m-0 max-w-[30ch] text-sm opacity-50">
  53. Find in-depth information about Next.js features and API.
  54. </p>
  55. </a>
  56. <a
  57. href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template-tw&utm_campaign=create-next-app"
  58. className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
  59. target="_blank"
  60. rel="noopener noreferrer"
  61. >
  62. <h2 className="mb-3 text-2xl font-semibold">
  63. Learn{" "}
  64. <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
  65. -&gt;
  66. </span>
  67. </h2>
  68. <p className="m-0 max-w-[30ch] text-sm opacity-50">
  69. Learn about Next.js in an interactive course with&nbsp;quizzes!
  70. </p>
  71. </a>
  72. <a
  73. href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
  74. className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
  75. target="_blank"
  76. rel="noopener noreferrer"
  77. >
  78. <h2 className="mb-3 text-2xl font-semibold">
  79. Templates{" "}
  80. <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
  81. -&gt;
  82. </span>
  83. </h2>
  84. <p className="m-0 max-w-[30ch] text-sm opacity-50">
  85. Explore starter templates for Next.js.
  86. </p>
  87. </a>
  88. <a
  89. href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
  90. className="group rounded-lg border border-transparent px-5 py-4 transition-colors hover:border-gray-300 hover:bg-gray-100 hover:dark:border-neutral-700 hover:dark:bg-neutral-800/30"
  91. target="_blank"
  92. rel="noopener noreferrer"
  93. >
  94. <h2 className="mb-3 text-2xl font-semibold">
  95. Deploy{" "}
  96. <span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
  97. -&gt;
  98. </span>
  99. </h2>
  100. <p className="m-0 max-w-[30ch] text-balance text-sm opacity-50">
  101. Instantly deploy your Next.js site to a shareable URL with Vercel.
  102. </p>
  103. </a>
  104. </div>
  105. </main>
  106. );
  107. }