Skip to content

Commit

Permalink
Add turing books.
Browse files Browse the repository at this point in the history
  • Loading branch information
xeodou committed Aug 24, 2016
1 parent a639cae commit 9d22209
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 8 deletions.
Binary file added build/assets/images/sponsors/turing.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions intl/zh-cn.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ export default {
tickets: '购票',
buy_tickets: '购票参会',

Gold: '金牌赞助商',
Silver: '银牌赞助商',
Bronze: '铜牌赞助商',
'Speaker Sponsor': '讲师行程赞助商',
'Special Sponsor': '特别赞助商',
Media: '合作媒体',

ningjs: '宁JS',
jsconf_china_2016: 'JavaScript中国开发者大会2016',
nanjing: '南京',
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default class Header extends Component {
{Logo}
<NavTab __={this.props.__} query={query}/>
{Lang}
<a className='button green tickets' href='http://www.bagevent.com/event/58905' target='new'>{__('tickets')}</a>
<a className='button green tickets' href='http://www.bagevent.com/event/58905' target='new'>{__('tickets')}</a>
</header>
<header id='sub-header' className='container'>
{Logo}
Expand Down
8 changes: 4 additions & 4 deletions src/Components/sponsors/LevelItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ import React, {Component} from 'react'

export default class LevelItem extends Component {
render () {
const {level, data} = this.props
const {level, data, __} = this.props
const sponsorArray = data.map((sponsor, i) => {
return (
<a key={i} href={sponsor.link} target='new' className={sponsor.class}><img src={sponsor.logo} /></a>
)
})
return (
<div className='level'>
<h3>{ level }</h3>
<h3>{ __(level) }</h3>
<div className='list'>
{ sponsorArray }
{ sponsorArray }
</div>
</div>
)
}
}
}
4 changes: 2 additions & 2 deletions src/Components/sponsors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export default class Index extends Component {

render() {
const { __, query } = this.props

const levels = Object.keys(sponsorData).map((level, i) => {
return (<LevelItem key={i} level={level} data={sponsorData[level]} />)
return (<LevelItem __={__} key={i} level={level} data={sponsorData[level]} />)
})
return (
<div className='sponsors-container'>
Expand Down
6 changes: 5 additions & 1 deletion src/Components/sponsors/sponsors.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"logo": "/assets/images/sponsors/now_live.png",
"link": "http://now.qq.com/"
}],
"Media": [{
"Media": [{
"name": "Segmentfault",
"logo": "/assets/images/sponsors/sf.png",
"link": "https://segmentfault.com/"
Expand All @@ -86,5 +86,9 @@
"name": "cnodejs",
"logo": "/assets/images/sponsors/cnodejs.png",
"link": "https://cnodejs.org/"
}, {
"name": "turing",
"logo": "/assets/images/sponsors/turing.jpeg",
"link": "http://www.ituring.com.cn/"
}]
}

0 comments on commit 9d22209

Please sign in to comment.