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.
|
- <template>
- <ul>
- <li v-for="item in items">
- <a :href="item.href" :target="item.href.startsWith('#') ? '_self' : '_blank'">{{item.title}}</a>
- </li>
- </ul>
- </template>
-
- <script setup>
- const props = defineProps(['items'])
- </script>
-
- <style lang="scss" scoped>
- ul {
- width: 80vw;
- font-size: 2rem;
- text-transform: uppercase;
- display: flex;
- margin: auto;
- justify-content: space-between;
- li {
- display: inline;
- a {
- text-decoration: none;
- color: black;
- font-weight: bold;
- &:hover {
- background-color: black;
- color : white;
- }
- }
- }
- }
- </style>
|