<template>
    <div class="main-404" :class="{ 'main-404-fixed': isFixedHeader }">
        <div v-if="message">{{ message }}</div>
        <img v-else class="img-404" src="@/assets/img/common/new404.png" alt="404">
    </div>
</template>

<script>
export default {
    name: 'ErrorPage404',
    props: {
        message: {
            type: String,
            default: ''
        }
    },
    computed: {
        isFixedHeader () {
            let isFixedHeader = false
            const routeName = this.$route.name

            if (routeName.indexOf('SeoConsultUser') > -1) {
                isFixedHeader = true
            }

            return isFixedHeader
        }
    }
}
</script>

<style lang="scss" scoped>
.main-404 {
    min-height: 500px;
    text-align: center;
    line-height: 400px;
    font-size: 16px;
    &.main-404-fixed {
        margin-top: 103px !important;
    }
    .img-404 {
        margin: 60px auto 0;
        display: block;
        width: 341px;
    }
}
</style>
