File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed
frontend/components/service Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,6 @@ import { ITalkItem, ITalkTableList } from '../../../interfaces/IProgram'
33import styled from 'styled-components'
44import { format } from 'date-fns'
55import Link from 'next/link'
6- import DifficultyBadge from './DifficultyBadge'
76import Resources from '../../../data/constants/resources'
87
98const Table = styled . table `
Original file line number Diff line number Diff line change @@ -5,11 +5,20 @@ import { useTranslation } from 'react-i18next'
55import { Heading3 } from '../../../assets/styles/typo'
66import { DEFAULT_PROFILE_PATH } from '../../../data/constants/config'
77import { 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`
1213const 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 </ >
You can’t perform that action at this time.
0 commit comments