<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>