diff --git a/site/theme/template/Home/Banner.jsx b/site/theme/template/Home/Banner.jsx deleted file mode 100644 index 5bd376e78b..0000000000 --- a/site/theme/template/Home/Banner.jsx +++ /dev/null @@ -1,135 +0,0 @@ -import React from 'react'; -import TweenOne from 'rc-tween-one'; -import QueueAnim from 'rc-queue-anim'; -import ScrollParallax from 'rc-scroll-anim/lib/ScrollParallax'; -import { Link } from 'bisheng/router'; -import { FormattedMessage, useIntl } from 'react-intl'; -import GitHubButton from 'react-github-button'; -import { Button, Divider, Icon } from 'antd'; -import BannerImage from './BannerImage'; -import * as utils from '../utils'; - -const loop = { - duration: 3000, - yoyo: true, - repeat: -1, -}; - -const Banner = ({ isMobile }) => { - const { locale } = useIntl(); - const isZhCN = locale === 'zh-CN'; - return ( - - ); -}; - -export default Banner; diff --git a/site/theme/template/Home/Page2.jsx b/site/theme/template/Home/Page2.jsx deleted file mode 100644 index e2e3314bf8..0000000000 --- a/site/theme/template/Home/Page2.jsx +++ /dev/null @@ -1,235 +0,0 @@ -import React from 'react'; -import { Row, Col } from 'antd'; -import QueueAnim from 'rc-queue-anim'; -import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack'; -import { Link } from 'bisheng/router'; -import { FormattedMessage } from 'react-intl'; - -import Icon from '../Icon'; -import * as utils from '../utils'; - -import svgBgToParallax from './util'; - -const page2Data = [ - { - img: 'https://gw.alipayobjects.com/zos/rmsportal/eYNnmGagLWdrkdMHVUuA.svg', - name: 'Ant Design Components', - }, - { - img: 'https://gw.alipayobjects.com/zos/rmsportal/EPaPtDVGnJhyqyBAUZMl.svg', - name: 'Ant Design Pro', - slogan: , - link: 'https://pro.ant.design/index-cn', - }, - { - img: 'https://gw.alipayobjects.com/zos/rmsportal/GobRAKexhfTSJdLFzDFY.svg', - name: 'Ant Design Mobile', - slogan: , - }, - { - img: 'https://gw.alipayobjects.com/zos/rmsportal/slVtnOCcgeAcLEPwtewY.svg', - name: 'AntV', - slogan: , - link: 'https://antv.vision', - }, - { - img: 'https://gw.alipayobjects.com/zos/rmsportal/EAHlyTmYeDtTkZIPbUnP.svg', - name: 'Ant Design Landing', - slogan: , - link: 'https://landing.ant.design', - new: true, - }, -]; - -const svgBgChild = [ - - - - - - - - - - - - , - - - - - - - - - - - - - , -]; - -const svgBgChildArray = svgBgChild.map((item, i) => { - const { - props: { children }, - } = item; - return React.cloneElement(item, { children: svgBgToParallax(children, i) }); -}); -export default function Page2({ isMobile, locale }) { - const isZhCN = locale === 'zh-CN'; - const componentButton = ( -
- - Ant Design of React - - - Ant Design of Angular - - - Ant Design of Vue - -
- ); - const children = page2Data.map((item, i) => { - if (!isMobile && !i) { - return null; - } - const mobileContent = ( -
-

{item.slogan}

- - - - - - - - -
- ); - const moreContent = - i === 2 - ? mobileContent - : [ -

{item.slogan}

, - - - , - ]; - const content = isMobile && !i ? componentButton : moreContent; - const BlockElement = item.link ? 'a' : 'div'; - return ( - - - - icon - - -

- {item.name} {item.new && NEW} -

- {content} - -
-
- ); - }); - return ( -
-
-

- -

- - -

Ant Design Components

-

- -

- {componentButton} -
- - {children} - -
-
-
{svgBgChildArray[0]}
-
{svgBgChildArray[1]}
-
- ); -} diff --git a/site/theme/template/Home/Page3.jsx b/site/theme/template/Home/Page3.jsx deleted file mode 100644 index 69a8940dcb..0000000000 --- a/site/theme/template/Home/Page3.jsx +++ /dev/null @@ -1,145 +0,0 @@ -import React from 'react'; -import { Row, Col, Tag } from 'antd'; -import QueueAnim from 'rc-queue-anim'; -import ScrollOverPack from 'rc-scroll-anim/lib/ScrollOverPack'; -import { Link } from 'bisheng/router'; -import { FormattedMessage } from 'react-intl'; -import * as utils from '../utils'; -import svgBgToParallax from './util'; - -const page3Data = [ - { - title: , - content: , - img: 'https://gw.alipayobjects.com/zos/rmsportal/qggKjIGNFlVmMpwDUXPU.svg', - to: '/docs/spec/download', - }, - { - title: , - content: , - img: 'https://gw.alipayobjects.com/zos/rmsportal/dgjVqwkJvptQEtlfctvk.svg', - link: 'http://library.ant.design/', - }, - { - title: , - content: , - img: 'https://gw.alipayobjects.com/zos/rmsportal/vUxYuDdsbBBcMDxSGmwc.svg', - link: 'http://kitchen.alipay.com/', - hot: true, - }, -]; - -const svgBg = [ - , - , - , - , - , - , - - - , - - - , - , - , -]; -const svgChildren = svgBgToParallax(svgBg); - -export default function Page3({ locale }) { - const isZhCN = locale === 'zh-CN'; - const children = page3Data.map((item, i) => { - const child = [ -
- icon -
, -
-

- {item.title} - {item.hot ? ( - - HOT - - ) : null} -

-

{item.content}

-
, - ]; - return ( - - {item.to ? ( - {child} - ) : ( - - {child} - - )} - - ); - }); - return ( -
-
- - {svgChildren} - -
-
-

- -

- - - {children} - - -
-
- ); -}