mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-11 13:59:11 +08:00
157 lines
5.7 KiB
HTML
157 lines
5.7 KiB
HTML
<!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">
|
|
<title>{% block title %}Ant Design{% endblock %}</title>
|
|
<link rel="icon" href="https://t.alipayobjects.com/images/T1QUBfXo4fXXXXXXXX.png" type="image/x-icon">
|
|
<link rel="shortcut icon" href="https://t.alipayobjects.com/images/T1QUBfXo4fXXXXXXXX.png" type="image/x-icon">
|
|
<link rel="stylesheet" href="/static/normalize.css">
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
<link href="http://fonts.useso.com/css?family=Raleway:600,500,400,300" rel="stylesheet" type="text/css">
|
|
<link rel="stylesheet" href="/static/tomorrow.css">
|
|
<script src="https://a.alipayobjects.com/jquery/jquery/1.11.1/jquery.js"></script>
|
|
<!-- react -->
|
|
<script src="https://t.alipayobjects.com/images/T12TdfXlpbXXXXXXXX.js"></script>
|
|
<script src="/static/script.js"></script>
|
|
</head>
|
|
<body class="{%- if post.filepath === 'README.md' %}index-page{%- endif %}">
|
|
<header id="header">
|
|
<a class="logo" href="/">
|
|
<img width="60" src="https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg">
|
|
Ant Design
|
|
</a>
|
|
<div class="search">
|
|
<form>
|
|
<input type="text" placeholder="search">
|
|
<button type="submit"></button>
|
|
</form>
|
|
</div>
|
|
<nav class="nav">
|
|
<span class="bar"></span>
|
|
<ul>
|
|
<li class="{%- if post.meta.filepath === 'README.md' %}current{%- endif %}">
|
|
<a href="/">首页</a>
|
|
</li>
|
|
<li class="{%- if post.filename === 'start' %}current{%- endif %}">
|
|
<a href="/docs/start">上手</a>
|
|
</li>
|
|
<li class="{%- if post.filename === 'design' %}current{%- endif %}">
|
|
<a href="/docs/design">设计</a>
|
|
</li>
|
|
<li class="{%- if post.meta.template === 'component' %}current{%- endif %}">
|
|
<a href="/components/button">组件</a>
|
|
</li>
|
|
<li class="{%- if post.filename === 'modes' %}current{%- endif %}">
|
|
<a href="/docs/modes">模式</a>
|
|
</li>
|
|
<li class="{%- if post.filename === 'download' %}current{%- endif %}">
|
|
<a href="/docs/cases">案例</a>
|
|
</li>
|
|
<li class="{%- if post.filename === 'download' %}current{%- endif %}">
|
|
<a href="/docs/download">下载</a>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
<div class="nav-phone-icon"></div>
|
|
</header>
|
|
{%- if post.filepath === 'README.md' %}
|
|
<!-- 首页 -->
|
|
<div class="main">
|
|
<div class="main-box" id="main">
|
|
<div class="banner-box">
|
|
<div id="bannerAnim"></div>
|
|
<div class="banner-img"></div>
|
|
<div class="banner-entry fn-hide">
|
|
<div class="entry-title">
|
|
Ant
|
|
</div>
|
|
<div class="entry-title">Design</div>
|
|
<div class="entry-slogan">下一个设计&前端框架</div>
|
|
<a class="entry-link" href="/docs/start">
|
|
<i class="iconfont-home icon-lego"></i>
|
|
开始使用
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script src="/static/easeljs-0.8.0.min.js"></script>
|
|
<script src="/static/TweenMax.min.js"></script>
|
|
<script src="/static/home.js"></script>
|
|
{%- else %}
|
|
<div class="main-wrapper">
|
|
{%- if post.meta.template === 'component' %}
|
|
{%- include "aside.html" %}
|
|
<section class="main-container">
|
|
{%- else %}
|
|
<section class="main-container main-container-center">
|
|
{%- endif %}
|
|
<article class="markdown">
|
|
<h1>
|
|
{{ post.title }} {{ post.meta.chinese }}
|
|
{%- if post.meta.API %}
|
|
<a class="api-link" href="http://{{ post.meta.API }}" target="_blank">
|
|
<i class="iconfont-home icon-externallink"></i>
|
|
API 使用说明
|
|
</a>
|
|
{%- endif %}
|
|
</h1>
|
|
{{ post.html }}
|
|
{%- if post.meta.template === 'component' %}
|
|
<h2 class="component-demos">
|
|
组件演示
|
|
<i class="iconfont-home icon-all" title="展开全部代码"></i>
|
|
{%- if post.meta.sketch %}
|
|
<a class="sketch-link" href="{{ post.meta.sketch }}" target="_blank">
|
|
<i class="iconfont-home icon-download"></i>
|
|
Sketch 下载
|
|
</a>
|
|
{%- endif %}
|
|
</h2>
|
|
<div class="code-boxes clearfix">
|
|
{%- set items = resource.pages|find_demo_in_component(post.meta.directory) %}
|
|
<div class="code-boxes-col">
|
|
{%- for item in items|odd %}
|
|
{%- set post = item.meta.filepath|parsePost %}
|
|
{%- include "code.html" %}
|
|
{%- endfor %}
|
|
</div>
|
|
<div class="code-boxes-col">
|
|
{%- for item in items|even %}
|
|
{%- set post = item.meta.filepath|parsePost %}
|
|
{%- include "code.html" %}
|
|
{%- endfor %}
|
|
</div>
|
|
</div>
|
|
{%- endif %}
|
|
</article>
|
|
</section>
|
|
</div>
|
|
{%- endif %}
|
|
<footer id="footer">
|
|
<ul>
|
|
<li>
|
|
<h2>GitHub</h2>
|
|
<a href="https://github.com/react-component/generator-rc">脚手架 - generator-rc</a>
|
|
<a href="http://react-component.github.io/badgeboard/">模块 - React Components</a>
|
|
</li>
|
|
<li>
|
|
<h2>关于我们</h2>
|
|
<a href="http://www.atatech.org/teams/79">博客 - Ant UED</a>
|
|
</li>
|
|
<li>
|
|
<h2>联系我们</h2>
|
|
<a href="https://github.com/ant-design/ant-design.github.io/issues">问题与建议 - Issues</a>
|
|
</li>
|
|
<li>
|
|
<h3>©2015 蚂蚁金服体验技术部出品</h3>
|
|
</li>
|
|
</ul>
|
|
</footer>
|
|
</body>
|
|
</html>
|