Adds Hind Font for P Texts and Fixes Cards Styling

This commit is contained in:
2023-11-09 01:23:15 -03:00
parent 25d1109f34
commit 93791a60ae
4 changed files with 33 additions and 12 deletions

View File

@@ -5,12 +5,11 @@
}
.stack-card-image {
width: 100%;
border-top-left-radius: 15px !important;
border-top-right-radius: 15px !important;
background-size: cover;
background-position: center;
background-repeat: no-repeat;
width: 250px;
height: 250px;
position: relative;
display: flex;
align-items: center;
}
.stack-card-body {
@@ -22,9 +21,18 @@
inline-size: 250px;
}
.stack-card-title {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 10px;
}
.stack-card-text {
word-break: break-all !important;
white-space: normal !important;
font-size: 1rem;
font-weight: 400 !important;
font-family: 'Hind', sans-serif !important;
}
@@ -35,6 +43,7 @@
}
.inactive {
opacity: 0.85;
width: 275px;
opacity: 0.7;
width: 300px;
height: 410px;
}

View File

@@ -1,5 +1,10 @@
<div class="card stack-card inactive" [@cardAnimation]="cardState">
<img class="card-img-top stack-card-image" [src]="stack.image" alt="Stack Image">
<div class="card-img-top stack-card-image">
<img [ngSrc]="stack.image"
width="200"
height="200"
alt="Stack Image" priority>
</div>
<div class="card-body stack-card-body">
<h5 class="card-title stack-card-title">{{stack.name}}</h5>
<p class="card-text stack-card-text">{{stack.description}}</p>

View File

@@ -10,11 +10,13 @@ import {animate, state, style, transition, trigger} from "@angular/animations";
trigger('cardAnimation', [
state('active', style({
opacity: 1,
width: '300px',
width: '350px',
height: '425px',
})),
state('inactive', style({
opacity: 0.85,
width: '275px',
opacity: 0.7,
width: '300px',
height: '410px',
})),
transition('* => *', [
animate('0.1s')