File tree Expand file tree Collapse file tree 2 files changed +18
-13
lines changed
Expand file tree Collapse file tree 2 files changed +18
-13
lines changed Original file line number Diff line number Diff line change 1- import { Link } from '../../core/SnsLink'
21import React from 'react'
32import styled , { useTheme } from 'styled-components'
43import { ISponsorLevelItem , ISponsorList } from '../../../interfaces/ISponsor'
@@ -13,6 +12,7 @@ const SponsorLevel = styled.div`
1312const 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
2424const 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+
3339const 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 >
Original file line number Diff line number Diff 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 ` ) }
You can’t perform that action at this time.
0 commit comments