forked from DebaucheryLibrarian/traxxx
Added rudimentary tags page. Improved social match behavior.
This commit is contained in:
@@ -1,43 +1,58 @@
|
||||
<template>
|
||||
<header class="header">
|
||||
<a
|
||||
href="/"
|
||||
<router-link
|
||||
to="/"
|
||||
class="logo-link"
|
||||
><h1 class="logo">traxxx</h1></a>
|
||||
><h1 class="logo">traxxx</h1></router-link>
|
||||
|
||||
<nav class="nav">
|
||||
<ul class="nolist">
|
||||
<li class="nav-item">
|
||||
<Icon icon="stars" />
|
||||
|
||||
<a
|
||||
href="/actors"
|
||||
<router-link
|
||||
to="/actors"
|
||||
class="nav-link"
|
||||
>Actors</a>
|
||||
:class="{ active: active === 'actors' }"
|
||||
>
|
||||
<Icon icon="stars" />Actors
|
||||
</router-link>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<Icon icon="earth2" />
|
||||
|
||||
<a
|
||||
href="/networks"
|
||||
<router-link
|
||||
to="/networks"
|
||||
class="nav-link"
|
||||
>Networks</a>
|
||||
:class="{ active: active === 'networks' }"
|
||||
>
|
||||
<Icon icon="earth2" />Networks
|
||||
</router-link>
|
||||
</li>
|
||||
|
||||
<li class="nav-item">
|
||||
<Icon icon="price-tags" />
|
||||
|
||||
<a
|
||||
href="/tags"
|
||||
<router-link
|
||||
to="/tags"
|
||||
class="nav-link"
|
||||
>Categories</a>
|
||||
:class="{ active: active === 'tags' }"
|
||||
>
|
||||
<Icon icon="price-tags" />Tags
|
||||
</router-link>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
function active() {
|
||||
return this.$route.name;
|
||||
}
|
||||
|
||||
export default {
|
||||
computed: {
|
||||
active,
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import 'theme';
|
||||
|
||||
@@ -68,15 +83,35 @@
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
display: inline-block;
|
||||
color: $shadow;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
padding: 1rem;
|
||||
border-bottom: solid 5px transparent;
|
||||
color: $shadow;
|
||||
text-decoration: none;
|
||||
font-size: 1rem;
|
||||
font-size: .9rem;
|
||||
font-weight: bold;
|
||||
|
||||
&:hover {
|
||||
.icon {
|
||||
fill: $shadow;
|
||||
margin: 0 .5rem 0 0;
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: $primary;
|
||||
border-bottom: solid 5px $primary;
|
||||
|
||||
.icon {
|
||||
fill: $primary;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover:not(.active) {
|
||||
color: $primary;
|
||||
|
||||
.icon {
|
||||
fill: $primary;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user