From 023d26199c32883e544a013369a5b69e2f84a558 Mon Sep 17 00:00:00 2001 From: Rueben van der Westhuizen <91849806+21434809@users.noreply.github.com> Date: Fri, 27 Sep 2024 10:22:26 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=90Refactor=20mood=20component=20HTML?= =?UTF-8?q?=20-=20Update=20album=20art=20display?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/src/app/pages/mood/mood.component.html | 14 +++++++++----- Frontend/src/app/pages/mood/mood.component.ts | 8 ++++++-- 2 files changed, 15 insertions(+), 7 deletions(-) diff --git a/Frontend/src/app/pages/mood/mood.component.html b/Frontend/src/app/pages/mood/mood.component.html index 5b5cb351..a72ce6a7 100644 --- a/Frontend/src/app/pages/mood/mood.component.html +++ b/Frontend/src/app/pages/mood/mood.component.html @@ -1,14 +1,18 @@ -
-
+
+
{{title}}
-
- {{ album.title }} +
+
+ {{ album.title }} + + +

{{ album.title }}

{{ album.artist }}

-
+
\ No newline at end of file diff --git a/Frontend/src/app/pages/mood/mood.component.ts b/Frontend/src/app/pages/mood/mood.component.ts index 40605a53..2770935d 100644 --- a/Frontend/src/app/pages/mood/mood.component.ts +++ b/Frontend/src/app/pages/mood/mood.component.ts @@ -10,12 +10,16 @@ import { ProfileComponent } from '../profile/profile.component'; import { MoodDropDownComponent } from '../../components/organisms/mood-drop-down/mood-drop-down.component'; import { BackButtonComponent } from '../../components/atoms/back-button/back-button.component'; import { PageTitleComponent } from '../../components/atoms/page-title/page-title.component'; -import { Track } from '../../services/search.service'; // <-- Use Track interface +import { Track } from '../../services/search.service'; +import { ProviderService } from "../../services/provider.service"; +import { YouTubeService } from "../../services/youtube.service"; +import { SpotifyService } from "../../services/spotify.service"; // <-- Use Track interface +import { PlayIconComponent } from '../../components/organisms/play-icon/play-icon.component'; @Component({ selector: 'app-mood', standalone: true, - imports: [NgForOf, NgIf, NgClass, NgSwitch, NgSwitchCase, NavbarComponent, SearchBarComponent, ProfileComponent, MoodDropDownComponent, BackButtonComponent, PageTitleComponent], + imports: [NgForOf, NgIf, NgClass, NgSwitch, NgSwitchCase, NavbarComponent, SearchBarComponent, ProfileComponent, MoodDropDownComponent, BackButtonComponent, PageTitleComponent,PlayIconComponent], templateUrl: './mood.component.html', styleUrls: ['./mood.component.css'] })