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