From da8992d63235f3a56ec7ff0a77ac747a30121f47 Mon Sep 17 00:00:00 2001 From: JY Hsu Date: Mon, 23 Sep 2024 23:30:41 +0800 Subject: [PATCH] feat: Add project image and use 1000*1000 resolution --- 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 @@ >