- @if (type() === CardType.TEACHER) {
-
![]()
- }
- @if (type() === CardType.STUDENT) {
-
![]()
- }
-
+
@for (item of list(); track item) {
-
+
}
@@ -35,24 +26,32 @@ import { ListItemComponent } from '../list-item/list-item.component';
`,
- imports: [ListItemComponent, NgOptimizedImage],
+ styles: [
+ `
+ .bg-light-red {
+ background-color: rgba(250, 0, 0, 0.1);
+ }
+
+ .bg-light-green {
+ background-color: rgba(0, 250, 0, 0.1);
+ }
+
+ .bg-light-blue {
+ background-color: rgba(0, 0, 250, 0.1);
+ }
+ `,
+ ],
+ imports: [NgTemplateOutlet, CardListItemTemplateDirective],
})
export class CardComponent {
- private teacherStore = inject(TeacherStore);
- private studentStore = inject(StudentStore);
-
readonly list = input