Elffuss BraidHub

kikocis/dataspace-portal public

main · 1.5 KiBRawPermalink
1<div
2 class="bg-white group w-full cursor-pointer flex flex-col items-center border border-black py-8 px-6 rounded-lg transition ease-in-out delay-100 hover:border-brand-500 hover:scale-[1.04] h-full justify-between"
3 (click)="onAction()">
4 <div class="flex flex-col items-center">
5 <img
6 *ngIf="selectionBoxConfig?.icon"
7 [src]="selectionBoxConfig.icon"
8 [alt]="selectionBoxConfig.title" />
9 <h3
10 class="text-base font-semibold text-black leading-6 group-hover:text-brand-500 mt-3 transition delay-100">
11 {{ selectionBoxConfig.title }}
12 </h3>
13 <p class="text-sm font-normal text-gray-500 leading-5">
14 {{ selectionBoxConfig.subTitle }}
15 </p>
16 </div>
17
18 <ul
19 *ngIf="selectionBoxConfig?.bulletPoints"
20 class="w-full my-8 space-y-3 text-sm leading-6 xl:mt-10 text-gray-600"
21 role="list">
22 <li
23 *ngFor="let bullet of selectionBoxConfig.bulletPoints"
24 class="flex gap-x-3 text-left">
25 <mat-icon svgIcon="checkbox"></mat-icon>
26 {{ bullet }}
27 </li>
28 </ul>
29
30 <button
31 *ngIf="selectionBoxConfig?.action?.label"
32 class="btn-accent my-4 flex flex-row items-center gap-2"
33 type="button"
34 matTooltipClass="w-full p-2 text-sm"
35 [matTooltip]="selectionBoxConfig.action?.hint ?? ''"
36 [disabledBtn]="selectionBoxConfig.action?.isDisabled ?? false"
37 (click)="onAction()">
38 <div
39 *ngIf="selectionBoxConfig.action!.isLoading"
40 class="border-4 border-gray-300 border-t-0 border-l-0 rounded-full w-4 h-4 animate-spin"></div>
41 {{ selectionBoxConfig.action!.label }}
42 </button>
43</div>