HelloWorld.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <script setup>
  2. import { ref } from 'vue'
  3. import viteLogo from '../assets/vite.svg'
  4. import heroImg from '../assets/hero.png'
  5. import vueLogo from '../assets/vue.svg'
  6. const count = ref(0)
  7. </script>
  8. <template>
  9. <section id="center">
  10. <div class="hero">
  11. <img :src="heroImg" class="base" width="170" height="179" alt="" />
  12. <img :src="vueLogo" class="framework" alt="Vue logo" />
  13. <img :src="viteLogo" class="vite" alt="Vite logo" />
  14. </div>
  15. <div>
  16. <h1>Get started</h1>
  17. <p>Edit <code>src/App.vue</code> and save to test <code>HMR</code></p>
  18. </div>
  19. <button class="counter" @click="count++">Count is {{ count }}</button>
  20. </section>
  21. <div class="ticks"></div>
  22. <section id="next-steps">
  23. <div id="docs">
  24. <svg class="icon" role="presentation" aria-hidden="true">
  25. <use href="/icons.svg#documentation-icon"></use>
  26. </svg>
  27. <h2>Documentation</h2>
  28. <p>Your questions, answered</p>
  29. <ul>
  30. <li>
  31. <a href="https://vite.dev/" target="_blank">
  32. <img class="logo" :src="viteLogo" alt="" />
  33. Explore Vite
  34. </a>
  35. </li>
  36. <li>
  37. <a href="https://vuejs.org/" target="_blank">
  38. <img class="button-icon" :src="vueLogo" alt="" />
  39. Learn more
  40. </a>
  41. </li>
  42. </ul>
  43. </div>
  44. <div id="social">
  45. <svg class="icon" role="presentation" aria-hidden="true">
  46. <use href="/icons.svg#social-icon"></use>
  47. </svg>
  48. <h2>Connect with us</h2>
  49. <p>Join the Vite community</p>
  50. <ul>
  51. <li>
  52. <a href="https://github.com/vitejs/vite" target="_blank">
  53. <svg class="button-icon" role="presentation" aria-hidden="true">
  54. <use href="/icons.svg#github-icon"></use>
  55. </svg>
  56. GitHub
  57. </a>
  58. </li>
  59. <li>
  60. <a href="https://chat.vite.dev/" target="_blank">
  61. <svg class="button-icon" role="presentation" aria-hidden="true">
  62. <use href="/icons.svg#discord-icon"></use>
  63. </svg>
  64. Discord
  65. </a>
  66. </li>
  67. <li>
  68. <a href="https://x.com/vite_js" target="_blank">
  69. <svg class="button-icon" role="presentation" aria-hidden="true">
  70. <use href="/icons.svg#x-icon"></use>
  71. </svg>
  72. X.com
  73. </a>
  74. </li>
  75. <li>
  76. <a href="https://bsky.app/profile/vite.dev" target="_blank">
  77. <svg class="button-icon" role="presentation" aria-hidden="true">
  78. <use href="/icons.svg#bluesky-icon"></use>
  79. </svg>
  80. Bluesky
  81. </a>
  82. </li>
  83. </ul>
  84. </div>
  85. </section>
  86. <div class="ticks"></div>
  87. <section id="spacer"></section>
  88. </template>