Newer
Older
Eliot Berriot
committed
<template>
Eliot Berriot
committed
<div class="main library pusher">
<nav class="ui secondary pointing menu" role="navigation" :aria-label="labels.secondaryMenu">
<translate :translate-context="'Menu/Home/Link/Verb'">Browse</translate>
<router-link class="ui item" to="/library/albums" exact>
<translate :translate-context="'Menu/Home/Link'">Albums</translate>
<translate :translate-context="'Menu/Home/Link'">Artists</translate>
</router-link>
<router-link class="ui item" to="/library/radios" exact>
<translate :translate-context="'Menu/Home/Link'">Radios</translate>
</router-link>
<router-link class="ui item" to="/library/playlists" exact>
<translate :translate-context="'Menu/Home/Link'">Playlists</translate>
</nav>
<router-view :key="$route.fullPath"></router-view>
Eliot Berriot
committed
</div>
</template>
<script>
export default {
Eliot Berriot
committed
computed: {
showImports() {
return (
this.$store.state.auth.availablePermissions["upload"] ||
this.$store.state.auth.availablePermissions["library"]
)
},
labels() {
return {
secondaryMenu: this.$pgettext('Menu/*/Hidden text', "Secondary menu")
Eliot Berriot
committed
}
}
Eliot Berriot
committed
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss">
@import "../../style/vendor/media";
Eliot Berriot
committed
.library {
Eliot Berriot
committed
.ui.segment.head {
background-size: cover;
background-position: center;
padding: 0;
.segment-content {
margin: 0 auto;
padding: 2em;
@include media(">tablet") {
padding: 4em;
}
Eliot Berriot
committed
}
&.with-background {
.header {
&,
.sub {
Eliot Berriot
committed
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
color: white !important;
}
}
.segment-content {
background-color: rgba(0, 0, 0, 0.5);
Eliot Berriot
committed
}
}
}