Skip to content

Commit

Permalink
Merge branch 'feature/59-banner_size'
Browse files Browse the repository at this point in the history
  • Loading branch information
은지 committed Aug 9, 2024
2 parents f6d29ad + 903786b commit e95fbfc
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 e95fbfc

Please sign in to comment.