import React from 'react'
import PropTypes from 'prop-types'
import { Icon } from 'antd'
import "./Intro.scss"
import { OverPack } from 'rc-scroll-anim'
import TweenOne from 'rc-tween-one'
import QueueAnim from 'rc-queue-anim';
const IntroPart = (props) =>(
{props.title}
{props.des}
)
IntroPart.propTypes = {
title : PropTypes.string,
des : PropTypes.string,
iconType : PropTypes.string
}
class Intro extends React.Component{
constructor(props){
super(props);
}
static propTypes={
intro : PropTypes.shape({
title:PropTypes.string,
des:PropTypes.string,
img:PropTypes.string,
detail:PropTypes.arrayOf(PropTypes.shape({
title:PropTypes.string,
des:PropTypes.string
}))
}),
className : PropTypes.string
}
render(){
const { intro } = this.props;
const id = "motion";
const animType = {
queue: 'right',
one: { x: '-=30', opacity: 0, type: 'from' }
};
return(
{intro.title}
{intro.des}
{intro.detail.map(function(item,i){
return()
})}
)
}
}
export default Intro;