diff options
author | Patryk Niedźwiedziński <pniedzwiedzinski19@gmail.com> | 2019-08-23 10:04:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-23 10:04:57 +0200 |
commit | 89837b8756590bd97b82450c6a445702f7ab5077 (patch) | |
tree | ca3d763976eab9d1541d68687e38c87bd11990ec /src/components/NavLink.vue | |
parent | a76e153bf1390237ab75969f40df3abfe6da0a75 (diff) | |
parent | 8dfa61884580a5966c0b48f5ce5dc16828f489c4 (diff) | |
download | puszcza-89837b8756590bd97b82450c6a445702f7ab5077.tar.gz puszcza-89837b8756590bd97b82450c6a445702f7ab5077.zip |
Merge pull request #1 from pniedzwiedzinski/develop
Add navigation and files
Diffstat (limited to 'src/components/NavLink.vue')
-rw-r--r-- | src/components/NavLink.vue | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/components/NavLink.vue b/src/components/NavLink.vue new file mode 100644 index 0000000..8915585 --- /dev/null +++ b/src/components/NavLink.vue @@ -0,0 +1,53 @@ +<template> + <li class="navlink"> + <a v-if="external" class="link" target="_blank" rel="”noopener”" :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> +@import url("https://fonts.googleapis.com/css?family=Roboto+Slab&display=swap"); + +.link { + font-family: "Roboto Slab", serif; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + + text-decoration: none; + color: #181818; + + padding: 10px; + + border-radius: 5px; +} + +.link:hover { + background-color: #cfcfcf; +} + +.navlink { + list-style-type: none; + + margin: 10px; +} + +.router-link-exact-active { + background-color: #ececec !important; +} + +@media (max-width: 1300px) { + .navlink { + margin: 0; + } +} +</style> \ No newline at end of file |