<template>
    <div class="box pd20">
        <el-card shadow="hover" class="mgb20">
            <div class="search">
                <!-- <el-input placeholder="请输入关键词" v-model="input3" class="input-with-select">
                    <el-button slot="append" icon="el-icon-search"></el-button>
                </el-input> -->
                <input type="text" placeholder="请输入关键词">
                <button>搜索</button>
            </div>
            <div class="wrap">
                <a class="item" @click="jump">
                    <div class="icon">
                        <img src="../assets/img/station1.png" alt="">
                    </div>
                    <p class="text">Python程序设计</p>
                </a>
                <a class="item" @click="jump">
                    <div class="icon" style="background-color: #60b8f6">
                        <img src="../assets/img/station2.png" alt="">
                    </div>
                    <p class="text">银行实践平台</p>
                </a>
                <a class="item" @click="jump">
                    <div class="icon" style="background-color: #fbbb6e">
                        <img src="../assets/img/station3.png" alt="">
                    </div>
                    <p class="text">大数据平台</p>
                </a>
                <a class="item" @click="jump">
                    <div class="icon" style="background-color: #ec92e0">
                        <img src="../assets/img/station4.png" alt="">
                    </div>
                    <p class="text">可视化实践平台</p>
                </a>
                <a class="item" @click="jump">
                    <div class="icon" style="background-color: #f9746a">
                        <img src="../assets/img/station5.png" alt="">
                    </div>
                    <p class="text">数据清洗平台</p>
                </a>
            </div>
        </el-card>
    </div>
</template>

<script>
export default {
    name: 'station',
    data() {
        return {
            userId: this.$store.state.userId,
        };
    },
    mounted() {
        
    },
    methods: {
        jump(){
            location.href = 'http://www.liuwanr.cn:8080/pythonProject/#/'
        }
    }
};
</script>

<style lang="scss" scoped>
    .search{
        position: relative;
        width: 30%;
        margin: 100px auto 100px;
        border-radius: 30px;
        border: 1px solid #cb221c;
        border-right: 0;
        overflow: hidden;
        input{
            width: 100%;
            height: 44px;
            line-height: 44px;
            padding: 0 20px;
            font-size: 14px;
            color: #333;
            border: 0;
            outline: none !important;
            box-sizing: border-box;
        }
        button{
            position: absolute;
            top: 0;
            right: 0;
            padding: 0 20px;
            line-height: 44px;
            color: #fff;
            background-color: #cb221c;
            border: 0;
            outline: none !important;
        }
    }
    .wrap{
        display: flex;
        justify-content: center;
        padding: 20px;
        min-height: calc(100vh - 520px);

        .item{
            margin: 0 50px;
            cursor: pointer;
            &:first-child{
                margin-left: 0;
            }
            &:last-child{
                margin-right: 0;
            }
            &:hover{
                opacity: .9;
            }
            .icon{
                display: flex;
                justify-content: center;
                align-items: center;
                width: 100px;
                height: 100px;
                margin: 0 auto 6px;
                border-radius: 12px;
                background-color: #ff803c;
                img{
                    width: 50px;
                }
            }
            .text{
                font-size: 14px;
                text-align: center;
                color: #333;
            }
        }
    }
</style>

