<template>
    <div class="WM-ImageHeader">
        <div class="Background" :style="'background-image:url(/images/Global/Headers/'+imageAddress+'); height:'+imageHeight+'px;'">
            <div class="Title">
                <h2 class="Fa" :class="titleFaClass">  {{ titleFa }}  </h2>
                <h3 class="En " :class="color"> {{ titleEn }} </h3>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    name: "wm-page-title",
    props: {
        imageAddress: { default: "DarkBlueGradient.jpg" },
        imageHeight: { default: 150 },
        titleFa: { default: "عنوان بخش" },
        titleEn: { default: "Part Title" },
        color: { default: "red" },
        titleFaClass: { default: "white--text" }
    },

};
</script>
<style lang="scss" scoped>
    .WM-ImageHeader {
        width:100%;
        padding: 10px;
        border: 1px solid #eeeeee;
        position: relative;
        margin-bottom: 20px;
    }
    .WM-ImageHeader .Background {
        background-size: cover;
    }
    .WM-ImageHeader .Title {
        text-align: right;
        width: 100%;
        position:absolute;
        bottom:10px;
        right:50px;
    }
    .WM-ImageHeader .Title .Fa {
        font-size: 32px;
        margin: 0px;
        font-weight: 400;
    }
    .WM-ImageHeader .Title .En {
        font-weight: 200;
        font-size: 12px;
        border-radius: 5px;
        letter-spacing: 10px;
        display: inline-block;
        padding: 4px 15px 4px 25px;
        color: #fff;
        margin: 3px 0px 10px 0px;
        text-transform: uppercase;
    }

</style>
