diff --git a/src/app/home/stack-slider/stack-card/stack-card.component.css b/src/app/home/stack-slider/stack-card/stack-card.component.css index 74b49ea..2d5f302 100644 --- a/src/app/home/stack-slider/stack-card/stack-card.component.css +++ b/src/app/home/stack-slider/stack-card/stack-card.component.css @@ -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; } diff --git a/src/app/home/stack-slider/stack-card/stack-card.component.html b/src/app/home/stack-slider/stack-card/stack-card.component.html index 0e318bb..f79d7db 100644 --- a/src/app/home/stack-slider/stack-card/stack-card.component.html +++ b/src/app/home/stack-slider/stack-card/stack-card.component.html @@ -1,5 +1,10 @@
{{stack.description}}
diff --git a/src/app/home/stack-slider/stack-card/stack-card.component.ts b/src/app/home/stack-slider/stack-card/stack-card.component.ts index 0bfc93c..e64dbd1 100644 --- a/src/app/home/stack-slider/stack-card/stack-card.component.ts +++ b/src/app/home/stack-slider/stack-card/stack-card.component.ts @@ -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') diff --git a/src/styles.css b/src/styles.css index e0431ef..5d178f5 100644 --- a/src/styles.css +++ b/src/styles.css @@ -1,4 +1,5 @@ /* You can add global styles to this file, and also import other style files */ +@import url('https://fonts.googleapis.com/css2?family=Hind:wght@300;400;500;600;700&display=swap'); @import "font-montserrat.css"; * { @@ -21,3 +22,7 @@ h5, h6 { font-family: "Montserrat", sans-serif; } + +p { + font-family: "Hind", sans-serif; +}