From 243105451553b576d601642e3ed96a8055efb1e1 Mon Sep 17 00:00:00 2001 From: jhynsoo Date: Tue, 16 Jul 2024 13:53:46 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20LectureHeader=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LectureHeader/LectureHeader.jsx | 38 ++++++++++ .../LectureHeader/LectureHeader.module.css | 72 +++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 frontend/src/components/LectureHeader/LectureHeader.jsx create mode 100644 frontend/src/components/LectureHeader/LectureHeader.module.css diff --git a/frontend/src/components/LectureHeader/LectureHeader.jsx b/frontend/src/components/LectureHeader/LectureHeader.jsx new file mode 100644 index 0000000..eed4eae --- /dev/null +++ b/frontend/src/components/LectureHeader/LectureHeader.jsx @@ -0,0 +1,38 @@ +import styles from './LectureHeader.module.css'; + +export default function LectureHeader({ img, title, tutorImg, tutor, isLive }) { + return ( +
+
+ 강의 이미지 +
+

{title}

+
+
+ 강사 사진 +
{tutor}
+
+
+ {isLive ? ( + + ) : null} +
+
+
+
+
+ ); +} diff --git a/frontend/src/components/LectureHeader/LectureHeader.module.css b/frontend/src/components/LectureHeader/LectureHeader.module.css new file mode 100644 index 0000000..40cc4f4 --- /dev/null +++ b/frontend/src/components/LectureHeader/LectureHeader.module.css @@ -0,0 +1,72 @@ +.wrapper { + width: 100%; + background-color: var(--background); + border-bottom: 1px solid var(--border-color); + margin: 20px 0 40px; +} + +.header { + display: flex; + justify-content: stretch; + align-items: center; + gap: 40px; + width: 100%; + max-width: 1320px; + padding: 0 40px; + margin: 0 auto 40px; + box-sizing: border-box; +} + +.thumbnail { + flex-shrink: 0; + width: 160px; + height: 160px; + border-radius: 16px; + border: 1px solid var(--border-color); +} + +.info { + flex-grow: 1; + display: flex; + flex-direction: column; + gap: 16px; +} + +.title { + font-size: 36px; + line-height: 1.2; + font-weight: 900; + margin: 0; +} + +.desc { + display: flex; + justify-content: space-between; +} + +.tutor { + display: flex; + gap: 10px; + align-items: center; +} + +.tutorImg { + width: 48px; + height: 48px; + border-radius: 50%; + border: 1px solid var(--border-color); +} + +.liveButton { + padding: 12px 16px; + text-align: center; + font-size: 16px; + line-height: 1.4; + font-family: inherit; + font-weight: 700; + border-radius: 8px; + cursor: pointer; + background-color: var(--error-color); + border: 1px solid var(--error-border); + color: var(--on-error); +}