2019-06-03 03:31:38 +00:00
|
|
|
<template>
|
|
|
|
<header class="header">
|
2020-02-26 00:15:50 +00:00
|
|
|
<div>
|
|
|
|
<router-link
|
|
|
|
to="/home"
|
|
|
|
class="logo-link"
|
|
|
|
><h1 class="logo"><Icon icon="logo" /></h1></router-link>
|
|
|
|
|
|
|
|
<nav class="nav">
|
|
|
|
<ul class="nolist">
|
|
|
|
<li class="nav-item">
|
|
|
|
<router-link
|
|
|
|
v-slot="{ href, isActive, navigate }"
|
|
|
|
to="/actors"
|
2020-02-10 01:05:28 +00:00
|
|
|
>
|
2020-02-26 00:15:50 +00:00
|
|
|
<a
|
|
|
|
class="nav-link"
|
|
|
|
:href="href"
|
|
|
|
:class="{ active: isActive }"
|
|
|
|
@click="navigate"
|
|
|
|
>
|
|
|
|
<Icon icon="stars" /><span class="nav-label">Actors</span>
|
|
|
|
</a>
|
|
|
|
</router-link>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<router-link
|
|
|
|
v-slot="{ href, isActive, navigate }"
|
|
|
|
to="/networks"
|
2020-02-10 01:05:28 +00:00
|
|
|
>
|
2020-02-26 00:15:50 +00:00
|
|
|
<a
|
|
|
|
class="nav-link"
|
|
|
|
:href="href"
|
|
|
|
:class="{ active: isActive }"
|
|
|
|
@click="navigate"
|
|
|
|
>
|
|
|
|
<Icon icon="earth2" /><span class="nav-label">Networks</span>
|
|
|
|
</a>
|
|
|
|
</router-link>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li class="nav-item">
|
|
|
|
<router-link
|
|
|
|
v-slot="{ href, isActive, navigate }"
|
|
|
|
to="/tags"
|
2020-02-10 01:05:28 +00:00
|
|
|
>
|
2020-02-26 00:15:50 +00:00
|
|
|
<a
|
|
|
|
class="nav-link"
|
|
|
|
:href="href"
|
|
|
|
:class="{ active: isActive }"
|
|
|
|
@click="navigate"
|
|
|
|
>
|
|
|
|
<Icon icon="price-tags" /><span class="nav-label">Tags</span>
|
|
|
|
</a>
|
|
|
|
</router-link>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
|
2020-02-26 03:07:35 +00:00
|
|
|
<Search class="search-full" />
|
|
|
|
|
|
|
|
<v-popover class="search-compact">
|
2020-02-26 00:15:50 +00:00
|
|
|
<button
|
2020-02-26 03:07:35 +00:00
|
|
|
type="button"
|
2020-02-26 00:15:50 +00:00
|
|
|
class="search-button"
|
|
|
|
><Icon
|
|
|
|
icon="search"
|
|
|
|
/></button>
|
2020-02-26 03:07:35 +00:00
|
|
|
|
|
|
|
<Search
|
|
|
|
slot="popover"
|
|
|
|
class="compact"
|
|
|
|
/>
|
|
|
|
</v-popover>
|
2019-06-03 03:31:38 +00:00
|
|
|
</header>
|
|
|
|
</template>
|
|
|
|
|
2020-02-26 00:15:50 +00:00
|
|
|
<script>
|
2020-02-26 03:07:35 +00:00
|
|
|
import Search from './search.vue';
|
2020-02-26 00:15:50 +00:00
|
|
|
|
|
|
|
export default {
|
2020-02-26 03:07:35 +00:00
|
|
|
components: {
|
|
|
|
Search,
|
|
|
|
},
|
2020-02-26 00:15:50 +00:00
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
query: this.$route.query ? this.$route.query.q : null,
|
|
|
|
};
|
|
|
|
},
|
|
|
|
};
|
|
|
|
</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;
|
2020-02-26 00:15:50 +00:00
|
|
|
justify-content: space-between;
|
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;
|
2020-02-10 01:05:28 +00:00
|
|
|
cursor: pointer;
|
2019-11-30 04:55:32 +00:00
|
|
|
|
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
|
|
|
|
2020-02-26 03:07:35 +00:00
|
|
|
.search-button {
|
2020-02-26 00:15:50 +00:00
|
|
|
height: 100%;
|
2020-02-26 03:07:35 +00:00
|
|
|
padding: 0 1rem;
|
|
|
|
background: none;
|
2020-02-26 00:15:50 +00:00
|
|
|
border: none;
|
|
|
|
outline: none;
|
2020-02-26 03:07:35 +00:00
|
|
|
margin: .2rem 0 0 0;
|
2020-02-26 00:15:50 +00:00
|
|
|
|
2020-02-26 03:07:35 +00:00
|
|
|
.icon {
|
|
|
|
fill: $shadow;
|
2020-02-26 00:15:50 +00:00
|
|
|
}
|
|
|
|
|
2020-02-26 03:07:35 +00:00
|
|
|
&:focus .icon {
|
|
|
|
fill: $primary;
|
2020-02-26 00:15:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-26 03:07:35 +00:00
|
|
|
.search-compact {
|
|
|
|
display: none;
|
|
|
|
}
|
2020-02-26 00:15:50 +00:00
|
|
|
|
2020-02-26 03:07:35 +00:00
|
|
|
@media(max-width: $breakpoint2) {
|
|
|
|
.search-full {
|
|
|
|
display: none;
|
2020-02-26 00:15:50 +00:00
|
|
|
}
|
|
|
|
|
2020-02-26 03:07:35 +00:00
|
|
|
.search-compact {
|
|
|
|
display: flex;
|
2020-02-26 00:15:50 +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;
|
|
|
|
}
|
|
|
|
}
|
2019-06-03 03:31:38 +00:00
|
|
|
</style>
|