You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123 lines
3.6KB

  1. import { useState } from 'react'
  2. import reactLogo from './assets/react.svg'
  3. import viteLogo from './assets/vite.svg'
  4. import heroImg from './assets/hero.png'
  5. import './App.css'
  6. function App() {
  7. const [count, setCount] = useState(0)
  8. return (
  9. <>
  10. <section id="center">
  11. <div className="hero">
  12. <img src={heroImg} className="base" width="170" height="179" alt="" />
  13. <img src={reactLogo} className="framework" alt="React logo" />
  14. <img src={viteLogo} className="vite" alt="Vite logo" />
  15. </div>
  16. <div>
  17. <h1>Get started</h1>
  18. <p>
  19. Edit <code>src/App.tsx</code> and save to test <code>HMR</code>
  20. </p>
  21. </div>
  22. <button
  23. type="button"
  24. className="counter"
  25. onClick={() => setCount((count) => count + 1)}
  26. >
  27. Count is {count}
  28. </button>
  29. </section>
  30. <div className="ticks"></div>
  31. <section id="next-steps">
  32. <div id="docs">
  33. <svg className="icon" role="presentation" aria-hidden="true">
  34. <use href="/icons.svg#documentation-icon"></use>
  35. </svg>
  36. <h2>Documentation</h2>
  37. <p>Your questions, answered</p>
  38. <ul>
  39. <li>
  40. <a href="https://vite.dev/" target="_blank">
  41. <img className="logo" src={viteLogo} alt="" />
  42. Explore Vite
  43. </a>
  44. </li>
  45. <li>
  46. <a href="https://react.dev/" target="_blank">
  47. <img className="button-icon" src={reactLogo} alt="" />
  48. Learn more
  49. </a>
  50. </li>
  51. </ul>
  52. </div>
  53. <div id="social">
  54. <svg className="icon" role="presentation" aria-hidden="true">
  55. <use href="/icons.svg#social-icon"></use>
  56. </svg>
  57. <h2>Connect with us</h2>
  58. <p>Join the Vite community</p>
  59. <ul>
  60. <li>
  61. <a href="https://github.com/vitejs/vite" target="_blank">
  62. <svg
  63. className="button-icon"
  64. role="presentation"
  65. aria-hidden="true"
  66. >
  67. <use href="/icons.svg#github-icon"></use>
  68. </svg>
  69. GitHub
  70. </a>
  71. </li>
  72. <li>
  73. <a href="https://chat.vite.dev/" target="_blank">
  74. <svg
  75. className="button-icon"
  76. role="presentation"
  77. aria-hidden="true"
  78. >
  79. <use href="/icons.svg#discord-icon"></use>
  80. </svg>
  81. Discord
  82. </a>
  83. </li>
  84. <li>
  85. <a href="https://x.com/vite_js" target="_blank">
  86. <svg
  87. className="button-icon"
  88. role="presentation"
  89. aria-hidden="true"
  90. >
  91. <use href="/icons.svg#x-icon"></use>
  92. </svg>
  93. X.com
  94. </a>
  95. </li>
  96. <li>
  97. <a href="https://bsky.app/profile/vite.dev" target="_blank">
  98. <svg
  99. className="button-icon"
  100. role="presentation"
  101. aria-hidden="true"
  102. >
  103. <use href="/icons.svg#bluesky-icon"></use>
  104. </svg>
  105. Bluesky
  106. </a>
  107. </li>
  108. </ul>
  109. </div>
  110. </section>
  111. <div className="ticks"></div>
  112. <section id="spacer"></section>
  113. </>
  114. )
  115. }
  116. export default App

Powered by TurnKey Linux.