index.js 990 Bytes
Newer Older
zhanghaozhe committed
1 2
import React, { Component } from "react"
import "./index.scss"
xuzhenghua committed
3 4 5 6

export default class NoWorry extends Component {
  render() {
    return (
zhanghaozhe committed
7 8 9 10 11 12 13 14 15 16 17 18 19
      <div className={"worry__container"}>
        <img
          className={"left"}
          src="https://julyedu-cdn.oss-cn-beijing.aliyuncs.com/h5_python_class/worry_left.png"
          alt=""
        />
        <p className={"title"}> /  /  / </p>
        <p className={"sub__title"}>
          全新的课程形式,轻松、有趣的课程内容,解除你所有的担忧
        </p>
        {this.props.list.map((item, index) => {
          return <WorryItem item={item} key={index}></WorryItem>
        })}
xuzhenghua committed
20 21 22 23 24 25
      </div>
    )
  }
}

function WorryItem(props) {
zhanghaozhe committed
26
  const { url, title, subTitle } = props.item
xuzhenghua committed
27
  return (
zhanghaozhe committed
28 29 30 31 32
    <div className={"item__container"}>
      <div className={"head"}></div>
      <img src={url} alt="" />
      <p className={"title"}>{title}</p>
      <p className={"des"}>{subTitle}</p>
xuzhenghua committed
33 34 35
    </div>
  )
}