|
1 | 1 | <div class="lg:flex flex-column justify-between gap-4"> |
2 | 2 | <div *ngFor="let card of cards; let i = index" class="bg-grey lg:py-10 py-6 px-6 lg:mb-0 mb-4" |
3 | 3 | [style.flex]="card.isExpanded ? '2.5' : '1'" (click)="selectCard(i)"> |
4 | | - <div class="lg:flex-auto lg:flex flex-column justify-between align-center h-full items-center" |
5 | | - *ngIf="card.isExpanded"> |
| 4 | + <div class="lg:flex-auto lg:flex flex-col justify-between align-center h-full items-center" *ngIf="card.isExpanded"> |
6 | 5 | <div [@enterBigCard]> |
7 | | - <img [src]="card.imgSource" class="block lg:hidden w-2/4 h-2/4 md:w-1/3 lg:w-2/4 lg:h-2/4 md:h-1/3 m-auto mb-6" alt="slide img"> |
8 | | - <h3 [innerHTML]="card.title" class="lg:text-large text-2xl text-light_title_col leading-28 lg:leading-44 mb-8"> |
9 | | - </h3> |
10 | | - <ul class="list-disc text-grey_font_col pl-5 "> |
11 | | - <li *ngFor="let item of card.list" class="mb-4 ">{{item}}</li> |
12 | | - </ul> |
13 | | - <button class="flex justify-center lg:justify-between mt-10 w-full lg:w-auto"> |
14 | | - <a [routerLink]="['articles']" class="btn-pink flex justify-center w-full">Visit blog <img |
15 | | - src="assets/img/icons/arrow.svg" class="ml-2" alt=""></a> |
16 | | - </button> |
17 | | - </div> |
18 | | - <div class="hidden lg:block max-w-140 lg:max-w-full mb-6 lg:mb-0 h-full"> |
19 | | - <img [src]="card.imgSource" class="w-full h-full" alt="slide img"> |
| 6 | + <div class="flex flex-row items-center"> |
| 7 | + <div class="flex-col"> |
| 8 | + <img [src]="card.imgSource" |
| 9 | + class="block lg:hidden w-2/4 h-2/4 md:w-1/3 lg:w-2/4 lg:h-2/4 md:h-1/3 m-auto mb-6" alt="slide img"> |
| 10 | + <h3 [innerHTML]="card.title" |
| 11 | + class="lg:text-large text-2xl text-light_title_col leading-28 lg:leading-44 mb-8"> |
| 12 | + </h3> |
| 13 | + <ul class="list-disc text-grey_font_col pl-5 "> |
| 14 | + <li *ngFor="let item of card.list" class="mb-4 ">{{item}}</li> |
| 15 | + </ul> |
| 16 | + <button class="flex justify-center lg:justify-between mt-10 w-full lg:w-auto"> |
| 17 | + <a [routerLink]="['articles']" class="btn-pink flex justify-center w-full">Visit blog <img |
| 18 | + src="assets/img/icons/arrow.svg" class="ml-2" alt=""></a> |
| 19 | + </button> |
| 20 | + </div> |
| 21 | + <div class="hidden lg:block max-w-140 lg:max-w-full mb-6 lg:mb-0 h-full"> |
| 22 | + <img [src]="card.imgSource" class="w-full h-full" alt="slide img"> |
| 23 | + </div> |
| 24 | + </div> |
20 | 25 | </div> |
21 | 26 | </div> |
22 | | - |
23 | | - <div class="flex justify-between align-center md:h-full h-106 items-center gap-6" |
24 | | - *ngIf="!card.isExpanded" (click)="selectCard(i)" [@enterSmallCard]> |
25 | | - <div class="max-w-140 md:max-w-full mb-6 md:h-1/2 w-1/2 md:w-1/4 m-auto "> |
| 27 | + <div class="flex justify-between align-center md:h-full h-106 items-center gap-6" *ngIf="!card.isExpanded" |
| 28 | + (click)="selectCard(i)" [@enterSmallCard]> |
| 29 | + <div class="lg:hidden block max-w-140 md:max-w-full mb-6 md:h-1/2 w-1/2 md:w-1/4 m-auto "> |
26 | 30 | <img [src]="card.imgSource" class="w-full m-auto h-106" alt="slide img"> |
27 | 31 | </div> |
28 | 32 | <div class="md:h-1/2 "> |
|
0 commit comments