ant-design/theme/templates/layout.html

128 lines
4.4 KiB
HTML
Raw Normal View History

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-12 15:49:05 +08:00
<link rel="stylesheet" href="//at.alicdn.com/t/font_1429685559_8155303.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-08 14:57:59 +08:00
<script src="/static/script.js"></script>
2015-05-12 17:28:59 +08:00
<!-- react -->
<script src="https://t.alipayobjects.com/images/T12TdfXlpbXXXXXXXX.js"></script>
<!-- JSXTransformer -->
<script src="https://t.alipayobjects.com/images/T1jCFfXdNiXXXXXXXX.js"></script>
{%- if post.meta.template === 'component' %}
<script type="text/jsx" src="/static/code.jsx"></script>
{%- endif %}
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="/">
<img src="https://t.alipayobjects.com/images/T1.lRfXcxoXXXXXXXX.png">
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">
<ul>
2015-05-12 17:50:03 +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-09 18:52:17 +08:00
<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>
2015-05-07 18:50:36 +08:00
</li>
2015-05-09 18:33:14 +08:00
<li class="{%- if post.meta.template === 'component' %}current{%- endif %}">
<a href="/components/button">组件</a>
2015-05-07 18:50:36 +08:00
</li>
2015-05-09 18:33:14 +08:00
<li class="{%- if post.filename === 'modes' %}current{%- endif %}">
<a href="/docs/modes">模式</a>
2015-05-07 18:50:36 +08:00
</li>
2015-05-09 18:33:14 +08:00
<li class="{%- if post.filename === 'cases' %}current{%- endif %}">
<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>
<div class="banner-text"></div>
</div>
</div>
</div>
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-09 18:40:01 +08:00
{%- if post.meta.template === 'component' %}
{%- include "aside.html" %}
<section class="main-container">
{%- else %}
<section class="main-container-center">
{%- endif %}
2015-05-09 18:16:36 +08:00
<article class="markdown">
2015-05-12 15:49:05 +08:00
<h1>
{{ post.title }}
2015-05-12 16:15:39 +08:00
{%- if post.meta.API %}
2015-05-12 15:49:05 +08:00
<a class="api-link" href="http://{{ post.meta.API }}" target="_blank">
<i class="iconfont icon-externallink"></i>
API 使用说明
</a>
2015-05-12 16:15:39 +08:00
{%- endif %}
2015-05-12 15:49:05 +08:00
</h1>
2015-05-09 18:16:36 +08:00
{{ post.html }}
2015-05-15 16:00:08 +08:00
<h2>组件演示</h2>
2015-05-12 17:28:59 +08:00
<div id="code-boxes"></div>
<script type="text/jsx">
React.render(
2015-05-15 16:00:08 +08:00
<CodeBoxes>
<CodeBox src="components/button/demo/basic.html"></CodeBox>
<CodeBox src="components/button/demo/basic.html"></CodeBox>
</CodeBoxes>,
2015-05-12 17:28:59 +08:00
document.getElementById('code-boxes')
);
</script>
2015-05-09 18:16:36 +08:00
</article>
</section>
2015-05-07 20:54:19 +08:00
{%- endif %}
2015-05-07 18:50:36 +08:00
<footer id="footer">
<ul>
<li>
2015-05-12 15:56:21 +08:00
<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>
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>