易云官网
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

210 行
4.9 KiB

  1. import Head from 'next/head'
  2. export default function Home() {
  3. return (
  4. <div className="container">
  5. <Head>
  6. <title>Create Next App</title>
  7. <link rel="icon" href="/favicon.ico" />
  8. </Head>
  9. <main>
  10. <h1 className="title">
  11. Welcome to <a href="https://nextjs.org">Next.js!</a>
  12. </h1>
  13. <p className="description">
  14. Get started by editing <code>pages/index.js</code>
  15. </p>
  16. <div className="grid">
  17. <a href="https://nextjs.org/docs" className="card">
  18. <h3>Documentation &rarr;</h3>
  19. <p>Find in-depth information about Next.js features and API.</p>
  20. </a>
  21. <a href="https://nextjs.org/learn" className="card">
  22. <h3>Learn &rarr;</h3>
  23. <p>Learn about Next.js in an interactive course with quizzes!</p>
  24. </a>
  25. <a
  26. href="https://github.com/vercel/next.js/tree/master/examples"
  27. className="card"
  28. >
  29. <h3>Examples &rarr;</h3>
  30. <p>Discover and deploy boilerplate example Next.js projects.</p>
  31. </a>
  32. <a
  33. href="https://vercel.com/import?filter=next.js&utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
  34. className="card"
  35. >
  36. <h3>Deploy &rarr;</h3>
  37. <p>
  38. Instantly deploy your Next.js site to a public URL with Vercel.
  39. </p>
  40. </a>
  41. </div>
  42. </main>
  43. <footer>
  44. <a
  45. href="https://vercel.com?utm_source=create-next-app&utm_medium=default-template&utm_campaign=create-next-app"
  46. target="_blank"
  47. rel="noopener noreferrer"
  48. >
  49. Powered by{' '}
  50. <img src="/vercel.svg" alt="Vercel" className="logo" />
  51. </a>
  52. </footer>
  53. <style jsx>{`
  54. .container {
  55. min-height: 100vh;
  56. padding: 0 0.5rem;
  57. display: flex;
  58. flex-direction: column;
  59. justify-content: center;
  60. align-items: center;
  61. }
  62. main {
  63. padding: 5rem 0;
  64. flex: 1;
  65. display: flex;
  66. flex-direction: column;
  67. justify-content: center;
  68. align-items: center;
  69. }
  70. footer {
  71. width: 100%;
  72. height: 100px;
  73. border-top: 1px solid #eaeaea;
  74. display: flex;
  75. justify-content: center;
  76. align-items: center;
  77. }
  78. footer img {
  79. margin-left: 0.5rem;
  80. }
  81. footer a {
  82. display: flex;
  83. justify-content: center;
  84. align-items: center;
  85. }
  86. a {
  87. color: inherit;
  88. text-decoration: none;
  89. }
  90. .title a {
  91. color: #0070f3;
  92. text-decoration: none;
  93. }
  94. .title a:hover,
  95. .title a:focus,
  96. .title a:active {
  97. text-decoration: underline;
  98. }
  99. .title {
  100. margin: 0;
  101. line-height: 1.15;
  102. font-size: 4rem;
  103. }
  104. .title,
  105. .description {
  106. text-align: center;
  107. }
  108. .description {
  109. line-height: 1.5;
  110. font-size: 1.5rem;
  111. }
  112. code {
  113. background: #fafafa;
  114. border-radius: 5px;
  115. padding: 0.75rem;
  116. font-size: 1.1rem;
  117. font-family: Menlo, Monaco, Lucida Console, Liberation Mono,
  118. DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace;
  119. }
  120. .grid {
  121. display: flex;
  122. align-items: center;
  123. justify-content: center;
  124. flex-wrap: wrap;
  125. max-width: 800px;
  126. margin-top: 3rem;
  127. }
  128. .card {
  129. margin: 1rem;
  130. flex-basis: 45%;
  131. padding: 1.5rem;
  132. text-align: left;
  133. color: inherit;
  134. text-decoration: none;
  135. border: 1px solid #eaeaea;
  136. border-radius: 10px;
  137. transition: color 0.15s ease, border-color 0.15s ease;
  138. }
  139. .card:hover,
  140. .card:focus,
  141. .card:active {
  142. color: #0070f3;
  143. border-color: #0070f3;
  144. }
  145. .card h3 {
  146. margin: 0 0 1rem 0;
  147. font-size: 1.5rem;
  148. }
  149. .card p {
  150. margin: 0;
  151. font-size: 1.25rem;
  152. line-height: 1.5;
  153. }
  154. .logo {
  155. height: 1em;
  156. }
  157. @media (max-width: 600px) {
  158. .grid {
  159. width: 100%;
  160. flex-direction: column;
  161. }
  162. }
  163. `}</style>
  164. <style jsx global>{`
  165. html,
  166. body {
  167. padding: 0;
  168. margin: 0;
  169. font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
  170. Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue,
  171. sans-serif;
  172. }
  173. * {
  174. box-sizing: border-box;
  175. }
  176. `}</style>
  177. </div>
  178. )
  179. }