You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
willaengine/resources/js/Global/components/Blocks/Info.vue

61 lines
1.6 KiB

<template>
<div class="info-block" :class='direction'>
4 years ago
<div class="Label"><v-icon v-if="icon">WMi-{{icon}}</v-icon> {{ label }} </div>
4 years ago
<div v-if="value" class="Value" :class='valueClass' v-html="value"></div>
4 years ago
<div v-if="secondValue" class="second-value" v-html="secondValue"></div>
4 years ago
<a v-if="link" :href="link" class="link WM-Link">دانلود فایل </a>
5 years ago
</div>
</template>
<script>
export default {
props: {
4 years ago
icon: String,
5 years ago
label: { default: " عنوان " },
4 years ago
value: String,
4 years ago
secondValue: String,
4 years ago
link: String,
5 years ago
direction: { default: '' },
5 years ago
valueClass: { default: '' },
},
};
</script>
5 years ago
<style lang="scss" scoped>
.info-block {
5 years ago
text-align: right;
4 years ago
padding: 3px 10px 3px 10px;
5 years ago
border-right: 1px solid #dcdcdc;
}
.info-block.LTR {
5 years ago
text-align: left;
direction: ltr;
4 years ago
font-family: 'Montserrat-Regular' !important;
5 years ago
border-right: 0px;
border-left: 1px solid #dcdcdc;
}
.info-block .Label {
4 years ago
opacity: 0.7;
5 years ago
color: #797979;
5 years ago
font-size: 12px;
5 years ago
}
4 years ago
.info-block:not(.LTR) .Value {
5 years ago
color: #000;
5 years ago
font-size: 16px;
4 years ago
font-family: 'iranyekan-regular';
4 years ago
margin-right: 3px;
}
.info-block:not(.LTR) .second-value {
opacity: 0.7;
color: #797979;
font-size: 12px;
line-height: 14px;
font-family: 'Montserrat-Regular';
margin-right: 3px;
5 years ago
}
.info-block .v-icon {
5 years ago
margin-top: -5px;
line-height: 1.6;
font-size: 14px;
}
</style>