<template>
    <div id="app">
        <i class="el-icon-box e-icon"></i>
        <h1><el-link type="primary" @click="homeClick" class="big-title">vue-toolbox</el-link></h1>
        <h5>所有组件预览</h5>
        <el-divider></el-divider>

        <router-view />
    </div>
</template>

<script>
	export default {
		name: 'app',
        methods: {
			homeClick() {
				this.$router.push('/home');
            }
        }
	}
</script>

<style lang="scss">
    #app {
        font-family: 'Avenir', Helvetica, Arial, sans-serif;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-align: center;
        color: #2c3e50;
        margin-top: 60px;
    }

    h1, h2 {
        font-weight: normal;
    }

    ul {
        list-style-type: none;
        padding: 0;
    }

    li {
        display: inline-block;
        margin: 0 10px;
    }

    a {
        color: #42b983;
    }

    .e-icon {
        font-size: 100px;
    }

    .big-title {
        font-size: 30px;
    }
</style>
