Skip to content

Commit

Permalink
Merge pull request #107 from IBEC-BOX/ErgVacancies
Browse files Browse the repository at this point in the history
update erg-vacancies & added new directories "test template components"
  • Loading branch information
Zh3nyaZh3nya authored Apr 11, 2024
2 parents e4f0b48 + d38e2b6 commit 23bb10b
Show file tree
Hide file tree
Showing 9 changed files with 296 additions and 178 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ibecsystems/nuxt3-ui-kit",
"version": "1.0.30",
"version": "1.0.31",
"description": "Ibec Nuxt3 UI components",
"repository": {
"type": "git",
Expand Down
80 changes: 74 additions & 6 deletions src/runtime/components/Pages/TestVuetify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,76 @@
/>
<NuxtPage class="bg-primary" />
<section class="h-100 bg-primary">
<v-container class=" px-4">
<partsCardScale
:cards="cards"
title-icon-class="mr-5"
title-icon-max-width="46"
title-icon-max-height="46"
<v-container class="px-4">
<parts-erg-vacancies
sheet-rounded="'xl'"
title="'Станьте частью команды'"
sub-title="'Мы предлагаем конкурентные зарплаты, социальные гарантии'"
title-color="'#7613da'"
:gallery="true"
:gallery-hover-effect="false"
:background-image="
{
image: '/bg-card.png',
attrs: {
class: 'my-10 rounded-xl',
}
}"
:gallery-images="[
{
chip: {
attrs: {
variant: 'flat',
color: 'green'
},
text: 'asd',
},
background: 'bg-card.png',
title: 'absdffdsfdsfsdfdsds'
},
{
chip: {
attrs: {
variant: 'flat',
color: 'green'
},
text: 'asd',
},
background: 'bg-card.png',
title: 'absdffdsfdsfsdfdsds'
},
{
chip: {
attrs: {
variant: 'flat',
color: 'green'
},
text: 'asd',
},
background: 'bg-card.png',
title: 'absdffdsfdsfsdfdsds'
},
{
chip: {
attrs: {
variant: 'flat',
color: 'green'
},
text: 'asd',
},
background: 'bg-card.png',
title: 'absdffdsfdsfsdfdsds'
},
]"
:chip="{
text: 'Вакансии',
attrs: {
color: 'primary'
}
}"
/>
</v-container>
</section>
Expand Down Expand Up @@ -123,4 +187,8 @@ const formData = (data) => {
.custom-checkbox .v-input--checkbox .v-icon {
margin-top: 0px; /* Настройте это значение в зависимости от вашего дизайна */
}
.bg-none {
background: none;
}
</style>
224 changes: 111 additions & 113 deletions src/runtime/components/Parts/ErgVacancies.vue
Original file line number Diff line number Diff line change
@@ -1,105 +1,110 @@
<template>
<v-container class="erg-vacancies position-relative">
<v-img
:src="backgroundImage.image"
cover
class="h-100 w-100 erg-vacancies-bg"
v-bind="backgroundImage.attrs"
:min-height="536"
/>
<v-sheet
v-bind="sheetAttrs"
class="sheet position-absolute bg-none"
:class="backgroundImage ? 'position-absolute' : ''"
>
<v-row class="h-100">
<v-col
v-if="Object.keys(leftImage).length"
cols="12"
md="6"
:style="leftImage ? '' : 'display: contents'"
>
<v-img
:src="leftImage.src"
v-bind="leftImage.attrs"
/>
</v-col>
<v-col
cols="12"
:md="Object.keys(leftImage).length || Object.keys(rightImage).length ? 6 : 12"
v-bind="bodyAttrs"
class="py-0 "
:class="Object.keys(leftImage).length || Object.keys(rightImage).length ? 'px-5' : ''"
>
<v-chip
v-if="chip"
v-bind="chip.attrs"
class="z-index-2"
<v-container
class="erg-vacancies"
:class="positionGallery === 'top' ? 'd-flex flex-column-reverse' : ''"
>
<div class="position-relative">
<v-img
:src="backgroundImage.image"
cover
class="h-100 w-100 erg-vacancies-bg"
v-bind="backgroundImage.attrs"
:min-height="536"
/>
<v-sheet
v-bind="sheetAttrs"
class="sheet position-absolute bg-none"
:class="backgroundImage ? 'position-absolute' : ''"
>
<v-row class="h-100">
<v-col
v-if="Object.keys(leftImage).length"
cols="12"
md="6"
:style="Object.keys(leftImage).length ? '' : 'display: contents'"
>
{{ chip.text }}
</v-chip>
<div class=" d-flex flex-column justify-end justify-sm-start flex-grow-1 h-100">
<div class="vacancies__body position-relative z-index-2">
<h2
v-if="title"
class="mb-2"
v-bind="titleAttrs"
>
{{ title || 'Станьте частью команды' }}
</h2>
<p
v-if="subTitle"
class="mb-4"
v-bind="subTitleAttrs"
>
{{ subTitle || 'Мы предлагаем конкурентные зарплаты, социальные гарантии' }}
</p>
<div
v-if="textBody"
class="mb-4"
>
<div v-html="textBody" />
<v-img
:src="leftImage.image"
v-bind="leftImage.attrs"
/>
</v-col>
<v-col
cols="12"
:md="Object.keys(leftImage).length || Object.keys(rightImage).length ? 6 : 12"
v-bind="bodyAttrs"
class="py-0 "
:class="Object.keys(leftImage).length || Object.keys(rightImage).length ? 'px-5' : ''"
>
<v-chip
v-if="chip"
v-bind="chip.attrs"
class="z-index-2"
>
{{ chip.text }}
</v-chip>
<div class=" d-flex flex-column justify-end justify-sm-start flex-grow-1 h-100">
<div class="vacancies__body position-relative z-index-2">
<h2
v-if="title"
class="mb-2"
v-bind="titleAttrs"
>
{{ title || 'Станьте частью команды' }}
</h2>
<p
v-if="subTitle"
class="mb-4"
v-bind="subTitleAttrs"
>
{{ subTitle || 'Мы предлагаем конкурентные зарплаты, социальные гарантии' }}
</p>
<div
v-if="textBody"
class="mb-4"
>
<div v-html="textBody" />

Check warning on line 65 in src/runtime/components/Parts/ErgVacancies.vue

View workflow job for this annotation

GitHub Actions / build

'v-html' directive can lead to XSS attack
</div>
</div>
<v-btn
v-bind="button.attrs"
class="text-none z-index-2 mr-auto"
:color="button.attrs?.color ?? 'white'"
>
{{ button.text || 'Связаться с нами' }}
<v-img
v-if="button.image"
:src="button.image"
:width="16"
:height="16"
class="ml-2"
v-bind="button.imageAttrs"
/>
</v-btn>
</div>
<v-btn
v-bind="button.attrs"
class="text-none z-index-2 mr-auto"
:color="button.attrs.color || 'white'"
>
{{ button.text || 'Связаться с нами' }}
<v-img
v-if="button.image"
:src="button.image"
:width="16"
:height="16"
class="ml-2"
v-bind="button.imageAttrs"
/>
</v-btn>
</div>
</v-col>
<v-col
v-if="Object.keys(rightImage).length"
cols="12"
md="6"
:style="rightImage ? '' : 'display: contents'"
class="py-0"
>
<v-img
:src="rightImage.src"
v-bind="rightImage.attrs"
/>
</v-col>
</v-row>
</v-sheet>
</v-col>
<v-col
v-if="Object.keys(rightImage).length"
cols="12"
md="6"
:style="rightImage ? '' : 'display: contents'"
class="py-0"
>
<v-img
:src="rightImage.image"
v-bind="rightImage.attrs"
/>
</v-col>
</v-row>
</v-sheet>
</div>
<v-row
v-if="gallery"
style="flex-wrap: nowrap"
class="overflow-x-auto"
>
<v-col
v-for="img in galleryImages"
:key="img.src"
v-for="(img, index) in galleryImages"
:key="`img-col-${index}`"
cols="3"
class="gallery-col rounded-xl"
>
Expand All @@ -114,9 +119,11 @@
<span
v-if="galleryHoverEffect"
class="gallery-title text-h5"
>{{ img.title }}</span>
>
{{ img.title }}
</span>
<v-chip
v-if="!galleryHoverEffect"
v-else
v-bind="img.chip.attrs"
class="gallery-chip"
>
Expand Down Expand Up @@ -148,30 +155,21 @@ const bodyAttrs = {
}
const props = defineProps({

Check warning on line 157 in src/runtime/components/Parts/ErgVacancies.vue

View workflow job for this annotation

GitHub Actions / build

'props' is assigned a value but never used
backgroundImage: {
type: Object,
default: () => ({
image: ''
})
},
chip: {
type: Object,
default: () => ({
text: 'Вакансии',
attrs: {
color: 'primary'
}
})
},
title: { type: String, default: '' },
subTitle: { type: String, default: '' },
galleryImages: { type: Array, default: () => ([]) },
backgroundImage: { type: Object, default: () => ({}) },
button: { type: Object, default: () => ({}) },
textBody: { type: String, default: '' },
leftImage: { type: Object, default: () => ({}) },
rightImage: { type: Object, default: () => ({}) },
chip: { type: Object, default: () => ({}) },
title: { type: String, default: '' },
subTitle: { type: String, default: '' },
textBody: { type: String, default: '' },
gallery: { type: Boolean, default: false },
galleryImages: { type: Array, default: () => ([]) },
galleryHoverEffect: { type: Boolean, default: false },
positionGallery: { type: String, default: () => 'bottom' }
})
Expand Down
Loading

0 comments on commit 23bb10b

Please sign in to comment.