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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user