page.tsx 5.7 KB

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