index.js 1.27 KB
Newer Older
1 2
import React, { Component } from 'react';
import NavLink from './NavLink';
baiguangyao committed
3
import './index.scss';
4 5 6 7 8 9

export default class Nav extends Component {
    render() {
        return (
            <div>
                <div style={{ height: '50px' }}></div>
baiguangyao committed
10
                <div className="root">
11 12 13
                    <NavLink
                        pathUrl="/"
                        exact
baiguangyao committed
14
                        icoName="iconfont iconshouye"
baiguangyao committed
15
                        active={"navOne"}
16 17 18 19
                        linkName="首页"
                    />
                    <NavLink
                        pathUrl="/classify"
baiguangyao committed
20 21
                        icoName="iconfont iconiconfront-16"
                        active={"navTwo"}
22 23 24 25
                        linkName="分类"
                    />
                    <NavLink
                        pathUrl="/study"
baiguangyao committed
26 27
                        icoName="iconfont iconxuexi"
                        active={"navThree"}
28 29 30 31
                        linkName="学习"
                    />
                    <NavLink
                        pathUrl="/my"
baiguangyao committed
32 33
                        icoName="iconfont iconhome"
                        active={"navFour"}
34 35 36 37 38 39 40
                        linkName="我的"
                    />
                </div>
            </div>
        )
    }
}