Skip to content

Commit

Permalink
add edit downline announcement
Browse files Browse the repository at this point in the history
  • Loading branch information
jljsj33 committed Nov 7, 2018
1 parent 48e0ab1 commit 505c586
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ Ant Motion 在界面里主要是来加强体验舒适度、描述层级关系、

## 首页的解决方案

Landing 已正式上线,[更多请查看](https://landing.ant.design). 🎉🎉🎉

这是以 Ant Motion 的 React 组件遵从 Ant Design 的视觉规范来完成的 demo 页面,可灵活又快速的配置出你想要的首页模板。

主要提供了单元素示例与配置完后的整页示例。
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,16 @@ Ant Motion is an abstraction interface mainly intended to enhance the comfortnes

## Landing page solution

Landing Formally launched, [more](https://landing.ant.design). 🎉🎉🎉

This is based on the Ant Motion React components to follow with the design specifications of Ant Design to complete the demo page, you can quickly and flexibly configure the page template you want.

It provides a single-element example and a full-page example after configuration.

[ant-motion-dva-cli-example](https://github.com/ant-motion/ant-motion-dva-cli-example)

[umi-example](https://github.com/ant-motion/landing-umi-example)

[More details](http://t.cn/RIGA89W)

## Develop
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ant-motion",
"version": "1.6.2",
"version": "1.6.3",
"dependencies": {
"antd": "~3.6.2",
"deepcopy": "^0.6.3",
Expand Down
20 changes: 19 additions & 1 deletion src/edit/template/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Modal } from 'antd';
import { Modal, notification } from 'antd';
import NavController from './components/NavController';
import ContentController from './components/ContentController';
import EditStateController from './components/EditStateController';
Expand Down Expand Up @@ -30,6 +30,24 @@ class Edit extends React.Component {
}

componentDidMount() {
const args = {
message: '编辑器下线通知',
description: (
<div>
<a href="https://landing.ant.design">Ant Deisng Landing</a>
{' '}
测试版已经上线,本网站的模板编辑系统将会下线,请移至
{' '}
<a href="https://landing.ant.design">Ant Deisng Landing</a>
{' '}
重新编辑你的网页。
</div>
),
duration: 0,
placement: 'bottomLeft',
};
notification.warning(args);

$('#preview').load(() => {
this.setState({
iframeHeight: $('#preview').contents().height(),
Expand Down
5 changes: 5 additions & 0 deletions src/theme/template/Layout/Footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ function Footer() {
<span> - </span>
移动端
</div>
<div>
<a target="_blank" rel="noopener noreferrer" href="https://landing.ant.design/">Ant Design Landing</a>
<span> - </span>
首页模板
</div>
<div>
<a target="_blank" rel="noopener noreferrer" href="https://github.com/dvajs/dva">dva</a>
<span> - </span>
Expand Down
18 changes: 18 additions & 0 deletions src/theme/template/Layout/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import ReactDOM from 'react-dom';
import { notification } from 'antd';
import TweenOne from 'rc-tween-one';
import { enquireScreen } from 'enquire-js';
import Header from './Header';
Expand Down Expand Up @@ -30,6 +31,23 @@ class Index extends React.PureComponent {
isMobile: !!b,
});
});
const args = {
message: '编辑器下线通知',
description: (
<div>
<a href="https://landing.ant.design">Ant Deisng Landing</a>
{' '}
测试版已经上线,本网站的模板编辑系统将会下线,请移至
{' '}
<a href="https://landing.ant.design">Ant Deisng Landing</a>
{' '}
重新编辑你的网页。
</div>
),
duration: 0,
placement: 'bottomLeft',
};
notification.warning(args);
}

onChange = (e) => {
Expand Down

0 comments on commit 505c586

Please sign in to comment.