From 7cb645f8fcbe43542ed8e12aded7f3aed95dc7f4 Mon Sep 17 00:00:00 2001 From: jhynsoo Date: Wed, 14 Aug 2024 16:57:08 +0900 Subject: [PATCH] =?UTF-8?q?design:=20=EB=A7=88=EC=9D=B4=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EC=88=98=EA=B0=95=EC=A4=91=EC=9D=B8=20=EA=B0=95?= =?UTF-8?q?=EC=9D=98=20=EC=B9=B4=EB=93=9C=20=ED=98=B8=EB=B2=84=20=ED=9A=A8?= =?UTF-8?q?=EA=B3=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LearningLecturesPage.jsx | 22 ++++++------ .../LearningLecturesPage.module.css | 34 +++++++++++++++++-- 2 files changed, 43 insertions(+), 13 deletions(-) diff --git a/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.jsx b/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.jsx index d3ab6ed..8a29254 100644 --- a/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.jsx +++ b/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.jsx @@ -23,18 +23,18 @@ export default function LearningLecturesPage() { to={`/lecture/${lecture.id}/class`} className={styles.card} > - {lecture.image ? ( - {lecture.title} - ) : ( -
+
+ {lecture.image ? ( + {lecture.title} + ) : ( -
- )} -
{lecture.title}
+ )} +
+
{lecture.title}
)) ) : ( diff --git a/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.module.css b/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.module.css index 69cbc58..24f5418 100644 --- a/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.module.css +++ b/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.module.css @@ -23,9 +23,30 @@ font-weight: 400; color: var(--text-color); min-width: 0; - overflow: hidden; - text-overflow: ellipsis; + border-radius: 20px; white-space: nowrap; + box-sizing: border-box; + + & > .title { + overflow: hidden; + text-overflow: ellipsis; + transition: font-weight 0.25s cubic-bezier(0, 0, 0.5, 1); + font-size: 16px; + line-height: 1.4; + font-weight: 400; + margin: 0; + } + + &:hover { + & > .thumbnail { + box-shadow: 2px 4px 8px #00000029; + scale: 1.05; + } + + & > .title { + font-weight: 600; + } + } } .thumbnail { @@ -40,4 +61,13 @@ object-fit: contain; stroke: var(--text-color-secondary); box-sizing: border-box; + overflow: hidden; + transition: + box-shadow 0.25s cubic-bezier(0, 0, 0.5, 1), + scale 0.25s cubic-bezier(0, 0, 0.5, 1), + rotate 0.25s cubic-bezier(0, 0, 0.5, 1); + + & > img { + background-color: var(--background-secondary); + } }