Make movie schedule components functional
Introduces MovieGroup and Performance models for better type safety and data handling. Refactors movie-related components to use Angular signals (input/computed) and updates templates to bind data dynamically. Updates HttpService to support Vorstellung API endpoints. The schedule component now loads and groups performances by date and movie, passing structured data to child components for rendering.
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
<a routerLink="/schedule" class="bg-gray-200 m-2 flex flex-col items-center justify-between rounded-md overflow-hidden text-xl shadow-lg transform transition-all duration-300 hover:scale-105">
|
||||
|
||||
<div class="bg-gradient-to-r from-indigo-500 to-pink-600 w-full text-center text-white font-medium rounded-t-md py-0.5">
|
||||
<p>Kino 1</p>
|
||||
<p>{{ hall() }}</p>
|
||||
</div>
|
||||
|
||||
<h1 class="flex-1 flex items-center justify-center text-black font-bold text-3xl px-2 py-1">
|
||||
15:30
|
||||
{{ startTime() }}
|
||||
</h1>
|
||||
|
||||
<div class="bg-green-600 w-full text-center text-white font-medium rounded-b-md py-0.5">
|
||||
<div [style.background-color]="utilisationBackground()" [class]="fullStyle()" class="w-full text-center text-white font-medium rounded-b-md py-0.5 ">
|
||||
<p>Tickets</p>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user