Skip to content

Commit

Permalink
init: update site
Browse files Browse the repository at this point in the history
  • Loading branch information
warmhug committed Jun 6, 2018
1 parent a030fb1 commit d6973b5
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 25 deletions.
9 changes: 0 additions & 9 deletions docs/react/introduce.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,6 @@ The following two ways used to load the **only components you used**, select one
- Stable: [![npm package](http://img.shields.io/npm/v/antd-mobile-rn.svg?style=flat-square)](http://npmjs.com/package/antd-mobile-rn)
- Next: [![npm package](https://img.shields.io/npm/v/antd-mobile-rn/next.svg)](http://npmjs.com/package/antd-mobile-rn)

## Size

- Components are loaded on demand, in other words, components that are not imported are not packed.

## Environment Support

- `iOS`
- `Android 4.0+`

## Links

- [Home Page](https://rn.mobile.ant.design/)
Expand Down
9 changes: 0 additions & 9 deletions docs/react/introduce.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,6 @@ AppRegistry.registerComponent('HelloWorldApp', () => HelloWorldApp);
- 稳定版:[![npm package](http://img.shields.io/npm/v/antd-mobile-rn.svg?style=flat-square)](http://npmjs.com/package/antd-mobile-rn)
- 开发版:[![npm package](https://img.shields.io/npm/v/antd-mobile-rn/next.svg)](http://npmjs.com/package/antd-mobile-rn)

## 体积

- 按需加载:只需引入业务中需要的组件即可,未 import 进来的组件不会打包进来。

## 浏览器支持

- `iOS`
- `Android 4.0+`

## 链接

- [首页](https://rn.mobile.ant.design/)
Expand Down
3 changes: 2 additions & 1 deletion site/desktop/src/en-US.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ module.exports = {
'app.header.menu.home': 'Home',
'app.header.menu.components': 'Components',
'app.header.menu.design': 'Specification',
'app.header.menu.web': 'Web Components',
'app.header.menu.pc': 'Desktop',
'app.header.lang': '中文',
'app.home.slogan': 'Mobile Design Specification',
'app.home.epitomize': 'A UI component library based on Preact / React / React Native',
'app.home.epitomize': 'A UI component library based on React Native',
'app.home.centerStart': 'Start Exploring',
'app.home.qrtip': 'Scan QR Code',
'app.home.s2_title': 'Understand what you need',
Expand Down
10 changes: 5 additions & 5 deletions site/desktop/src/template/Home/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import DocumentTitle from 'react-document-title';
import { Link } from 'bisheng/router';
import GitHubButton from 'react-github-button';
import { injectIntl } from 'react-intl';
import { Popover, Button, Row, Col } from 'antd';
import { /* Popover, */ Button, Row, Col } from 'antd';
import * as utils from '../../../../utils';

function getStyle() {
Expand Down Expand Up @@ -49,15 +49,15 @@ class Home extends React.Component {
<section className="home-s1">
<div className="banner-wrapper">
<div className="banner-text-wrapper">
<h2 key="h2">Ant Design Mobile</h2>
<h2 key="h2">Ant Design Mobile RN</h2>
<p>{this.props.intl.formatMessage({ id: 'app.home.epitomize' })}</p>
<div key="button1" className="start-button">
<Link to={`/docs/react/introduce${isZhCN ? '-cn' : ''}`}>
<Button type="primary" size="large">
{this.props.intl.formatMessage({ id: 'app.home.centerStart' })}
</Button>
</Link>
<Popover
{/* <Popover
placement="bottom"
trigger="click"
content={
Expand All @@ -67,12 +67,12 @@ class Home extends React.Component {
<Button type="primary" ghost>
{this.props.intl.formatMessage({ id: 'app.home.qrtip' })}
</Button>
</Popover>
</Popover> */}
<GitHubButton
key="github-button"
type="stargazers"
namespace="ant-design"
repo="ant-design-mobile"
repo="ant-design-mobile-rn"
/>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions site/desktop/src/template/Layout/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ const Footer = () => (
<Col lg={6} sm={24} xs={24}>
<div className="footer-center">
<h2>Ant Design</h2>
<div>
<a target="_blank " rel="noopener noreferrer" href="https://github.com/ant-design/ant-design-mobile-rn">Ant Design Mobile RN GitHub</a>
</div>
<div>
<a target="_blank " rel="noopener noreferrer" href="https://github.com/ant-design/ant-design-mobile">Ant Design Mobile GitHub</a>
</div>
Expand Down
5 changes: 5 additions & 0 deletions site/desktop/src/template/Layout/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,11 @@ export default class Header extends React.Component {
<FormattedMessage id="app.header.menu.components" />
</Link>
</Menu.Item>
<Menu.Item key="web">
<a href="//mobile.ant.design">
<FormattedMessage id="app.header.menu.web" />
</a>
</Menu.Item>
{/* <Menu.Item key="pc">
<a href="//ant.design">
<FormattedMessage id="app.header.menu.pc" />
Expand Down
3 changes: 2 additions & 1 deletion site/desktop/src/zh-CN.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ module.exports = {
'app.header.menu.home': '首页',
'app.header.menu.components': '组件',
'app.header.menu.design': '规范',
'app.header.menu.web': 'Web 组件',
'app.header.menu.pc': '桌面版',
'app.header.lang': 'EN',
'app.home.slogan': '移动端设计规范',
'app.home.epitomize': '一个基于 Preact / React / React Native 的 UI 组件库',
'app.home.epitomize': '一个基于 React Native 的 UI 组件库',
'app.home.centerStart': '开始探索',
'app.home.qrtip': '扫描演示',
'app.home.s2_title': '懂你所需',
Expand Down

0 comments on commit d6973b5

Please sign in to comment.