parent
f073aa4ecf
commit
70af3ca4f5
Binary file not shown.
Before Width: | Height: | Size: 227 KiB After Width: | Height: | Size: 242 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,224 @@
|
|||||||
|
<template>
|
||||||
|
<div :class="`name-block-en ${theme} LTR`">
|
||||||
|
<div v-if="number!=''" class="number En Bold"> {{ number }} </div>
|
||||||
|
<div v-if="colorBox" :class="`color-box ${colorBox}`"></div>
|
||||||
|
<div class="text">
|
||||||
|
<div v-if="top_label" class="top-label En Thin" v-html="top_label"></div>
|
||||||
|
<div class="En Bold title-en"> {{ name_en }} </div>
|
||||||
|
<div v-if="desc" class="En desc"> {{ desc }} </div>
|
||||||
|
<!------------------------Conditional::Begin----------------------->
|
||||||
|
<div v-if="name_fa" class="Fa title-fa"> {{ name_fa }} </div>
|
||||||
|
<div v-if="date" class="Fa Thin date">
|
||||||
|
<template v-if="date_filter" >{{ date | moment("dddd ، jD jMMMM ماه jYYYY، HH:mm") }} </template>
|
||||||
|
<template v-else >{{date}}</template>
|
||||||
|
</div>
|
||||||
|
<div v-if="label" class="Fa Thin label"><v-icon v-if="labelIcon">WMi-{{ labelIcon }}</v-icon> {{ label }} </div>
|
||||||
|
<!------------------------Conditional::End----------------------->
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
theme: { default: '' },
|
||||||
|
number: { default: '' },
|
||||||
|
name_fa: String,
|
||||||
|
name_en: { default: 'English Title' },
|
||||||
|
desc: String,
|
||||||
|
top_label: String,
|
||||||
|
date: String,
|
||||||
|
date_filter: { default: false },
|
||||||
|
label: String,
|
||||||
|
labelIcon: String,
|
||||||
|
colorBox: String,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.name-block-en {
|
||||||
|
display: flex;
|
||||||
|
justify-content: right;
|
||||||
|
align-items: center;
|
||||||
|
position: relative;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.name-block-en .En.number {
|
||||||
|
font-size: 55px;
|
||||||
|
line-height: 55px;
|
||||||
|
margin-right: 10px;
|
||||||
|
min-width: 30px;
|
||||||
|
}
|
||||||
|
.name-block-en .text {
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
.name-block-en .text .title-en {
|
||||||
|
font-size: 24px;
|
||||||
|
line-height: 24px;
|
||||||
|
letter-spacing: 5px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
text-align: left;
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
|
.name-block-en.title-ls-0 .text .title-en {
|
||||||
|
letter-spacing: 0px;
|
||||||
|
}
|
||||||
|
.name-block-en.title-ls-3 .text .title-en {
|
||||||
|
letter-spacing: 3px;
|
||||||
|
}
|
||||||
|
.name-block-en.no-transform .text .title-en {
|
||||||
|
text-transform: none;
|
||||||
|
}
|
||||||
|
.name-block-en .text .desc {
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 18px;
|
||||||
|
margin-right: -5px;
|
||||||
|
color: #b1b1b1;
|
||||||
|
text-align: left;
|
||||||
|
direction: ltr;
|
||||||
|
}
|
||||||
|
.name-block-en.desc-mt-2 .text .desc {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name-block-en.ltr-3 .text .title-en {
|
||||||
|
letter-spacing: 3px;
|
||||||
|
}
|
||||||
|
.name-block-en.en-mt-3 .text .title-en {
|
||||||
|
margin-top: 3px;
|
||||||
|
}
|
||||||
|
.name-block-en .text .date {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
.name-block-en .text .label {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name-block-en.en-origin .text .title-en {
|
||||||
|
font-size: 13px;
|
||||||
|
text-transform: none;
|
||||||
|
letter-spacing: 0px;
|
||||||
|
margin-right: 0px;
|
||||||
|
}
|
||||||
|
.name-block-en .text .top-label {
|
||||||
|
font-size: 12px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*----------------------------------------------------*/
|
||||||
|
/* Size MD */
|
||||||
|
/*----------------------------------------------------*/
|
||||||
|
.name-block-en.md {
|
||||||
|
text-align:right;
|
||||||
|
padding: 0px 2px;
|
||||||
|
}
|
||||||
|
.name-block-en.md .title-fa {
|
||||||
|
font-size: 18px;
|
||||||
|
line-height: 22px;
|
||||||
|
}
|
||||||
|
.name-block-en.md .title-en {
|
||||||
|
font-size: 10px;
|
||||||
|
line-height: 18px;
|
||||||
|
letter-spacing: 3px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-right: -3px;
|
||||||
|
}
|
||||||
|
.name-block-en.md .En.number {
|
||||||
|
font-size: 36px;
|
||||||
|
}
|
||||||
|
/*----------------------------------------------------*/
|
||||||
|
/* Size SM */
|
||||||
|
/*----------------------------------------------------*/
|
||||||
|
.name-block-en.sm {
|
||||||
|
text-align:right;
|
||||||
|
padding: 0px 2px;
|
||||||
|
}
|
||||||
|
.name-block-en.sm .title-fa {
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 26px;
|
||||||
|
}
|
||||||
|
.name-block-en.sm .title-en {
|
||||||
|
font-size: 10px;
|
||||||
|
line-height: 18px;
|
||||||
|
letter-spacing: 2px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
margin-right: -2px;
|
||||||
|
}
|
||||||
|
.name-block-en.sm .En.number {
|
||||||
|
font-size: 36px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*----------------------------------------------------*/
|
||||||
|
/* Size xl */
|
||||||
|
/*----------------------------------------------------*/
|
||||||
|
.name-block-en.xl {
|
||||||
|
text-align:right;
|
||||||
|
padding: 0px 2px;
|
||||||
|
}
|
||||||
|
.name-block-en.xl .title-fa {
|
||||||
|
font-size: 28px;
|
||||||
|
line-height: 38px;
|
||||||
|
}
|
||||||
|
.name-block-en.xl .title-en {
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 24px;
|
||||||
|
letter-spacing: 5px;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #9a9a9a;
|
||||||
|
margin-right: -3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*----------------------------------------------------*/
|
||||||
|
/* Fa-Only */
|
||||||
|
/*----------------------------------------------------*/
|
||||||
|
.name-block-en.fa-only .number.En {
|
||||||
|
font-size: 20px;
|
||||||
|
line-height: 20px;
|
||||||
|
margin-left: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*----------------------------------------------------*/
|
||||||
|
/* number-absolute */
|
||||||
|
/*----------------------------------------------------*/
|
||||||
|
.name-block-en.number-absolute .number {
|
||||||
|
position: absolute;
|
||||||
|
bottom: -15px;
|
||||||
|
right: 10px;
|
||||||
|
font-size: 60px;
|
||||||
|
opacity: 0.08;
|
||||||
|
line-height: 80px;
|
||||||
|
}
|
||||||
|
.name-block-en.number-absolute.top-left .number {
|
||||||
|
top: 0px;
|
||||||
|
right: 0px;
|
||||||
|
line-height: 36px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.name-block-en.number-light-gray .number {
|
||||||
|
color: var(--color-light-gray);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.color-box {
|
||||||
|
width: 10px;
|
||||||
|
height: 35px;
|
||||||
|
margin: 0px 0px 5px 15px;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*----------------------------------------------------*/
|
||||||
|
/* Colors */
|
||||||
|
/*----------------------------------------------------*/
|
||||||
|
@import "resources/js/Global/scss/_vars.scss";
|
||||||
|
@each $color,
|
||||||
|
$value in $colors {
|
||||||
|
.name-block-en.theme-#{$color} {
|
||||||
|
color: $value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</style>
|
@ -0,0 +1,56 @@
|
|||||||
|
<template>
|
||||||
|
<div class="flex-justified-space-between title-big">
|
||||||
|
<div>
|
||||||
|
<div class="Fa Thin desc"> {{ desc }} </div>
|
||||||
|
<div :class="`Fa Bold text-gradient ${gradient} title-fa`"> {{ title_fa }} </div>
|
||||||
|
</div>
|
||||||
|
<div class="title-en En Bold">
|
||||||
|
<div class="text"> {{ title_en }} </div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
props: {
|
||||||
|
title_fa: { default: " عنوان بخش - بزرگ "},
|
||||||
|
desc: { default: " توضحیحات مربوط به این بخش "},
|
||||||
|
title_en: { default: "the big title"},
|
||||||
|
gradient: { default: "black-black"},
|
||||||
|
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.title-big {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
border-bottom: 1px solid #f5f5f5;
|
||||||
|
padding-bottom: 0px;
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
|
.title-big .title-fa {
|
||||||
|
font-size: 50px;
|
||||||
|
}
|
||||||
|
.title-big .desc {
|
||||||
|
font-size: 16px;
|
||||||
|
opacity: 0.8;
|
||||||
|
}
|
||||||
|
.title-big .title-en {
|
||||||
|
position: relative;
|
||||||
|
width: 300px;
|
||||||
|
height: 160px;
|
||||||
|
letter-spacing: 3px;
|
||||||
|
font-size: 150px;
|
||||||
|
line-height: 160px;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-transform: uppercase;
|
||||||
|
color: #b1b1b1;
|
||||||
|
opacity: 0.1;
|
||||||
|
}
|
||||||
|
.title-big .title-en .text {
|
||||||
|
position: absolute;
|
||||||
|
left: 0px;
|
||||||
|
bottom: 0px;
|
||||||
|
}
|
||||||
|
</style>
|
@ -0,0 +1,53 @@
|
|||||||
|
<template>
|
||||||
|
<prism-editor class="my-editor LTR height-300 " v-model="code" :highlight="highlighter" line-numbers></prism-editor>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// import Prism Editor
|
||||||
|
import { PrismEditor } from 'vue-prism-editor';
|
||||||
|
import 'vue-prism-editor/dist/prismeditor.min.css'; // import the styles somewhere
|
||||||
|
|
||||||
|
// import highlighting library (you can use any library you want just return html string)
|
||||||
|
import { highlight, languages } from 'prismjs/components/prism-core';
|
||||||
|
import 'prismjs/components/prism-clike';
|
||||||
|
import 'prismjs/components/prism-javascript';
|
||||||
|
import 'prismjs/themes/prism-tomorrow.css'; // import syntax highlighting styles
|
||||||
|
|
||||||
|
export default {
|
||||||
|
components: {
|
||||||
|
PrismEditor,
|
||||||
|
},
|
||||||
|
data: () => ({ code: 'console.log("Hello World")' }),
|
||||||
|
methods: {
|
||||||
|
highlighter(code) {
|
||||||
|
return highlight(code, languages.js); // languages.<insert language> to return html with markup
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.height-300 {
|
||||||
|
height: 300px;
|
||||||
|
}
|
||||||
|
/* required class */
|
||||||
|
.my-editor {
|
||||||
|
/* we dont use `language-` classes anymore so thats why we need to add background and text color manually */
|
||||||
|
background: #f5f2f0;
|
||||||
|
border: 1px solid #dcdcdc;
|
||||||
|
border-left: 10px solid #dcdcdc;
|
||||||
|
color: #5a6268;
|
||||||
|
border-radius: 5px;
|
||||||
|
|
||||||
|
/* you must provide font-family font-size line-height. Example: */
|
||||||
|
font-family: Fira code, Fira Mono, Consolas, Menlo, Courier, monospace;
|
||||||
|
font-size: 14px;
|
||||||
|
line-height: 1.5;
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* optional class for removing the outline */
|
||||||
|
.prism-editor__textarea:focus {
|
||||||
|
outline: none;
|
||||||
|
}
|
||||||
|
</style>
|
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Before Width: | Height: | Size: 227 KiB After Width: | Height: | Size: 242 KiB |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue