Skip to content

Commit 76a28c0

Browse files
committed
add home end
1 parent d802d31 commit 76a28c0

27 files changed

+641
-297
lines changed

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

github_deploy_key.enc

-3.17 KB
Binary file not shown.

gulpfile.js

Lines changed: 0 additions & 53 deletions
This file was deleted.

package.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,13 @@
1313
"antd": "next",
1414
"enquire-js": "^0.1.1",
1515
"github-api": "^3.0.0",
16+
"leancloud-storage": "^3.5.0",
1617
"react-document-title": "^2.0.1",
1718
"react-intl": "^2.3.0",
1819
"react-redux": "^5.0.6",
19-
"redux": "^3.7.2"
20+
"redux": "^3.7.2",
21+
"redux-logger": "^3.0.6",
22+
"redux-thunk": "^2.2.0"
2023
},
2124
"devDependencies": {
2225
"babel-cli": "^6.18.0",
@@ -50,11 +53,6 @@
5053
"eslint-plugin-markdown": "^1.0.0-beta.6",
5154
"eslint-plugin-react": "^7.0.1",
5255
"eslint-tinker": "^0.4.1",
53-
"gulp": "^3.9.1",
54-
"gulp-beautify": "^2.0.1",
55-
"gulp-merge-json": "^1.0.0",
56-
"gulp-util": "^3.0.8",
57-
"gulp-yaml": "^1.0.1",
5856
"pre-commit": "1.x",
5957
"rc-banner-anim": "^1.0.1",
6058
"rc-queue-anim": "^1.4.1",

scripts/compile.sh

Lines changed: 0 additions & 56 deletions
This file was deleted.

scripts/deploy.sh

Lines changed: 0 additions & 69 deletions
This file was deleted.

scripts/parse_yaml.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,4 @@
1-
.home {
2-
.header {
3-
box-shadow: 0 0 0 rgba(138, 166, 195, 0);
4-
position: absolute;
5-
width: 100%;
6-
background: transparent;
7-
z-index: 999;
8-
}
9-
.button {
10-
min-width: 136px;
11-
height: 40px;
12-
line-height: 40px;
13-
text-align: center;
14-
border-radius: 20px;
15-
display: inline-block;
16-
box-shadow: 0 0 0 fade(@home-button-shadow-color, 0);
17-
transition: box-shadow .3s @ease-out, transform .3s @ease-out;
18-
&:hover {
19-
transform: translateY(-4px);
20-
box-shadow: 0 4px 12px fade(@home-button-shadow-color, 55);
21-
}
22-
}
23-
}
1+
242

253
.banner {
264
background: @primary-color;

site/theme/static/common.less

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,29 @@ body {
1818
padding: 0 24px;
1919
max-width: 1200px;
2020
margin: auto;
21+
h1 {
22+
font-size: 32px;
23+
line-height: 45px;
24+
margin: 128px auto 120px;
25+
text-align: center;
26+
color: @text-color;
27+
}
2128
}
2229
}
30+
.header {
31+
box-shadow: 0 0 0 rgba(138, 166, 195, 0);
32+
position: absolute;
33+
width: 100%;
34+
background: transparent;
35+
z-index: 999;
36+
}
37+
.button {
38+
min-width: 136px;
39+
height: 40px;
40+
line-height: 40px;
41+
text-align: center;
42+
border-radius: 20px;
43+
display: inline-block;
44+
.mouseHover(@home-button-shadow-color);
45+
}
2346
}

site/theme/static/default.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,13 @@
22
@menu-item-border: 2px;
33
// 首页按钮投影色
44
@home-button-shadow-color: darken(@primary-color, 20%);
5+
6+
.mouseHover(@color, @x: 0, @y: 4px, @blur: 12px) {
7+
transform: translateY(0px);
8+
box-shadow: 0 0 0 fade(@color, 0);
9+
transition: box-shadow .3s @ease-in-out, transform .3s @ease-in-out;
10+
&:hover {
11+
transform: translateY(-4px);
12+
box-shadow: @x @y @blur fade(@color, 55);
13+
}
14+
}

0 commit comments

Comments
 (0)