diff --git a/src/assets/imgs/banner.png b/src/assets/imgs/banner.png new file mode 100644 index 0000000..24df853 Binary files /dev/null and b/src/assets/imgs/banner.png differ diff --git a/src/components/Banner/index.tsx b/src/components/Banner/index.tsx index 86362ed..8c01c60 100644 --- a/src/components/Banner/index.tsx +++ b/src/components/Banner/index.tsx @@ -1,28 +1,15 @@ -import { H24, P16 } from '@/components/Text'; import * as S from './styles'; -import { CommonResponseType } from '@/types/apis'; interface BannerProps { - bInfo: Pick< - CommonResponseType, - 'mt20id' | 'prfnm' | 'poster' | 'prfplcnm' | 'pcseguidance' | 'prfpdfrom' | 'prfpdto' - >; + src: string; width?: number; height?: number; } -export const Banner = ({ bInfo, width = 100, height = 30 }: BannerProps) => { +export const Banner = ({ src, width = 100, height = 30 }: BannerProps) => { return ( - banner - - {bInfo.prfnm} - {bInfo.prfplcnm} - {bInfo.pcseguidance} - - {bInfo.prfpdfrom} - {bInfo.prfpdto} - - + banner ); }; diff --git a/src/components/Banner/styles.ts b/src/components/Banner/styles.ts index 200ab93..f72c256 100644 --- a/src/components/Banner/styles.ts +++ b/src/components/Banner/styles.ts @@ -6,7 +6,6 @@ export const Banner = styled.div<{ width: number; height: number }>` padding-top: ${({ height }) => height}%; max-width: 1280px; margin: auto; - overflow: hidden; & > img { position: absolute; @@ -21,15 +20,3 @@ export const Banner = styled.div<{ width: number; height: number }>` padding-top: 300px; } `; -export const Text = styled.div` - position: absolute; - top: 10%; - left: 10%; - & > h2 { - margin-bottom: 5rem; - } - & > p { - margin-bottom: 1rem; - width: 80%; - } -`;