Skip to content

Commit 7c9013e

Browse files
committed
添加编辑按钮
1 parent c37ccaf commit 7c9013e

File tree

5 files changed

+28
-9
lines changed

5 files changed

+28
-9
lines changed

packing/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"main":"main.83d6de6a.js","vendor":"vendor.5bdb61b6.js"}
1+
{"main":"main.25a5692b.js","vendor":"vendor.d7ae4194.js"}

src/app/communities.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ module.exports = React.createClass
1515
div style: style.widget.title, '社区'
1616
link 'CNode.js 中文社区', 'http://cnodejs.org'
1717
link 'CNode.js 中文社区, 微博', 'http://weibo.com/cnodejs'
18-
div style: style.widget.group, 'QQ 群: ???'
19-
div style: style.widget.group, '微信: ???'
18+
div style: style.widget.group, 'QQ 群: 277703721'
19+
div style: style.widget.group, '微信群: ???'

src/app/footer.coffee

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ React = require 'react'
33

44
style = require '../style'
55

6-
{div} = React.DOM
6+
{div, span} = React.DOM
77

88
module.exports = React.createClass
99
displayName: 'footer'
1010

11+
onEdit: ->
12+
window.open 'https://github.com/cnodejs/nav.cnodejs.org'
13+
1114
render: ->
1215
div style: style.layout.footer,
13-
'浙ICP备14043687号-2'
16+
div style: style.widget.forkButton, onClick: @onEdit, '✎ 添加内容'
17+
span style: style.widget.copyright, '浙ICP备14043687号-2'

src/style/layout.coffee

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ exports.column =
2222

2323
exports.footer =
2424
display: 'flex'
25-
flexDirection: 'row'
25+
flexDirection: 'column'
2626
alignItems: 'center'
2727
justifyContent: 'center'
28-
fontSize: 13
29-
color: hsl 0, 0, 80
30-
height: 100

src/style/widget.coffee

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,21 @@ exports.group =
1919
exports.link =
2020
lineHeight: '40px'
2121
display: 'block'
22+
23+
exports.copyright =
24+
fontSize: 13
25+
color: hsl 0, 0, 80
26+
height: 100
27+
28+
exports.forkButton =
29+
backgroundColor: hsl 100, 70, 50
30+
color: 'white'
31+
display: 'flex'
32+
alignItems: 'center'
33+
justifyContent: 'center'
34+
borderRadius: 5
35+
height: '46px'
36+
width: '200px'
37+
marginBottom: '40px'
38+
fontSize: '20px'
39+
cursor: 'pointer'

0 commit comments

Comments
 (0)