Commit 62b87280 authored by SpinShare's avatar SpinShare

added new tabs, fixed localsong click

parent 4db01cd8
{ {
"name": "spinshare-client", "name": "spinshare-client",
"version": "2.3.2", "version": "2.4.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
......
<template> <template>
<div :class="'song-item-local ' + (isSpinShare ? '' : 'song-item-onlylocal')" v-on:contextmenu="showContextMenu($event)" v-on:click="openOnSpinShare()"> <div :class="'song-item-local ' + (isSpinShare ? '' : 'song-item-onlylocal')" v-on:contextmenu="showContextMenu($event)" v-on:click="openInClient()">
<div class="song-cover" v-bind:style="'background-image: '+ backgroundImage +' , url(' + require('@/assets/img/defaultAlbumArt.jpg') + ');'" v-observe-visibility="visibilityChanged"> <div class="song-cover" v-bind:style="'background-image: '+ backgroundImage +' , url(' + require('@/assets/img/defaultAlbumArt.jpg') + ');'" v-observe-visibility="visibilityChanged">
<div class="song-charter-info"> <div class="song-charter-info">
<div class="song-charter"><i class="mdi mdi-account-circle"></i><span>{{ detail.charter ? detail.charter : "Unknown" }}</span></div> <div class="song-charter"><i class="mdi mdi-account-circle"></i><span>{{ detail.charter ? detail.charter : "Unknown" }}</span></div>
......
<template> <template>
<section class="section-startup"> <section class="section-startup">
<header>
<div class="tabs"> <div class="tabs">
<router-link to="/"><span>{{ $t('startup.tabs.frontpage') }}</span></router-link> <router-link to="/" class="tab"><span>{{ $t('startup.tabs.frontpage') }}</span></router-link>
<router-link to="/new"><span>{{ $t('startup.tabs.new') }}</span></router-link> <router-link to="/new" class="tab"><span>{{ $t('startup.tabs.new') }}</span></router-link>
<router-link to="/hot"><span>{{ $t('startup.tabs.hot') }}</span></router-link> <router-link to="/hot" class="tab"><span>{{ $t('startup.tabs.hot') }}</span></router-link>
<router-link to="/popular"><span>{{ $t('startup.tabs.popular') }}</span></router-link> <router-link to="/popular" class="tab"><span>{{ $t('startup.tabs.popular') }}</span></router-link>
</div> </div>
</header>
<router-view></router-view> <router-view></router-view>
</section> </section>
...@@ -21,54 +23,36 @@ ...@@ -21,54 +23,36 @@
<style scoped lang="less"> <style scoped lang="less">
section { section {
padding: 50px; & header {
background: rgba(0,0,0,0.5);
padding: 25px 50px;
padding-bottom: 0px;
& .tabs { & .tabs {
display: flex; display: flex;
justify-content: center;
margin-bottom: 25px;
& a { & .tab {
color: inherit; font-size: 14px;
text-decoration: none;
font-weight: bold; font-weight: bold;
letter-spacing: 0.1em;
padding: 10px 15px;
margin: 0px 5px;
text-align: center;
text-transform: uppercase; text-transform: uppercase;
opacity: 0.6; letter-spacing: 0.25em;
transition: 0.2s ease-in-out background, 0.2s ease-in-out opacity; padding: 15px 40px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
background: rgba(0,0,0,0.6);
color: rgba(255,255,255,0.4);
transition: 0.2s ease-in-out all;
text-decoration: none;
& span { &:not(.active):hover {
display: block; cursor: pointer;
transition: 0.2s ease-in-out transform; background: #272c2e;
transform: translateY(4px); color: rgba(255,255,255,0.75);
}
&:hover {
background: rgba(255,255,255,0.2);
border-radius: 5px;
}
&:after {
transition: 0.2s ease-in-out background;
margin: 0 auto;
margin-top: 5px;
width: 20px;
height: 3px;
border-radius: 5px;
background: transparent;
content: "";
display: block;
} }
&.router-link-exact-active { &.router-link-exact-active {
opacity: 1; opacity: 1;
color: rgba(255,255,255,1);
& span { background: #212629;
transform: translateY(0px);
}
&:after {
background: linear-gradient(135deg, #fd2f85, #7a34ec);
} }
} }
} }
......
...@@ -81,6 +81,9 @@ ...@@ -81,6 +81,9 @@
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.frontpage {
padding: 50px;
.staff-promos { .staff-promos {
display: grid; display: grid;
grid-template-columns: 1fr 1fr; grid-template-columns: 1fr 1fr;
...@@ -133,4 +136,5 @@ ...@@ -133,4 +136,5 @@
} }
} }
} }
}
</style> </style>
\ No newline at end of file
...@@ -73,4 +73,7 @@ ...@@ -73,4 +73,7 @@
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
.song-row {
padding: 50px;
}
</style> </style>
\ No newline at end of file
...@@ -74,6 +74,6 @@ ...@@ -74,6 +74,6 @@
<style scoped lang="less"> <style scoped lang="less">
.song-row { .song-row {
margin-top: 25px; padding: 50px;
} }
</style> </style>
\ No newline at end of file
...@@ -74,6 +74,6 @@ ...@@ -74,6 +74,6 @@
<style scoped lang="less"> <style scoped lang="less">
.song-row { .song-row {
margin-top: 25px; padding: 50px;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment