diff --git a/src/components/seminar/seminarDetail/banner/SeminarDetailBanner.tsx b/src/components/seminar/seminarDetail/banner/SeminarDetailBanner.tsx index 146239d..20b23fd 100644 --- a/src/components/seminar/seminarDetail/banner/SeminarDetailBanner.tsx +++ b/src/components/seminar/seminarDetail/banner/SeminarDetailBanner.tsx @@ -2,6 +2,9 @@ import React from 'react'; import Image from 'next/image'; import { SeminarThumnail } from '@/interfaces/seminar/seminarThumbnail'; import TranslateImg from '@/svg/seminar/translate_img.png'; +import { motion } from 'framer-motion'; +import { seminarCardVariants } from '@/constants/seminar/seminarCardVariants'; +import SeminarDetailBannerInform from './SeminarDetailBannerInform'; /** @@ -20,6 +23,14 @@ const SeminarDetailBanner = ({ data }: { data: SeminarThumnail }) => {
{/* 왼쪽 컨텐츠 */}
+ {`${data.presenter_name}'s_seminarimage`} { quality={100} priority /> +
{/* 오른쪽 컨텐츠 */}
@@ -42,30 +54,9 @@ const SeminarDetailBanner = ({ data }: { data: SeminarThumnail }) => { priority />
-
-

- Date -

-

- {data.date} -

-
-
-

- Location -

-

- {data.location} -

-
-
-

- Speaker -

-
- {data.presenter_name}

{data.presenter_role}

-
-
+ + +
diff --git a/src/components/seminar/seminarDetail/banner/SeminarDetailBannerInform.tsx b/src/components/seminar/seminarDetail/banner/SeminarDetailBannerInform.tsx new file mode 100644 index 0000000..6926a4e --- /dev/null +++ b/src/components/seminar/seminarDetail/banner/SeminarDetailBannerInform.tsx @@ -0,0 +1,40 @@ +import React from 'react'; +import { SeminarThumnail } from '@/interfaces/seminar/seminarThumbnail'; +import { motion } from 'framer-motion'; +import { seminarCardVariants } from '@/constants/seminar/seminarCardVariants'; + +const SeminarDetailBannerInform = ({ type, data, speaker_data }: { type: string, data: string, speaker_data: string }) => { + return ( + + {data === 'Speaker' ? ( +
+

+ {type} +

+
+ {data}

{speaker_data}

+
+
+ ) + : + ( +
+

+ {type} +

+

+ {data} +

+
+ )} +
+ ); +}; +export default SeminarDetailBannerInform; diff --git a/src/components/seminar/seminarDetail/header/SeminarDetailHeader.tsx b/src/components/seminar/seminarDetail/header/SeminarDetailHeader.tsx index 0fdba4a..b2cfc57 100644 --- a/src/components/seminar/seminarDetail/header/SeminarDetailHeader.tsx +++ b/src/components/seminar/seminarDetail/header/SeminarDetailHeader.tsx @@ -20,7 +20,7 @@ const SeminarDetailHeader = ({ data }: { data: SeminarThumnail }) => { return ( <> -
+
{categoryData.map((category, index) => (