From bc67ca11873afe2165e6b08cf38dd5e3a3fa735f Mon Sep 17 00:00:00 2001 From: JY Hsu Date: Sat, 19 Oct 2024 01:51:40 +0900 Subject: [PATCH] Add project image (#987) Co-authored-by: Emruz Hossain --- assets/styles/components/cards.scss | 9 +++++ layouts/partials/cards/project.html | 56 ++++++++++++++++++----------- 2 files changed, 44 insertions(+), 21 deletions(-) diff --git a/assets/styles/components/cards.scss b/assets/styles/components/cards.scss index c1c0490b5..d74110eca 100644 --- a/assets/styles/components/cards.scss +++ b/assets/styles/components/cards.scss @@ -9,6 +9,11 @@ box-shadow: $box-shadow; border: 1px solid get-light-color('bg-primary'); @include transition(); + .card-img-top { + transform: scale(1.2); + object-fit: cover; + @include transition(); + } } .card-head { @@ -17,6 +22,10 @@ overflow: hidden; } + .card-title { + font-size: large; + } + .card-body { text-align: left; } diff --git a/layouts/partials/cards/project.html b/layouts/partials/cards/project.html index 6f193450b..1d1c83a42 100644 --- a/layouts/partials/cards/project.html +++ b/layouts/partials/cards/project.html @@ -4,34 +4,48 @@ >