2015-05-07 18:50:36 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
|
<meta name="format-detection" content="telephone=no">
|
2015-05-12 17:50:03 +08:00
|
|
|
<title>{% block title %}Ant Design{% endblock %}</title>
|
2015-05-12 15:49:05 +08:00
|
|
|
<link rel="stylesheet" href="/static/normalize.css">
|
2015-05-08 14:57:59 +08:00
|
|
|
<link rel="stylesheet" href="/static/style.css">
|
2015-05-16 21:11:58 +08:00
|
|
|
<link href="http://fonts.useso.com/css?family=Raleway:600,500,400,300" rel="stylesheet" type="text/css">
|
2015-05-09 18:24:25 +08:00
|
|
|
<link rel="stylesheet" href="/static/tomorrow.css">
|
2015-05-08 12:11:14 +08:00
|
|
|
<script src="https://a.alipayobjects.com/jquery/jquery/1.11.1/jquery.js"></script>
|
2015-05-12 17:28:59 +08:00
|
|
|
<!-- react -->
|
|
|
|
<script src="https://t.alipayobjects.com/images/T12TdfXlpbXXXXXXXX.js"></script>
|
2015-05-21 20:36:13 +08:00
|
|
|
<script src="/static/script.js"></script>
|
|
|
|
<script src="/dist/index.js"></script>
|
2015-05-07 18:50:36 +08:00
|
|
|
</head>
|
2015-05-11 15:52:24 +08:00
|
|
|
<body class="{%- if post.filepath === 'README.md' %}index-page{%- endif %}">
|
2015-05-07 18:50:36 +08:00
|
|
|
<header id="header">
|
2015-05-08 20:45:08 +08:00
|
|
|
<a class="logo" href="/">
|
2015-05-16 20:35:50 +08:00
|
|
|
<img width="60" src="https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg">
|
|
|
|
Ant Design
|
2015-05-07 18:50:36 +08:00
|
|
|
</a>
|
|
|
|
<div class="search">
|
|
|
|
<form>
|
|
|
|
<input type="text" placeholder="search">
|
|
|
|
<button type="submit"></button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<nav class="nav">
|
2015-05-27 10:35:37 +08:00
|
|
|
<span class="bar"></span>
|
2015-05-07 18:50:36 +08:00
|
|
|
<ul>
|
2015-05-25 19:30:25 +08:00
|
|
|
<li class="{%- if post.meta.filepath === 'README.md' %}current{%- endif %}">
|
2015-05-09 18:33:14 +08:00
|
|
|
<a href="/">首页</a>
|
2015-05-07 18:50:36 +08:00
|
|
|
</li>
|
2015-05-25 19:30:25 +08:00
|
|
|
<li class="{%- if post.filename === 'start' %}current{%- endif %}">
|
2015-05-09 18:52:17 +08:00
|
|
|
<a href="/docs/start">上手</a>
|
|
|
|
</li>
|
2015-05-25 19:30:25 +08:00
|
|
|
<li class="{%- if post.filename === 'design' %}current{%- endif %}">
|
2015-05-09 18:52:17 +08:00
|
|
|
<a href="/docs/design">设计</a>
|
2015-05-07 18:50:36 +08:00
|
|
|
</li>
|
2015-05-25 19:30:25 +08:00
|
|
|
<li class="{%- if post.meta.template === 'component' %}current{%- endif %}">
|
2015-05-09 18:33:14 +08:00
|
|
|
<a href="/components/button">组件</a>
|
2015-05-07 18:50:36 +08:00
|
|
|
</li>
|
2015-05-25 19:30:25 +08:00
|
|
|
<li class="{%- if post.filename === 'modes' %}current{%- endif %}">
|
2015-05-09 18:33:14 +08:00
|
|
|
<a href="/docs/modes">模式</a>
|
2015-05-07 18:50:36 +08:00
|
|
|
</li>
|
2015-05-25 19:30:25 +08:00
|
|
|
<li class="{%- if post.filename === 'download' %}current{%- endif %}">
|
2015-05-09 18:33:14 +08:00
|
|
|
<a href="/docs/cases">案例</a>
|
2015-05-07 18:50:36 +08:00
|
|
|
</li>
|
2015-05-09 18:33:14 +08:00
|
|
|
<li class="{%- if post.filename === 'download' %}current{%- endif %}">
|
|
|
|
<a href="/docs/download">下载</a>
|
2015-05-07 18:50:36 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</nav>
|
|
|
|
<div class="nav-phone-icon"></div>
|
|
|
|
</header>
|
2015-05-11 15:52:24 +08:00
|
|
|
{%- if post.filepath === 'README.md' %}
|
|
|
|
<!-- 首页 -->
|
2015-05-07 20:54:19 +08:00
|
|
|
<div class="main">
|
|
|
|
<div class="main-box" id="main">
|
|
|
|
<div class="banner-box">
|
|
|
|
<div id="bannerAnim"></div>
|
|
|
|
<div class="banner-img"></div>
|
2015-05-26 18:28:12 +08:00
|
|
|
<div class="banner-entry fn-hide">
|
|
|
|
<div class="entry-title">
|
|
|
|
Ant
|
|
|
|
</div>
|
|
|
|
<div class="entry-title">Design</div>
|
|
|
|
<div class="entry-slogan">Design for ease.</div>
|
|
|
|
<a class="entry-link" href="/docs/start">
|
2015-05-26 22:12:11 +08:00
|
|
|
<i class="iconfont-home icon-lego"></i>
|
2015-05-26 18:28:12 +08:00
|
|
|
开始使用
|
|
|
|
</a>
|
|
|
|
</div>
|
2015-05-07 20:54:19 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-05-26 18:28:12 +08:00
|
|
|
<script src="/static/easeljs-0.8.0.min.js"></script>
|
|
|
|
<script src="/static/TweenMax.min.js"></script>
|
2015-05-09 15:39:06 +08:00
|
|
|
<script src="/static/home.js"></script>
|
2015-05-07 21:01:15 +08:00
|
|
|
{%- else %}
|
2015-05-15 18:03:27 +08:00
|
|
|
<div class="main-wrapper">
|
2015-05-09 18:40:01 +08:00
|
|
|
{%- if post.meta.template === 'component' %}
|
|
|
|
{%- include "aside.html" %}
|
|
|
|
<section class="main-container">
|
|
|
|
{%- else %}
|
2015-05-16 16:05:22 +08:00
|
|
|
<section class="main-container main-container-center">
|
2015-05-09 18:40:01 +08:00
|
|
|
{%- endif %}
|
2015-05-16 16:05:22 +08:00
|
|
|
<article class="markdown">
|
|
|
|
<h1>
|
2015-05-22 18:45:02 +08:00
|
|
|
{{ post.title }} {{ post.meta.chinese }}
|
2015-05-16 16:05:22 +08:00
|
|
|
{%- if post.meta.API %}
|
|
|
|
<a class="api-link" href="http://{{ post.meta.API }}" target="_blank">
|
2015-05-26 18:07:50 +08:00
|
|
|
<i class="iconfont-home icon-externallink"></i>
|
2015-05-16 16:05:22 +08:00
|
|
|
API 使用说明
|
|
|
|
</a>
|
|
|
|
{%- endif %}
|
|
|
|
</h1>
|
|
|
|
{{ post.html }}
|
|
|
|
{%- if post.meta.template === 'component' %}
|
2015-05-16 16:20:49 +08:00
|
|
|
<h2 class="component-demos">
|
|
|
|
组件演示
|
2015-05-26 18:07:50 +08:00
|
|
|
<i class="iconfont-home icon-all" title="展开全部代码"></i>
|
2015-05-16 16:20:49 +08:00
|
|
|
</h2>
|
2015-05-25 18:15:41 +08:00
|
|
|
<div class="code-boxes waterfall" data-col-min-width="400"
|
|
|
|
data-default-container-width="800"
|
|
|
|
data-autoresize="true">
|
2015-05-18 17:33:42 +08:00
|
|
|
{%- set items = resource.pages|find_demo_in_component(post.meta.directory) %}
|
|
|
|
{%- for item in items %}
|
|
|
|
{%- set post = item.meta.filepath|parsePost %}
|
|
|
|
{%- include "code.html" %}
|
|
|
|
{%- endfor %}
|
2015-05-16 16:05:22 +08:00
|
|
|
</div>
|
2015-05-12 16:15:39 +08:00
|
|
|
{%- endif %}
|
2015-05-15 18:03:27 +08:00
|
|
|
</article>
|
|
|
|
</section>
|
|
|
|
</div>
|
2015-05-07 20:54:19 +08:00
|
|
|
{%- endif %}
|
2015-05-25 18:15:41 +08:00
|
|
|
{% block waterfall %}{% endblock %}
|
2015-05-07 18:50:36 +08:00
|
|
|
<footer id="footer">
|
|
|
|
<ul>
|
|
|
|
<li>
|
2015-05-16 20:56:38 +08:00
|
|
|
<h2>GitHub</h2>
|
2015-05-12 15:56:21 +08:00
|
|
|
<a href="https://github.com/react-component/generator-rc">脚手架 - generator-rc</a>
|
|
|
|
<a href="http://react-component.github.io/badgeboard/">模块 - React Components</a>
|
2015-05-07 18:50:36 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<h2>关于我们</h2>
|
2015-05-12 15:56:21 +08:00
|
|
|
<a href="http://www.atatech.org/teams/79">博客 - Ant UED</a>
|
2015-05-07 18:50:36 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<h2>联系我们</h2>
|
2015-05-12 15:56:21 +08:00
|
|
|
<a href="https://github.com/ant-design/ant-design.github.io/issues">问题与建议 - Issues</a>
|
2015-05-07 18:50:36 +08:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-05-12 15:56:21 +08:00
|
|
|
<h3>©2015 蚂蚁金服体验技术部出品</h3>
|
2015-05-07 18:50:36 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</footer>
|
|
|
|
</body>
|
|
|
|
</html>
|