<template>
    <div>
        <el-row :gutter="20">
            <el-col :xs="24" :sm="12" :lg="6">
                <el-card class="box-card">
                    <i class="fa-fw fas fa-user fa-3x" style="color: #40c9c6;"></i>
                    <div class="info">
                        <div class="text">User</div>
                        <div class="num">4,258</div>
                    </div>
                </el-card>
            </el-col>
            <el-col :xs="24" :sm="12" :lg="6">
                <el-card class="box-card">
                    <i class="fa-fw fas fa-envelope fa-3x" style="color: #36a3f7;"></i>
                    <div class="info">
                        <div class="text">Messages</div>
                        <div class="num">4,258</div>
                    </div>
                </el-card>
            </el-col>
            <el-col :xs="24" :sm="12" :lg="6">
                <el-card class="box-card">
                    <i class="fa-fw fas fa-dollar-sign fa-3x" style="color: #f4516c;"></i>
                    <div class="info">
                        <div class="text">Payment</div>
                        <div class="num">4,258</div>
                    </div>
                </el-card>
            </el-col>
            <el-col :xs="24" :sm="12" :lg="6">
                <el-card class="box-card">
                    <i class="fa-fw fas fa-shopping-cart fa-3x" style="color: #34bfa3;"></i>
                    <div class="info">
                        <div class="text">Shopping</div>
                        <div class="num">4,258</div>
                    </div>
                </el-card>
            </el-col>
        </el-row>
        <el-row>
            <el-col :xs="24" :sm="12" :lg="8">
                <weather-card></weather-card>
            </el-col>
        </el-row>

    </div>
</template>

<script>
    import WeatherCard from '../components/WeatherCard'

    export default {
        created() {

        },
        components: {
            WeatherCard
        }
    }
</script>

<style lang="less">
    .box-card {
        margin-bottom: 20px;
        .el-card__body {
            display: flex;
            align-items: center;
            .info {
                flex-grow: 1;
                text-align: right;
                .text {
                    color: #999;
                    font-size: 16px;
                    margin-bottom: 12px;
                }
                .num {
                    font-size: 20px;
                    color: #333;
                }
            }
        }
    }
</style>
