Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wanjj_1210
ant-design
提交
4647e839
A
ant-design
项目概览
wanjj_1210
/
ant-design
与 Fork 源项目一致
从无法访问的项目Fork
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4647e839
编写于
1月 07, 2016
作者:
A
afc163
浏览文件
操作
浏览文件
下载
差异文件
fix home page style
上级
48f915de
6d885bb1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
41 addition
and
18 deletion
+41
-18
scripts/home.js
scripts/home.js
+22
-11
site/static/style.css
site/static/style.css
+3
-3
site/templates/home.html
site/templates/home.html
+16
-4
未找到文件。
scripts/home.js
浏览文件 @
4647e839
...
...
@@ -45,11 +45,17 @@ class Banner extends React.Component {
render
()
{
return
(
<
QueueAnim
className
=
"
banner-text-wrapper
"
type
=
{
this
.
typeFunc
}
delay
=
{
300
}
>
<
h1
key
=
"
h1
"
>
ANT
DESIGN
<
/h1
>
<
p
key
=
"
content
"
>
一套
UI
设计语言
<
/p
>
<
a
key
=
"
button
"
href
=
"
/docs/spec/introduce
"
><
Icon
type
=
"
smile-circle
"
/>
开始探索
<
/a
>
<
/QueueAnim>
)
<
div
>
<
QueueAnim
className
=
"
banner-text-wrapper
"
type
=
{
this
.
typeFunc
}
delay
=
{
300
}
>
<
h1
key
=
"
h1
"
>
ANT
DESIGN
<
/h1
>
<
p
key
=
"
content
"
>
一个
UI
设计语言
<
/p
>
<
a
key
=
"
button
"
href
=
"
/docs/spec/introduce
"
><
Icon
type
=
"
smile-circle
"
/>
开始探索
<
/a
>
<
/QueueAnim
>
<
TweenOne
className
=
'
down
'
vars
=
{[{
opacity
:
1
},{
y
:
10
,
duration
:
800
,
yoyo
:
true
,
repeat
:
-
1
}]}
>
<
Icon
type
=
"
down
"
/>
<
/TweenOne
>
<
/div
>
)
}
}
...
...
@@ -64,7 +70,8 @@ ReactDOM.render((
<
QueueAnim
className
=
"
text-wrapper
"
delay
=
{
300
}
key
=
"
text
"
duration
=
{
550
}
leaveReverse
>
<
h1
key
=
"
h1
"
>
实例
/
优秀的设计实践
<
/h1
>
<
p
key
=
"
p
"
style
=
{{
maxWidth
:
310
}}
>
近一年的蚂蚁中后台设计实践
,
积累了大量的优秀案例
。
<
/p
>
<
div
key
=
"
button
"
><
Button
type
=
"
primary
"
size
=
"
large
"
onClick
=
{()
=>
{
window
.
location
.
href
=
'
/docs/practice/cases
'
}}
>
了解更多
<
Icon
type
=
"
right
"
/><
/Button></
div
>
<
div
key
=
"
button
"
><
Button
type
=
"
primary
"
size
=
"
large
"
onClick
=
{()
=>
{
window
.
location
.
href
=
'
/docs/practice/cases
'
}}
>
了解更多
<
Icon
type
=
"
right
"
/><
/Button></
div
>
<
/QueueAnim
>
<
/ScrollOverPack
>
),
page1
);
...
...
@@ -75,7 +82,9 @@ ReactDOM.render((
<
QueueAnim
className
=
"
text-wrapper left-text
"
delay
=
{
300
}
key
=
"
text
"
duration
=
{
550
}
type
=
'
bottom
'
leaveReverse
>
<
h1
key
=
"
h1
"
>
设计模式库
<
/h1
>
<
p
key
=
"
p
"
style
=
{{
maxWidth
:
260
}}
>
为中后台设计中反复出现的问题提供一套相应的解决方案
<
/p
>
<
div
key
=
"
button
"
><
Button
type
=
"
primary
"
size
=
"
large
"
onClick
=
{()
=>
{
window
.
location
.
href
=
'
/docs/pattern/navigation
'
}}
>
了解更多
<
Icon
type
=
"
right
"
/><
/Button></
div
>
<
div
key
=
"
button
"
><
Button
type
=
"
primary
"
size
=
"
large
"
onClick
=
{()
=>
{
window
.
location
.
href
=
'
/docs/pattern/navigation
'
}}
>
了解更多
<
Icon
type
=
"
right
"
/><
/Button
>
<
/div
>
<
/QueueAnim
>
<
TweenOne
key
=
"
image
"
className
=
"
image2 image-wrapper
"
vars
=
{{
x
:
0
,
opacity
:
1
,
delay
:
300
,
duration
:
550
}}
style
=
{{
transform
:
'
translateX(100px)
'
,
opacity
:
0
}}
/
>
...
...
@@ -84,20 +93,22 @@ ReactDOM.render((
//page3
ReactDOM
.
render
((
<
ScrollOverPack
className
=
"
content-wrapper
"
>
<
ScrollOverPack
className
=
"
content-wrapper
"
>
<
TweenOne
key
=
"
image
"
className
=
"
image3 image-wrapper
"
vars
=
{{
x
:
0
,
opacity
:
1
,
duration
:
550
}}
style
=
{{
transform
:
'
translateX(-100px)
'
,
opacity
:
0
}}
/
>
<
QueueAnim
className
=
"
text-wrapper
"
delay
=
{
300
}
key
=
"
text
"
duration
=
{
550
}
leaveReverse
style
=
{{
top
:
'
40%
'
}}
>
<
h1
key
=
"
h1
"
>
数十个
基础设计组件
<
/h1
>
<
h1
key
=
"
h1
"
>
40
+
基础设计组件
<
/h1
>
<
p
key
=
"
p
"
style
=
{{
maxWidth
:
280
}}
>
为中后台设计中反复出现的问题提供一套完整的解决方案
<
/p
>
<
div
key
=
"
button
"
><
Button
type
=
"
primary
"
size
=
"
large
"
onClick
=
{()
=>
{
window
.
location
.
href
=
'
/docs/react/introduce
'
}}
>
了解更多
<
Icon
type
=
"
right
"
/><
/Button></
div
>
<
div
key
=
"
button
"
><
Button
type
=
"
primary
"
size
=
"
large
"
onClick
=
{()
=>
{
window
.
location
.
href
=
'
/docs/react/introduce
'
}}
>
了解更多
<
Icon
type
=
"
right
"
/><
/Button></
div
>
<
/QueueAnim
>
<
/ScrollOverPack
>
),
page3
);
//page4
ReactDOM
.
render
((
<
ScrollOverPack
className
=
"
content-wrapper
"
>
<
ScrollOverPack
className
=
"
content-wrapper
"
>
<
QueueAnim
className
=
"
text-wrapper-bottom
"
delay
=
{
300
}
key
=
"
text
"
duration
=
{
550
}
leaveReverse
type
=
"
bottom
"
>
<
h1
key
=
"
h1
"
>
微小
·
确定
·
幸福
<
/h1
>
...
...
site/static/style.css
浏览文件 @
4647e839
...
...
@@ -89,7 +89,7 @@ a.logo {
line-height
:
40px
;
margin
:
17px
0
17px
4%
;
text-transform
:
uppercase
;
font-size
:
1
6
px
;
font-size
:
1
4
px
;
font-family
:
"Hiragino Sans GB"
,
"Microsoft YaHei"
,
"微软雅黑"
,
sans-serif
;
color
:
#2db7f5
;
width
:
219px
;
...
...
@@ -103,9 +103,9 @@ a.logo {
.search
{
float
:
left
;
height
:
2
2
px
;
height
:
2
0
px
;
padding
:
0px
0
0
30px
;
margin
:
32
px
auto
0
;
margin
:
28
px
auto
0
;
border-left
:
1px
solid
#EBEDEE
;
position
:
relative
;
}
...
...
site/templates/home.html
浏览文件 @
4647e839
...
...
@@ -12,11 +12,15 @@
header
{
position
:
fixed
;
z-index
:
999
;
background
:
rgba
(
0
,
0
,
0
,
0.7
5
);
background
:
rgba
(
0
,
0
,
0
,
0.2
5
);
border-bottom
:
1px
solid
transparent
;
transition
:
border
.5s
cubic-bezier
(
0.455
,
0.03
,
0.515
,
0.955
),
background
.5s
cubic-bezier
(
0.455
,
0.03
,
0.515
,
0.955
);
}
header
.nav
ul
li
a
{
color
:
#eee
;
}
.global-hint
{
display
:
none
;
}
...
...
@@ -43,8 +47,6 @@
.search
{
border-left-color
:
rgba
(
235
,
237
,
238
,
.5
);
height
:
20px
;
margin-top
:
28px
;
transition
:
border
0.5s
cubic-bezier
(
0.455
,
0.03
,
0.515
,
0.955
);
}
...
...
@@ -128,6 +130,15 @@
margin-left
:
15px
;
}
.down
{
text-align
:
center
;
position
:
absolute
;
bottom
:
30px
;
color
:
rgba
(
255
,
255
,
255
,
.75
);
left
:
50%
;
margin-left
:
-7px
;
}
section
{
height
:
100%
;
width
:
100%
;
...
...
@@ -224,7 +235,8 @@
footer
ul
li
>
h2
{
color
:
#656975
;
}
footer
ul
li
>
a
{
footer
ul
li
>
a
{
color
:
#BEC4C8
}
</style>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录