2024-06-07 02:10:04 +00:00
|
|
|
<template>
|
|
|
|
<nav class="domains">
|
|
|
|
<Link
|
2024-08-22 04:23:41 +00:00
|
|
|
v-if="domains.includes('scenes')"
|
|
|
|
:href="`${path}/scenes`"
|
2024-06-07 02:10:04 +00:00
|
|
|
class="domain domain-scenes nolink"
|
|
|
|
:active="domain === 'scenes'"
|
|
|
|
>
|
|
|
|
<Icon icon="clapboard-play" />
|
|
|
|
<span class="domain-label">Scenes</span>
|
|
|
|
</Link>
|
|
|
|
|
|
|
|
<Link
|
2024-08-22 04:23:41 +00:00
|
|
|
v-if="domains.includes('actors')"
|
|
|
|
:href="`${path}/actors`"
|
2024-06-07 02:10:04 +00:00
|
|
|
class="domain domain-actors nolink"
|
|
|
|
:active="domain === 'actors'"
|
|
|
|
>
|
|
|
|
<Icon icon="star" />
|
|
|
|
<span class="domain-label">Actors</span>
|
|
|
|
</Link>
|
|
|
|
|
|
|
|
<Link
|
2024-08-22 04:23:41 +00:00
|
|
|
v-if="domains.includes('movies')"
|
|
|
|
:href="`${path}/movies`"
|
2024-06-07 02:10:04 +00:00
|
|
|
class="domain domain-movies nolink"
|
|
|
|
:active="domain === 'movies'"
|
|
|
|
>
|
|
|
|
<Icon icon="movie" />
|
|
|
|
<span class="domain-label">Movies</span>
|
|
|
|
</Link>
|
|
|
|
</nav>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2024-08-22 04:23:41 +00:00
|
|
|
defineProps({
|
2024-06-07 02:10:04 +00:00
|
|
|
stash: {
|
|
|
|
type: Object,
|
|
|
|
default: null,
|
|
|
|
},
|
2024-08-22 04:23:41 +00:00
|
|
|
path: {
|
|
|
|
type: String,
|
|
|
|
default: '',
|
|
|
|
},
|
|
|
|
domains: {
|
|
|
|
type: Array,
|
|
|
|
default: () => ['scenes', 'actors', 'movies'],
|
|
|
|
},
|
2024-06-07 02:10:04 +00:00
|
|
|
domain: {
|
|
|
|
type: String,
|
|
|
|
default: 'scenes',
|
|
|
|
},
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.domains {
|
|
|
|
display: flex;
|
|
|
|
justify-content: center;
|
|
|
|
gap: .5rem;
|
|
|
|
padding: 0 1rem;
|
2024-08-22 04:23:41 +00:00
|
|
|
|
|
|
|
&.light .domain,
|
|
|
|
&.light .domain {
|
|
|
|
color: var(--glass-strong-10);
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--glass-strong-10);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active,
|
|
|
|
&:hover {
|
|
|
|
color: var(--primary);
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--primary);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-06-07 02:10:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.domain {
|
|
|
|
height: 100%;
|
2024-08-22 04:23:41 +00:00
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-06-07 02:10:04 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
padding: .75rem 1rem;
|
|
|
|
color: var(--highlight-strong-10);
|
|
|
|
font-size: .9rem;
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
display: none;
|
|
|
|
height: 1rem;
|
|
|
|
fill: var(--highlight-strong-10);
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active,
|
|
|
|
&:hover {
|
|
|
|
color: var(--text-light);
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
fill: var(--text-light);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.domain-actors .icon {
|
|
|
|
transform: translateY(1px);
|
|
|
|
}
|
|
|
|
|
2024-08-22 04:23:41 +00:00
|
|
|
.domains-bar:not(.light) {
|
2024-06-07 02:10:04 +00:00
|
|
|
background: var(--grey-dark-50);
|
|
|
|
box-shadow: inset 0 0 3px var(--shadow);
|
|
|
|
}
|
|
|
|
|
|
|
|
@media(--small-60) {
|
|
|
|
.domains-bar {
|
|
|
|
.domain {
|
|
|
|
font-size: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.domain .icon {
|
|
|
|
display: inline-flex;
|
|
|
|
}
|
|
|
|
|
|
|
|
.domain-label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|