提交 97ccc96a 编写于 作者: A afc163

update site style

上级 d7ff8034
......@@ -42,6 +42,38 @@ var Datepicker = antd.Datepicker;
React.render(<Datepicker />, mountNode);
```
## 版本
- 稳定版:<span class="versions" id="stable-version"></span>
- 开发版:<span class="versions" id="latest-version"></span>
<style>
.versions {
font-weight: bold;
color: #C05B4D;
font-family: Consolas;
margin-left: 0.3em;
background: #FFF1E7;
padding: 2px 5px;
border-radius: 3px;
}
</style>
<script>
$('#latest-version').html(antdVersion.latest);
$('#latest-links a').each(function(i, item) {
$(item).attr('href', $(item).attr('href').replace('dist/antd', 'dist/antd-' + antdVersion.latest));
});
if (antdVersion.stable) {
$('#stable-version').html(antdVersion.stable);
$('#stable-link').attr('href', 'https://github.com/ant-design/ant-design/releases/tag/' + antdVersion.stable);
} else {
$('#stable-version').html('暂无');
$('#stable-link').hide();
}
</script>
## 链接
- [首页](http://ant.design/)
......
......@@ -17,11 +17,10 @@
<div class="entry-slogan">
{{ config.site.description }}
</div>
<a class="entry-link" href="/docs/introduce">
<a class="entry-link" href="/spec/introduce">
<i class="iconfont-home icon-lego"></i>
开始使用
</a>
<div class="entry-version">v{{config.package.stableVersion}}</div>
</div>
</div>
</div>
......
......@@ -17,6 +17,12 @@ Ant Design 源自蚂蚁金服体验技术部的后台产品开发,我们的设
- 蚂蚁金服
## 前端实现
我们采用 [React](http://facebook.github.io/react/) 封装了一套 Ant Design 的组件库。
- [React](/docs/introduce)
## 如何贡献
我们欢迎任何形式的贡献,有任何建议或意见您可以进行 [Pull Request](https://gith
我们欢迎任何形式的贡献,有任何建议或意见您可以进行 [Pull Request](https://github.com/ant-design/ant-design/pulls),或者给我们[提问](https://github.com/ant-design/ant-design/issues)
......@@ -1868,14 +1868,13 @@ footer ul li > a {
}
a.entry-link {
margin-top: 15px;
margin-top: 30px;
border: 1px solid rgba(95, 108, 119, 0.3);
border-radius: 50px;
color: #5F6C77;
display: block;
display: inline-block;
text-align: center;
padding: 8px 0;
width: 140px;
padding: 8px 20px;
transition: border 0.3s ease;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册