Skip to content

Commit 08099c5

Browse files
committed
후원사 목록 페이지 변경
1 parent 40210e7 commit 08099c5

File tree

2 files changed

+18
-13
lines changed

2 files changed

+18
-13
lines changed

frontend/components/service/Sponsor/SponsorList.tsx

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { Link } from '../../core/SnsLink'
21
import React from 'react'
32
import styled, { useTheme } from 'styled-components'
43
import { ISponsorLevelItem, ISponsorList } from '../../../interfaces/ISponsor'
@@ -13,6 +12,7 @@ const SponsorLevel = styled.div`
1312
const SponsorGroup = styled.ul`
1413
display: flex;
1514
align-items: center;
15+
justify-content: center;
1616
flex-wrap: wrap;
1717
flex: auto;
1818
gap: 2rem;
@@ -23,13 +23,19 @@ const SponsorGroup = styled.ul`
2323

2424
const SponsorItem = styled.li`
2525
background: ${(props) => props.color ?? props.theme.colors.white};
26-
max-width: 200px;
26+
width: 200px;
2727
height: 200px;
28+
text-align: center;
2829
list-style: none;
2930
display: inline-flex;
3031
align-items: center;
3132
`
3233

34+
const SponsorLink = styled.a`
35+
display: block;
36+
margin: 0 auto;
37+
`
38+
3339
const SponsorImage = styled.img`
3440
width: 100%;
3541
display: inline-block;
@@ -76,19 +82,17 @@ const SponsorList = (props: { list: ISponsorList }) => {
7682
key={sponsor.slug}
7783
color={backgroundColor(sponsor.id)}
7884
>
79-
<Link
85+
<SponsorLink
8086
href={`/sponsor/list/${sponsor.id}`}
8187
>
82-
<a>
83-
<SponsorImage
84-
src={
85-
sponsor.logo_image ??
86-
DEFAULT_PROFILE_PATH
87-
}
88-
alt={sponsor.name}
89-
/>
90-
</a>
91-
</Link>
88+
<SponsorImage
89+
src={
90+
sponsor.logo_image ??
91+
DEFAULT_PROFILE_PATH
92+
}
93+
alt={sponsor.name}
94+
/>
95+
</SponsorLink>
9296
</SponsorItem>
9397
))}
9498
</SponsorGroup>

frontend/pages/sponsor/list/[id].tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ const SponsorImage = styled.img`
1919
margin: 0 auto;
2020
max-width: 400px;
2121
margin-top: 4rem;
22+
background: ${(props) => props.theme.colors.white};
2223
${media.mobile(`
2324
width: 100%;
2425
`)}

0 commit comments

Comments
 (0)