import React, { useState } from 'react';

import '../asstes/css/header.css'
import { Button } from 'antd';


function Header() {
    const [value, setValue] = useState(0)

    const clickSwitchValue = (val) => {
        setValue(val)
    }
    return (
        <div className="headerRight">
            <ul >
                <li onClick={() => clickSwitchValue(0)}>
                    <a href='#Introduction'>
                        <span>产品概述</span>
                        {value === 0 && <img className='imgBorderBottom' src={require('../asstes/img/border_bottom.png')} alt="" />}
                    </a>
                </li>
                <li onClick={() => clickSwitchValue(1)}>
                    <a href='#ProcessFlow'>
                        <span>产品特点</span>
                        {value === 1 && <img className='imgBorderBottom' src={require('../asstes/img/border_bottom.png')} alt="" />}
                    </a>
                </li>
                <li onClick={() => clickSwitchValue(2)}>
                    <a href='#Example'>
                        <span>课程案例</span>
                        {value === 2 && <img className='imgBorderBottom' src={require('../asstes/img/border_bottom.png')} alt="" />}
                    </a>
                </li>
                <li onClick={() => clickSwitchValue(3)}>
                    <a href='#CheckeredQuery'>
                        <span>配套资源</span>
                        {value === 3 && <img className='imgBorderBottom' src={require('../asstes/img/border_bottom.png')} alt="" />}
                    </a>
                </li>
                <li onClick={() => clickSwitchValue(4)}>
                    <a href='#Compare'>
                        <span>产品对比</span>
                        {value === 4 && <img className='imgBorderBottom' src={require('../asstes/img/border_bottom.png')} alt="" />}
                    </a>
                </li>
                <li>
                    <a href='https://pi.cocorobo.cn' Target='_blank'>
                    {/* <img src={require('../asstes/img/userLogin.png')} alt="" /> */}
                    <Button type="primary">开始创作</Button>
                    {/* {value === 4 && <img className='imgBorderBottom' src={require('../asstes/img/border_bottom.png')} alt="" />} */}
                    </a>
                    
                </li>
            </ul>
        </div>
    );
}
export default Header