diff --git a/src/containers/CourseCard/CourseCard.scss b/src/containers/CourseCard/CourseCard.scss new file mode 100644 index 0000000..f1dcf55 --- /dev/null +++ b/src/containers/CourseCard/CourseCard.scss @@ -0,0 +1,16 @@ +.course-card { + .card { + overflow: hidden; + + .pgn__card-image-cap { + border-bottom-left-radius: 0 !important; + } + } + + .course-card-banners { + > .alert { + border-top-left-radius: 0; + border-top-right-radius: 0; + } + } +} \ No newline at end of file diff --git a/src/containers/CourseCard/__snapshots__/index.test.jsx.snap b/src/containers/CourseCard/__snapshots__/index.test.jsx.snap index e9c6a51..4d679e2 100644 --- a/src/containers/CourseCard/__snapshots__/index.test.jsx.snap +++ b/src/containers/CourseCard/__snapshots__/index.test.jsx.snap @@ -8,65 +8,73 @@ exports[`CourseCard component snapshot 1`] = ` - - - - } - title={ - - hooks.title - - } - /> - - - - - } +
+
- + + + } + title={ + + hooks.title + + } + /> + + + + + } + > + + + +
+
+ - - + + +
+
-
- - - -
`; diff --git a/src/containers/CourseCard/index.jsx b/src/containers/CourseCard/index.jsx index c73204f..700f4b5 100644 --- a/src/containers/CourseCard/index.jsx +++ b/src/containers/CourseCard/index.jsx @@ -17,41 +17,47 @@ import CourseCardActions from './components/CourseCardActions'; import messages from './messages'; import CourseCardDetails from './components/CourseCardDetails'; +import './CourseCard.scss'; + export const CourseCard = ({ cardId }) => { const { - isEnrolled, - title, - bannerUrl, - formatMessage, - } = useCardData({ cardId }); + isEnrolled, title, bannerUrl, formatMessage, + } = useCardData({ + cardId, + }); return (
- - - {title}} - actions={} - /> - - - - } - > - - - +
+
+ + + {title}} + actions={} + /> + + + + } + > + + + +
+ +
+ + + {isEnrolled && } +
+
-
- - - {isEnrolled && } -
); };