Skip to content

Commit

Permalink
fix :: 배너 보여질 때 크기 맞추기 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
은지 committed Aug 9, 2024
1 parent 309eac2 commit 903786b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Components/Banner/BannerDetail.tsx/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ export const Wrapper = styled.div`
display: flex;
justify-content: space-between;
`;

export const BannerImg = styled.img`
export const BannerImg = styled.div<{ src: string }>`
width: 1000px;
height: 300px;
background-image: url(${(props) => props.src});
background-position: center center;
background-repeat: no-repeat;
background-size: cover;
`;

export const TextWrapper = styled.div`
Expand Down

0 comments on commit 903786b

Please sign in to comment.