diff --git a/frontend/src/components/now-playing/now-playing.ts b/frontend/src/components/now-playing/now-playing.ts index 46c052e..d35b9bf 100644 --- a/frontend/src/components/now-playing/now-playing.ts +++ b/frontend/src/components/now-playing/now-playing.ts @@ -1,6 +1,7 @@ -import { LitElement, html, css } from 'lit'; +import { LitElement, html, css, nothing } from 'lit'; import { customElement, state } from 'lit/decorators.js'; import '@awesome.me/webawesome/dist/components/icon/icon.js'; +import '@awesome.me/webawesome/dist/components/popup/popup.js'; import { PlayerController } from '@store/controllers/player-controller'; const MIN_WIDTH = 120; @@ -14,6 +15,9 @@ export class NowPlaying extends LitElement { @state() private isDragging = false; + @state() + private showCoverPreview = false; + static override styles = css` :host { display: block; @@ -59,6 +63,25 @@ export class NowPlaying extends LitElement { font-size: 24px; } + .cover-art-wrapper { + position: relative; + } + + .cover-preview-panel { + width: 500px; + height: 500px; + border-radius: 8px; + overflow: hidden; + box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); + pointer-events: none; + } + + .cover-preview-panel img { + width: 100%; + height: 100%; + object-fit: cover; + } + .track-info { display: flex; flex-direction: column; @@ -132,23 +155,54 @@ export class NowPlaying extends LitElement { return html`