about summary refs log tree commit diff
path: root/src/components/NavLink.vue
blob: 5dbf6090a6d826fdf6ecb81e2125e9b55c45b031 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<template>
  <li class="navlink">
    <a v-if="external" class="link" target="_blank" :href="link">{{name}}</a>
    <router-link v-else class="link" :to="link">{{ name }}</router-link>
  </li>
</template>

<script>
export default {
  props: {
    link: String,
    name: String,
    external: { type: Boolean, default: false }
  }
};
</script>

<style scoped>
.link {
  text-decoration: none;
  color: #181818;
}

.navlink {
  list-style-type: none;

  padding: 10px;
  margin: 10px;
}

@media (max-width: 1300px) {
  .navlink {
    margin: 0;
  }
}
</style>