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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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