diff --git a/public/tailwind.css b/public/tailwind.css index f315417..fe657a0 100644 --- a/public/tailwind.css +++ b/public/tailwind.css @@ -606,6 +606,18 @@ video { margin-top: 2rem; } +.mt-2 { + margin-top: 0.5rem; +} + +.mt-4 { + margin-top: 1rem; +} + +.mt-6 { + margin-top: 1.5rem; +} + .block { display: block; } @@ -682,6 +694,10 @@ video { width: 410px; } +.w-\[800px\] { + width: 800px; +} + .w-full { width: 100%; } @@ -690,10 +706,6 @@ video { width: 100vw; } -.w-\[800px\] { - width: 800px; -} - .flex-none { flex: none; } @@ -860,14 +872,14 @@ video { background-color: rgb(34 197 94 / var(--tw-bg-opacity)); } -.bg-white\/5 { - background-color: rgb(255 255 255 / 0.05); -} - .bg-white\/10 { background-color: rgb(255 255 255 / 0.1); } +.bg-white\/5 { + background-color: rgb(255 255 255 / 0.05); +} + .bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); } @@ -962,6 +974,10 @@ video { padding-bottom: 0.5rem; } +.pb-4 { + padding-bottom: 1rem; +} + .pl-10 { padding-left: 2.5rem; } @@ -1002,10 +1018,6 @@ video { padding-top: 2rem; } -.pb-4 { - padding-bottom: 1rem; -} - .text-center { text-align: center; } diff --git a/src/layouts/index.tsx b/src/layouts/index.tsx index e8c4b09..8398670 100644 --- a/src/layouts/index.tsx +++ b/src/layouts/index.tsx @@ -63,9 +63,15 @@ export default function Layout({ children, location }) { icon: 'HomeIcon', href: '/', }, + { + id: 'single', + children: '单曲', + icon: 'LifebuoyIcon', + href: '/#/single', + }, { id: 'live', - children: '现场', + children: 'Live', icon: 'SunIcon', href: '/#/video', }, @@ -89,7 +95,7 @@ export default function Layout({ children, location }) { children: '参与贡献', icon: 'CodeBracketIcon', target: '_blank', - href: 'https://github.com/turkyden/lizhi-app', + href: 'https://github.com/EternalDung/ang', }, // { // id: 'star', @@ -105,6 +111,7 @@ export default function Layout({ children, location }) { return (
+ {/* 左侧导航区 */}

张韶涵

@@ -163,7 +170,7 @@ export default function Layout({ children, location }) { 'bg-green-500 shadow shadow-green-500/50' }`} > - 🔥单曲 + 🎸单曲 🔥Live - 🧑自传 - + */}
+ {/* 右侧路由区 */}
{children}
+ {/* 播放器组件 */} {} export default function (props) { const [currDownloadingName, setcurrDownloadingName] = useState(''); const artist = props.match.params.id; - + // 过滤点击的专辑歌曲 const albumList = window.list.filter((v) => v.artist === artist); const onClick = (name: string) => { const array = document.querySelectorAll('.audio-item'); for (let index = 0; index < array.length; index++) { const element = array[index]; + console.log(element); + const target = element.querySelector('.player-name'); if (target?.title.split(' · ')[0].includes(name)) { - console.log(target); target.click(); } } diff --git a/src/pages/download.tsx b/src/pages/download.tsx index 86738f9..71f02f2 100644 --- a/src/pages/download.tsx +++ b/src/pages/download.tsx @@ -5,7 +5,7 @@ function Download() {
- {/* */} + cover
-
谢谢你们 · 丰富了我的人生
+
谢谢你们 · 丰富了我的人生
{(window.album as IAlbumList).map((v, i) => ( v.artist === artist); + // const onClick = (name: string) => { + // const array = document.querySelectorAll('.audio-item'); + // for (let index = 0; index < array.length; index++) { + // const element = array[index]; + // const target = element.querySelector('.player-name'); + // if (target?.title.split(' · ')[0].includes(name)) { + // target.click(); + // } + // } + // }; const onClick = (name: string) => { - const array = document.querySelectorAll('.audio-item'); - for (let index = 0; index < array.length; index++) { - const element = array[index]; - const target = element.querySelector('.player-name'); - if (target?.title.split(' · ')[0].includes(name)) { - target.click(); - } - } + alert('点击了【' + name + '】,单曲功能正在开发'); }; return ( @@ -24,7 +27,7 @@ export default function Single(props) {
听见张韶涵的声音
- +
{/*
{(window.album as IAlbumList).map((v, i) => (
Back + +
Live
+
欣赏盛世美颜
+
{/*
Live 现场
*/}