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.
 
 
 
 

34 lines
795 B

  1. <template>
  2. <ul>
  3. <li v-for="item in items">
  4. <a :href="item.href" :target="item.href.startsWith('#') ? '_self' : '_blank'">{{item.title}}</a>
  5. </li>
  6. </ul>
  7. </template>
  8. <script setup>
  9. const props = defineProps(['items'])
  10. </script>
  11. <style lang="scss" scoped>
  12. ul {
  13. width: 80vw;
  14. font-size: 2rem;
  15. text-transform: uppercase;
  16. display: flex;
  17. margin: auto;
  18. justify-content: space-between;
  19. li {
  20. display: inline;
  21. a {
  22. text-decoration: none;
  23. color: black;
  24. font-weight: bold;
  25. &:hover {
  26. background-color: black;
  27. color : white;
  28. }
  29. }
  30. }
  31. }
  32. </style>