diff --git a/src/app/schedule/schedule.component.html b/src/app/schedule/schedule.component.html index 3083e0f..eb3f84b 100644 --- a/src/app/schedule/schedule.component.html +++ b/src/app/schedule/schedule.component.html @@ -17,7 +17,7 @@ } @else {
@for (show of state.shows; track show.id) { -
+
@if (show.show_art_url) { @@ -33,8 +33,9 @@
+

{{ show.title }}

-

{{ show.description }}

+

{{ show.description }}

{{ show.host }} diff --git a/src/app/schedule/schedule.component.scss b/src/app/schedule/schedule.component.scss index 80e0473..2e4431c 100644 --- a/src/app/schedule/schedule.component.scss +++ b/src/app/schedule/schedule.component.scss @@ -43,13 +43,21 @@ border-radius: $radius-lg; overflow: hidden; box-shadow: $shadow-md; - transition: transform $transition-normal, box-shadow $transition-normal; + transition: transform $transition-normal, box-shadow $transition-normal, border-color $transition-normal; min-height: 180px; + cursor: pointer; + border-left: 4px solid transparent; &:hover { transform: translateY(-2px); box-shadow: $shadow-lg; } + + &.expanded { + border-left-color: var(--color-accent); + box-shadow: 0 8px 30px rgba(232, 122, 46, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15); + transform: translateY(-3px); + } } // ── Left: Show art badge (square) ────────────────────────── @@ -131,6 +139,24 @@ line-height: 1.25; } +// ── Chevron indicator ────────────────────────────────────── + +.show-card-chevron { + position: absolute; + top: $spacing-lg; + right: $spacing-xl; + z-index: 3; + font-size: 0.7rem; + color: rgba(255, 255, 255, 0.45); + transition: transform $transition-normal, color $transition-normal; + pointer-events: none; +} + +.show-card.expanded .show-card-chevron { + transform: rotate(90deg); + color: var(--color-accent); +} + // ── Show description (line-clamped) ──────────────────────── .show-description { @@ -143,6 +169,12 @@ -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; + transition: max-height $transition-slow ease, opacity $transition-normal; + + &.expanded { + -webkit-line-clamp: unset; + overflow: visible; + } } // ── Meta row (host + genre) ──────────────────────────────── diff --git a/src/app/schedule/schedule.component.ts b/src/app/schedule/schedule.component.ts index 9b170ff..1b93f5f 100644 --- a/src/app/schedule/schedule.component.ts +++ b/src/app/schedule/schedule.component.ts @@ -24,6 +24,14 @@ export class ScheduleComponent { private showService = inject(ShowService); readonly config = inject(StationConfigService).config; + /** ID of the currently expanded show card — null means none. */ + expandedShowId: number | null = null; + + /** Toggle expansion: clicking the active card collapses it; clicking another expands it. */ + toggleShow(showId: number): void { + this.expandedShowId = this.expandedShowId === showId ? null : showId; + } + /** Async pipe drives the template — guarantees change detection on every emission. */ readonly schedule$: Observable = this.showService.getShows().pipe(