Skip to content

Commit f00060b

Browse files
authored
Merge pull request #117 from pythonkr/devdev
키스톤 디자인 수정
2 parents 6595597 + 2dbd554 commit f00060b

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

frontend/components/service/Program/TalkTable.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { ITalkItem, ITalkTableList } from '../../../interfaces/IProgram'
33
import styled from 'styled-components'
44
import { format } from 'date-fns'
55
import Link from 'next/link'
6-
import DifficultyBadge from './DifficultyBadge'
76
import Resources from '../../../data/constants/resources'
87

98
const Table = styled.table`

frontend/components/service/Sponsor/SponsorList.tsx

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,20 @@ import { useTranslation } from 'react-i18next'
55
import { Heading3 } from '../../../assets/styles/typo'
66
import { DEFAULT_PROFILE_PATH } from '../../../data/constants/config'
77
import { media } from '../../../assets/styles/mixin'
8+
import { SponsorLevel } from '../../../data/enums/SponsorLevel'
89

9-
const SponsorLevel = styled.div`
10+
const SponsorLevelContainer = styled.div`
1011
margin-bottom: 6rem;
1112
`
1213
const SponsorGroup = styled.ul`
14+
${(props) => {
15+
if (props.keynote) {
16+
return `
17+
width: 100%;
18+
background: ${props.theme.colors.white};
19+
`
20+
}
21+
}}
1322
display: flex;
1423
align-items: center;
1524
justify-content: center;
@@ -72,18 +81,22 @@ const SponsorList = (props: {
7281
return theme.colors.white
7382
}
7483

84+
const isKeynote = (key: string) => {
85+
return (key as SponsorLevel) === SponsorLevel.LEVEL_1
86+
}
87+
7588
return (
7689
<>
7790
{Object.keys(sponsorList)
7891
.sort()
79-
.map((key) => {
92+
.map((key, index) => {
8093
const item = sponsorList[key]
8194
return (
82-
<SponsorLevel key={key}>
95+
<SponsorLevelContainer key={`sponsor-${index}`}>
8396
<Heading3 useGradient={useGradient}>
8497
{item.name}
8598
</Heading3>
86-
<SponsorGroup>
99+
<SponsorGroup keynote={isKeynote(key)}>
87100
{item.list.map((sponsor) => (
88101
<SponsorItem
89102
key={sponsor.slug}
@@ -103,7 +116,7 @@ const SponsorList = (props: {
103116
</SponsorItem>
104117
))}
105118
</SponsorGroup>
106-
</SponsorLevel>
119+
</SponsorLevelContainer>
107120
)
108121
})}
109122
</>

0 commit comments

Comments
 (0)