HelloWorld.vue 667 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <script setup lang="ts">
  2. defineProps<{
  3. msg: string
  4. }>()
  5. </script>
  6. <template>
  7. <div class="greetings">
  8. <h1 class="green">{{ msg }}</h1>
  9. <h3>
  10. You’ve successfully created a project with
  11. <a href="https://vitejs.dev/" target="_blank" rel="noopener">Vite</a> +
  12. <a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>. What's next?
  13. </h3>
  14. </div>
  15. </template>
  16. <style scoped>
  17. h1 {
  18. font-weight: 500;
  19. font-size: 2.6rem;
  20. top: -10px;
  21. }
  22. h3 {
  23. font-size: 1.2rem;
  24. }
  25. .greetings h1,
  26. .greetings h3 {
  27. text-align: center;
  28. }
  29. @media (min-width: 1024px) {
  30. .greetings h1,
  31. .greetings h3 {
  32. text-align: left;
  33. }
  34. }
  35. </style>