|
|
@ -29,9 +29,8 @@ export default function MusicPanel(props: { musicInfo: ISong }) {
|
|
|
|
<>
|
|
|
|
<>
|
|
|
|
<div className="relative w-[100%] aspect-square mt-[12px]">
|
|
|
|
<div className="relative w-[100%] aspect-square mt-[12px]">
|
|
|
|
<Image className="rounded-[6px] object-cover" unoptimized fill src={musicInfo?.pic} alt="cover" />
|
|
|
|
<Image className="rounded-[6px] object-cover" unoptimized fill src={musicInfo?.pic} alt="cover" />
|
|
|
|
{playing ? (
|
|
|
|
|
|
|
|
<Image
|
|
|
|
<Image
|
|
|
|
className="absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] w-[60px] h-[60px]"
|
|
|
|
className={`absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] w-[60px] h-[60px] ${!playing && 'hidden'}`}
|
|
|
|
width={60}
|
|
|
|
width={60}
|
|
|
|
height={60}
|
|
|
|
height={60}
|
|
|
|
unoptimized
|
|
|
|
unoptimized
|
|
|
@ -39,9 +38,8 @@ export default function MusicPanel(props: { musicInfo: ISong }) {
|
|
|
|
alt="pause"
|
|
|
|
alt="pause"
|
|
|
|
onClick={togglePlay}
|
|
|
|
onClick={togglePlay}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
) : (
|
|
|
|
|
|
|
|
<Image
|
|
|
|
<Image
|
|
|
|
className="absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] w-[60px] h-[60px]"
|
|
|
|
className={`absolute top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] w-[60px] h-[60px] ${playing && 'hidden'}`}
|
|
|
|
width={60}
|
|
|
|
width={60}
|
|
|
|
height={60}
|
|
|
|
height={60}
|
|
|
|
unoptimized
|
|
|
|
unoptimized
|
|
|
@ -49,7 +47,6 @@ export default function MusicPanel(props: { musicInfo: ISong }) {
|
|
|
|
alt="play"
|
|
|
|
alt="play"
|
|
|
|
onClick={togglePlay}
|
|
|
|
onClick={togglePlay}
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
)}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="w-full mt-[20px]">
|
|
|
|
<div className="w-full mt-[20px]">
|
|
|
|