2019-06-03 03:31:38 +00:00
|
|
|
<template>
|
|
|
|
<header class="header">
|
2019-12-01 04:32:47 +00:00
|
|
|
<router-link
|
|
|
|
to="/"
|
2019-07-06 03:29:12 +00:00
|
|
|
class="logo-link"
|
2020-01-06 20:49:37 +00:00
|
|
|
><h1 class="logo"><Icon icon="logo" /></h1></router-link>
|
2019-11-30 04:55:32 +00:00
|
|
|
|
|
|
|
<nav class="nav">
|
|
|
|
<ul class="nolist">
|
|
|
|
<li class="nav-item">
|
2019-12-01 04:32:47 +00:00
|
|
|
<router-link
|
|
|
|
to="/actors"
|
2019-11-30 04:55:32 +00:00
|
|
|
class="nav-link"
|
2019-12-01 04:32:47 +00:00
|
|
|
:class="{ active: active === 'actors' }"
|
|
|
|
>
|
2019-12-04 20:58:08 +00:00
|
|
|
<Icon icon="stars" /><span class="nav-label">Actors</span>
|
2019-12-01 04:32:47 +00:00
|
|
|
</router-link>
|
2019-11-30 04:55:32 +00:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
2019-12-01 04:32:47 +00:00
|
|
|
<router-link
|
|
|
|
to="/networks"
|
2019-11-30 04:55:32 +00:00
|
|
|
class="nav-link"
|
2019-12-01 04:32:47 +00:00
|
|
|
:class="{ active: active === 'networks' }"
|
|
|
|
>
|
2019-12-04 20:58:08 +00:00
|
|
|
<Icon icon="earth2" /><span class="nav-label">Networks</span>
|
2019-12-01 04:32:47 +00:00
|
|
|
</router-link>
|
2019-11-30 04:55:32 +00:00
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
2019-12-01 04:32:47 +00:00
|
|
|
<router-link
|
|
|
|
to="/tags"
|
2019-11-30 04:55:32 +00:00
|
|
|
class="nav-link"
|
2019-12-01 04:32:47 +00:00
|
|
|
:class="{ active: active === 'tags' }"
|
|
|
|
>
|
2019-12-04 20:58:08 +00:00
|
|
|
<Icon icon="price-tags" /><span class="nav-label">Tags</span>
|
2019-12-01 04:32:47 +00:00
|
|
|
</router-link>
|
2019-11-30 04:55:32 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
2019-06-03 03:31:38 +00:00
|
|
|
</header>
|
|
|
|
</template>
|
|
|
|
|
2019-12-01 04:32:47 +00:00
|
|
|
<script>
|
|
|
|
function active() {
|
|
|
|
return this.$route.name;
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
computed: {
|
|
|
|
active,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
|
2019-06-03 03:31:38 +00:00
|
|
|
<style lang="scss" scoped>
|
|
|
|
@import 'theme';
|
|
|
|
|
|
|
|
.header {
|
2019-11-30 04:55:32 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2019-11-14 00:18:19 +00:00
|
|
|
background: $background;
|
|
|
|
color: $primary;
|
|
|
|
border-bottom: solid 1px $shadow-hint;
|
2019-11-30 04:55:32 +00:00
|
|
|
font-size: 0;
|
2019-06-03 03:31:38 +00:00
|
|
|
}
|
|
|
|
|
2019-07-06 03:29:12 +00:00
|
|
|
.logo-link {
|
|
|
|
color: inherit;
|
2019-11-30 04:55:32 +00:00
|
|
|
display: inline-block;
|
2019-07-06 03:29:12 +00:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
2019-06-03 03:31:38 +00:00
|
|
|
.logo {
|
2019-07-06 03:29:12 +00:00
|
|
|
display: inline-block;
|
2019-11-30 04:55:32 +00:00
|
|
|
padding: .5rem 1rem;
|
|
|
|
margin: 0 1rem 0 0;
|
|
|
|
font-size: 2rem;
|
2020-01-06 20:49:37 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
width: 6rem;
|
|
|
|
height: 1.5rem;
|
|
|
|
}
|
2019-11-30 04:55:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.nav {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link {
|
2019-12-04 20:58:08 +00:00
|
|
|
display: flex;
|
2019-12-01 04:32:47 +00:00
|
|
|
align-items: center;
|
2019-12-04 20:58:08 +00:00
|
|
|
justify-content: center;
|
2020-01-06 20:49:37 +00:00
|
|
|
padding: 1rem 1rem calc(1rem - 5px) 1rem;
|
2019-12-01 04:32:47 +00:00
|
|
|
border-bottom: solid 5px transparent;
|
|
|
|
color: $shadow;
|
2019-11-30 04:55:32 +00:00
|
|
|
text-decoration: none;
|
2019-12-01 04:32:47 +00:00
|
|
|
font-size: .9rem;
|
2019-11-30 04:55:32 +00:00
|
|
|
font-weight: bold;
|
|
|
|
|
2019-12-01 04:32:47 +00:00
|
|
|
.icon {
|
|
|
|
fill: $shadow;
|
|
|
|
margin: 0 .5rem 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
color: $primary;
|
|
|
|
border-bottom: solid 5px $primary;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: $primary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover:not(.active) {
|
2019-11-30 04:55:32 +00:00
|
|
|
color: $primary;
|
2019-12-01 04:32:47 +00:00
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: $primary;
|
|
|
|
}
|
2019-11-30 04:55:32 +00:00
|
|
|
}
|
2019-06-03 03:31:38 +00:00
|
|
|
}
|
2019-12-04 20:58:08 +00:00
|
|
|
|
|
|
|
@media(max-width: $breakpoint0) {
|
|
|
|
.nav-label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav .nolist {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav,
|
|
|
|
.nav-item {
|
|
|
|
flex-grow: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.nav-link {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2019-06-03 03:31:38 +00:00
|
|
|
</style>
|