Skip to content

Commit

Permalink
Added Sponsors to Footer (#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
iLtc committed Feb 8, 2020
1 parent 5350bd5 commit 1c4b6a2
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 3 deletions.
77 changes: 75 additions & 2 deletions site_config/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,21 @@ export default {
],
},
copyright: 'Copyright © 2020 Wuahan2020',
sponsors: {
title: 'Sponsors',
list: [
{
text: 'Slack',
link: 'https://slack.com/',
target: '_blank'
},
{
text: 'Shimo',
link: 'https://shimo.im/',
target: '_blank'
}
]
}
},
'it-it': {
pageMenu: [
Expand Down Expand Up @@ -168,6 +183,21 @@ export default {
],
},
copyright: 'Copyright © 2020 Wuahan2020',
sponsors: {
title: 'Sponsors',
list: [
{
text: 'Slack',
link: 'https://slack.com/',
target: '_blank'
},
{
text: 'Shimo',
link: 'https://shimo.im/',
target: '_blank'
}
]
}
},
'ja-jp': {
pageMenu: [
Expand Down Expand Up @@ -247,6 +277,21 @@ export default {
],
},
copyright: 'Copyright © 2020 Wuahan2020',
sponsors: {
title: 'Sponsors',
list: [
{
text: 'Slack',
link: 'https://slack.com/',
target: '_blank'
},
{
text: 'Shimo',
link: 'https://shimo.im/',
target: '_blank'
}
]
}
},
'zh-cn': {
pageMenu: [
Expand Down Expand Up @@ -280,7 +325,6 @@ export default {
text: '产品',
link: '/zh-cn/blog/download.html',
},
,
{
key: 'mis',
text: '新型冠状病毒防疫信息平台',
Expand Down Expand Up @@ -326,6 +370,21 @@ export default {
],
},
copyright: 'Copyright © 2020 Wuhan2020',
sponsors: {
title: '赞助商',
list: [
{
text: 'Slack',
link: 'https://slack.com/',
target: '_blank'
},
{
text: '石墨文档',
link: 'https://shimo.im/',
target: '_blank'
}
]
}
},
'fr-fr': {
pageMenu: [
Expand Down Expand Up @@ -359,7 +418,6 @@ export default {
text: '产品',
link: '/fr-fr/blog/download.html',
},
,
{
key: 'mis',
text: '新型冠状病毒防疫信息平台',
Expand Down Expand Up @@ -405,5 +463,20 @@ export default {
],
},
copyright: 'Copyright © 2020 Wuhan2020',
sponsors: {
title: 'Sponsors',
list: [
{
text: 'Slack',
link: 'https://slack.com/',
target: '_blank'
},
{
text: 'Shimo',
link: 'https://shimo.im/',
target: '_blank'
}
]
}
},
};
12 changes: 11 additions & 1 deletion src/components/footer/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Footer extends React.Component {
<img src={getLink(logo)} />
<p className="docsite-power">website powered by docsite</p>
<div className="cols-container">
<div className="col col-12">
<div className="col col-6">
<h3>{dataSource.vision.title}</h3>
<p>{dataSource.vision.content}</p>
</div>
Expand All @@ -53,6 +53,16 @@ class Footer extends React.Component {
}
</dl>
</div>
<div className="col col-6">
<dl>
<dt>{dataSource.sponsors.title}</dt>
{
dataSource.sponsors.list.map((d, i) => (
<dd key={i}><a href={getLink(d.link)} target={d.target || '_self'}>{d.text}</a></dd>
))
}
</dl>
</div>
</div>
<div className="copyright"><span>{dataSource.copyright}</span></div>
</div>
Expand Down

0 comments on commit 1c4b6a2

Please sign in to comment.