mirror of
https://github.com/algerkong/AlgerMusicPlayer.git
synced 2026-04-15 07:20:49 +08:00
🦄 refactor(style): 修改页面样式为全屏样式
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
<!-- 搜索栏 -->
|
||||
<search-bar />
|
||||
<!-- 主页面路由 -->
|
||||
<n-layout class="main-content bg-black" :native-scrollbar="false">
|
||||
<div class="main-content bg-black" :native-scrollbar="false">
|
||||
<n-message-provider>
|
||||
<router-view class="main-page" v-slot="{ Component }">
|
||||
<!-- <keep-alive>
|
||||
@@ -19,7 +19,7 @@
|
||||
<component :is="Component" />
|
||||
</router-view>
|
||||
</n-message-provider>
|
||||
</n-layout>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 底部音乐播放 -->
|
||||
@@ -56,18 +56,19 @@ const menus = store.state.menus;
|
||||
|
||||
.layout-main {
|
||||
@apply bg-black rounded-lg text-white shadow-xl flex-col relative;
|
||||
height: 900px;
|
||||
width: 1500px;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
min-width: 1500px;
|
||||
.menu {
|
||||
width: 90px;
|
||||
}
|
||||
.main {
|
||||
@apply pt-6 pr-6 flex-1 box-border;
|
||||
height: 100vh;
|
||||
&-content {
|
||||
@apply rounded-2xl;
|
||||
height: 834px;
|
||||
height: calc(100vh - 60px);
|
||||
margin-bottom: 90px;
|
||||
}
|
||||
&-page {
|
||||
margin: 20px 0;
|
||||
|
||||
@@ -152,7 +152,7 @@ const handlePlay = (item: any) => {
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.list-page {
|
||||
position: relative;
|
||||
@apply relative h-full;
|
||||
}
|
||||
|
||||
.musicPage-enter-active {
|
||||
@@ -164,15 +164,13 @@ const handlePlay = (item: any) => {
|
||||
}
|
||||
|
||||
.recommend {
|
||||
width: 100%;
|
||||
height: 800px;
|
||||
background-color: #000000;
|
||||
@apply w-full h-full;
|
||||
&-title {
|
||||
@apply text-lg font-bold text-white py-4;
|
||||
}
|
||||
|
||||
&-list {
|
||||
@apply flex flex-wrap;
|
||||
@apply flex flex-wrap justify-between;
|
||||
padding-bottom: 100px;
|
||||
}
|
||||
&-item {
|
||||
@@ -220,10 +218,10 @@ const handlePlay = (item: any) => {
|
||||
.music {
|
||||
&-page {
|
||||
width: 100%;
|
||||
height: 734px;
|
||||
height: 70%;
|
||||
position: absolute;
|
||||
background-color: #000000f0;
|
||||
top: 100px;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
border-radius: 30px 30px 0 0;
|
||||
animation-duration: 300ms;
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
v-for="(item, index) in searchDetail?.result.songs"
|
||||
:key="item.id"
|
||||
:class="setAnimationClass('animate__bounceInRight')"
|
||||
:style="setAnimationDelay(index, 100)"
|
||||
:style="setAnimationDelay(index, 50)"
|
||||
>
|
||||
<SongItem :item="item" />
|
||||
</div>
|
||||
@@ -116,19 +116,15 @@ watch(
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.search {
|
||||
height: 750px;
|
||||
background-color: #333;
|
||||
}
|
||||
.search-page {
|
||||
@apply flex;
|
||||
@apply flex h-full;
|
||||
}
|
||||
.hot-search {
|
||||
@apply mt-3 mr-4 rounded-xl flex-1 overflow-hidden;
|
||||
height: 740px;
|
||||
background-color: #0d0d0d;
|
||||
animation-duration: 0.2s;
|
||||
min-width: 400px;
|
||||
height: 100%;
|
||||
&-item {
|
||||
@apply px-4 py-3 text-lg hover:bg-gray-700 rounded-xl cursor-pointer;
|
||||
&-count {
|
||||
@@ -142,8 +138,8 @@ watch(
|
||||
|
||||
.search-list {
|
||||
@apply mt-3 flex-1 rounded-xl;
|
||||
height: 740px;
|
||||
background-color: #0d0d0d;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.title {
|
||||
|
||||
Reference in New Issue
Block a user