ant-design/theme/templates/layout.html

114 lines
4.2 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-27 16:39:51 +08:00
<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">
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>
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-06-01 15:43:05 +08:00
<img width="60" style="margin-top: -7px" src="https://t.alipayobjects.com/images/rmsweb/T1B9hfXcdvXXXXXXXX.svg">
2015-05-16 20:35:50 +08:00
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-06-01 16:11:51 +08:00
<li class="{%- if post.filename === 'cases' %}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>
2015-06-01 15:43:05 +08:00
<div class="entry-slogan">下一代设计&前端框架</div>
2015-05-26 18:28:12 +08:00
<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 }}
2015-06-02 12:11:49 +08:00
{%- if post.meta.template === 'component' && !post.meta.nodemos %}
2015-05-29 22:13:39 +08:00
{%- include "demos.html" %}
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-06-02 16:57:01 +08:00
{%- include "footer.html" %}
2015-05-07 18:50:36 +08:00
</body>
</html>