page.tsx 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. import Image from "next/image";
  2. import { Button } from "@repo/ui/button";
  3. import styles from "./page.module.css";
  4. export default function Home() {
  5. return (
  6. <div className={styles.page}>
  7. <main className={styles.main}>
  8. <Image
  9. className={styles.logo}
  10. src="/next.svg"
  11. alt="Next.js logo"
  12. width={180}
  13. height={38}
  14. priority
  15. />
  16. <ol>
  17. <li>
  18. Get started by editing <code>app/page.tsx</code>
  19. </li>
  20. <li>Save and see your changes instantly.</li>
  21. </ol>
  22. <div className={styles.ctas}>
  23. <a
  24. className={styles.primary}
  25. href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
  26. target="_blank"
  27. rel="noopener noreferrer"
  28. >
  29. <Image
  30. className={styles.logo}
  31. src="/vercel.svg"
  32. alt="Vercel logomark"
  33. width={20}
  34. height={20}
  35. />
  36. Deploy now
  37. </a>
  38. <a
  39. href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
  40. target="_blank"
  41. rel="noopener noreferrer"
  42. className={styles.secondary}
  43. >
  44. Read our docs
  45. </a>
  46. </div>
  47. <Button appName="docs" className={styles.secondary}>
  48. Open alert
  49. </Button>
  50. </main>
  51. <footer className={styles.footer}>
  52. <a
  53. href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
  54. target="_blank"
  55. rel="noopener noreferrer"
  56. >
  57. <Image
  58. aria-hidden
  59. src="/file-text.svg"
  60. alt="File icon"
  61. width={16}
  62. height={16}
  63. />
  64. Learn
  65. </a>
  66. <a
  67. href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
  68. target="_blank"
  69. rel="noopener noreferrer"
  70. >
  71. <Image
  72. aria-hidden
  73. src="/window.svg"
  74. alt="Window icon"
  75. width={16}
  76. height={16}
  77. />
  78. Examples
  79. </a>
  80. <a
  81. href="https://nextjs.org?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
  82. target="_blank"
  83. rel="noopener noreferrer"
  84. >
  85. <Image
  86. aria-hidden
  87. src="/globe.svg"
  88. alt="Globe icon"
  89. width={16}
  90. height={16}
  91. />
  92. Go to nextjs.org →
  93. </a>
  94. </footer>
  95. </div>
  96. );
  97. }