练习仓库
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.

44 lines
700 B

1 month ago
  1. <script setup>
  2. defineProps({
  3. msg: {
  4. type: String,
  5. required: true,
  6. },
  7. })
  8. </script>
  9. <template>
  10. <div class="greetings">
  11. <h1 class="green">{{ msg }}</h1>
  12. <h3>
  13. Youve successfully created a project with
  14. <a href="https://vite.dev/" target="_blank" rel="noopener">Vite</a> +
  15. <a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>.
  16. </h3>
  17. </div>
  18. </template>
  19. <style scoped>
  20. h1 {
  21. font-weight: 500;
  22. font-size: 2.6rem;
  23. position: relative;
  24. top: -10px;
  25. }
  26. h3 {
  27. font-size: 1.2rem;
  28. }
  29. .greetings h1,
  30. .greetings h3 {
  31. text-align: center;
  32. }
  33. @media (min-width: 1024px) {
  34. .greetings h1,
  35. .greetings h3 {
  36. text-align: left;
  37. }
  38. }
  39. </style>