Make movie rating dynamic

The movie rating component now accepts a 'rating' input and displays the rating value dynamically. The background color changes based on the rating, improving visual feedback for different age ratings.
This commit is contained in:
2025-10-29 09:23:46 +01:00
parent efc5e505e9
commit cd6151e0dd
3 changed files with 23 additions and 3 deletions

View File

@@ -2,7 +2,7 @@
<img src="assets/test-movie-poster.jpg" alt="Movie Poster" class="w-full h-auto shadow-md">
</div>
<div class="flex gap-1 justify-between">
<app-movie-rating></app-movie-rating>
<app-movie-rating [rating]="12"></app-movie-rating>
<app-movie-duration></app-movie-duration>
<app-movie-category></app-movie-category>
</div>