diff --git a/frontend/src/components/ClassCard/ClassCard.module.css b/frontend/src/components/ClassCard/ClassCard.module.css index d27cc22..518aff7 100644 --- a/frontend/src/components/ClassCard/ClassCard.module.css +++ b/frontend/src/components/ClassCard/ClassCard.module.css @@ -12,14 +12,12 @@ display: flex; justify-content: center; align-items: center; - width: 295px; - height: 220px; + width: 100%; + aspect-ratio: 4/3; border-radius: 20px; background-color: var(--background-secondary); - stroke: var(--text-color); + border: 1px solid var(--background-secondary); + object-fit: contain; + stroke: var(--text-color-secondary); box-sizing: border-box; } - -img.thumbnail { - border: 1px solid var(--border-color); -} diff --git a/frontend/src/components/ClassGrid/ClassGrid.module.css b/frontend/src/components/ClassGrid/ClassGrid.module.css index b0de2c6..484e9b6 100644 --- a/frontend/src/components/ClassGrid/ClassGrid.module.css +++ b/frontend/src/components/ClassGrid/ClassGrid.module.css @@ -8,7 +8,7 @@ .grid { display: grid; - grid-template-columns: repeat(auto-fill, minmax(295px, auto)); + grid-template-columns: repeat(5, 1fr); gap: 20px; justify-content: start; margin-bottom: 40px; diff --git a/frontend/src/components/LectureHeader/LectureHeader.module.css b/frontend/src/components/LectureHeader/LectureHeader.module.css index ee0889b..e98c683 100644 --- a/frontend/src/components/LectureHeader/LectureHeader.module.css +++ b/frontend/src/components/LectureHeader/LectureHeader.module.css @@ -26,8 +26,10 @@ width: 120px; height: 120px; border-radius: 16px; - stroke: var(--text-color); - border: 1px solid var(--border-color); + stroke: var(--text-color-secondary); + object-fit: contain; + background-color: var(--background-secondary); + border: 1px solid var(--background-secondary); } .info { @@ -63,6 +65,7 @@ width: 48px; height: 48px; border-radius: 50%; + object-fit: cover; stroke: var(--text-color-secondary); border: 1px solid var(--border-color); } diff --git a/frontend/src/components/QuizForm/QuizCard.module.css b/frontend/src/components/QuizForm/QuizCard.module.css index 05cbd09..48abeb7 100644 --- a/frontend/src/components/QuizForm/QuizCard.module.css +++ b/frontend/src/components/QuizForm/QuizCard.module.css @@ -37,6 +37,7 @@ margin: 10px auto; border-radius: 8px; background-color: var(--background-secondary); + object-fit: contain; cursor: pointer; } diff --git a/frontend/src/components/QuizsetDetail/QuizsetDetail.module.css b/frontend/src/components/QuizsetDetail/QuizsetDetail.module.css index 08ded4d..033c587 100644 --- a/frontend/src/components/QuizsetDetail/QuizsetDetail.module.css +++ b/frontend/src/components/QuizsetDetail/QuizsetDetail.module.css @@ -40,7 +40,9 @@ height: 220px; margin: 10px auto; border-radius: 8px; + object-fit: contain; background-color: var(--background-secondary); + border: 1px solid var(--background-secondary); } .grid { diff --git a/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.jsx b/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.jsx index 3034291..2b6be71 100644 --- a/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.jsx +++ b/frontend/src/pages/LearningLecturesPage/LearningLecturesPage.jsx @@ -1,6 +1,8 @@ import styles from './LearningLecturesPage.module.css'; import { Link } from 'react-router-dom'; import { useMyLectures } from '../../hooks/api/useMyLectures'; +import CompassIcon from '/src/assets/icons/compass.svg?react'; +import { STATIC_URL } from '../../constants'; export default function LearningLecturesPage() { const { data } = useMyLectures(); @@ -18,7 +20,17 @@ export default function LearningLecturesPage() { to={`/lecture/${lecture.id}`} className={styles.card} > -
+ {lecture.image ? ( + + ) : ( +