index.js 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. import React from 'react'
  2. import Head from 'next/head'
  3. import Nav from '../components/nav'
  4. const Home = () => (
  5. <div>
  6. <Head>
  7. <title>Home</title>
  8. <link rel="icon" href="/favicon.ico" />
  9. </Head>
  10. <Nav />
  11. <div className="hero">
  12. <h1 className="title">Welcome to Next.js!</h1>
  13. <p className="description">
  14. To get started, edit <code>pages/index.js</code> and save to reload.
  15. </p>
  16. <div className="row">
  17. <a href="https://nextjs.org/docs" className="card">
  18. <h3>Documentation &rarr;</h3>
  19. <p>Learn more about Next.js in the documentation.</p>
  20. </a>
  21. <a href="https://nextjs.org/learn" className="card">
  22. <h3>Next.js Learn &rarr;</h3>
  23. <p>Learn about Next.js by following an interactive tutorial!</p>
  24. </a>
  25. <a
  26. href="https://github.com/zeit/next.js/tree/master/examples"
  27. className="card"
  28. >
  29. <h3>Examples &rarr;</h3>
  30. <p>Find other example boilerplates on the Next.js GitHub.</p>
  31. </a>
  32. </div>
  33. </div>
  34. <style jsx>{`
  35. .hero {
  36. width: 100%;
  37. color: #333;
  38. }
  39. .title {
  40. margin: 0;
  41. width: 100%;
  42. padding-top: 80px;
  43. line-height: 1.15;
  44. font-size: 48px;
  45. }
  46. .title,
  47. .description {
  48. text-align: center;
  49. }
  50. .row {
  51. max-width: 880px;
  52. margin: 80px auto 40px;
  53. display: flex;
  54. flex-direction: row;
  55. justify-content: space-around;
  56. }
  57. .card {
  58. padding: 18px 18px 24px;
  59. width: 220px;
  60. text-align: left;
  61. text-decoration: none;
  62. color: #434343;
  63. border: 1px solid #9b9b9b;
  64. }
  65. .card:hover {
  66. border-color: #067df7;
  67. }
  68. .card h3 {
  69. margin: 0;
  70. color: #067df7;
  71. font-size: 18px;
  72. }
  73. .card p {
  74. margin: 0;
  75. padding: 12px 0 0;
  76. font-size: 13px;
  77. color: #333;
  78. }
  79. `}</style>
  80. </div>
  81. )
  82. export default Home