Skip to content

Commit 5f421c4

Browse files
committed
Fix: 이미지가 비정상적으로 표시되는 이슈 수정
1 parent 04982a5 commit 5f421c4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/components/Footer/SponsorTable.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ function SponsorTable({ max, levelName, sponsors, ...rest }: Props) {
2525
}
2626

2727
const LogoImage = styled.img`
28-
color: white;
28+
background: white;
29+
color: black;
2930
`;
3031

3132
const SponsorCard = styled.div`

src/pages/Sponsor/SponsorDetail.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const SponsorDetail: React.FC<{ sponsor: APISponsor }> = ({ sponsor }) => {
1313
<Vertical>
1414
<H1>{sponsor.name}</H1>
1515
<a href={sponsor.url}>
16-
<img src={sponsor.logo_image} alt={sponsor.name} />
16+
<LogoImage src={sponsor.logo_image} alt={sponsor.name} />
1717
</a>
1818
<H3 dangerouslySetInnerHTML={{ __html: sponsor.desc }}></H3>
1919
</Vertical>
@@ -48,6 +48,12 @@ const SponsorDetailPage = () => {
4848

4949
export default SponsorDetailPage;
5050

51+
const LogoImage = styled.img`
52+
background: white;
53+
color: black;
54+
max-width: 50%;
55+
`;
56+
5157
const Container = styled.div`
5258
display: flex;
5359
justify-content: center;

0 commit comments

Comments
 (0)