diff --git a/frontend/src/app/features/people/person-card/person-card.component.html b/frontend/src/app/features/people/person-card/person-card.component.html index 5c02bd9..900f188 100644 --- a/frontend/src/app/features/people/person-card/person-card.component.html +++ b/frontend/src/app/features/people/person-card/person-card.component.html @@ -1,13 +1,13 @@
- +
-

{{ person?.name }}

+

{{ person?.name }}

{{ (person?.popularity || 0) | floatFormat:2 }}
-
{{ person?.known_for_department || 'Unknown' }}
\ No newline at end of file diff --git a/frontend/src/app/features/people/person-card/person-card.component.ts b/frontend/src/app/features/people/person-card/person-card.component.ts index 727dfd3..29592bd 100644 --- a/frontend/src/app/features/people/person-card/person-card.component.ts +++ b/frontend/src/app/features/people/person-card/person-card.component.ts @@ -19,39 +19,15 @@ export class PersonCardComponent implements OnInit { ngOnInit() {} - getProfileImageUrl(): string { - if (!this.person) return this.defaultImage; - - // First check if we have a local media - // if (this.person.medias && this.person.medias.length > 0) { - // const profileMedia = this.person.medias.find(m => m.type === 'profile'); - // if (profileMedia) { - // return `${this.backendUrl}/images/people/profiles/${profileMedia.file_name}`; - // } - // } - - // Fallback to TMDB image if available - if (this.person.profile_path) { - return `https://image.tmdb.org/t/p/w185${this.person.profile_path}`; - } - - // Default image if nothing else is available - return this.defaultImage; - } - getGenderText(): string { if (!this.person || this.person.gender === undefined) return 'Not specified'; switch (this.person.gender) { - case 0: - return 'Not specified'; case 1: return 'Female'; case 2: return 'Male'; - case 3: - return 'Non-binary'; default: return 'Not specified'; } diff --git a/frontend/src/assets/images/default/default-profile.png b/frontend/src/assets/images/default/default-profile.png new file mode 100644 index 0000000..0f5b1ff Binary files /dev/null and b/frontend/src/assets/images/default/default-profile.png differ