merge and fix baghi conflicts
This commit is contained in:
commit
9fd2e58067
|
@ -172,12 +172,13 @@ const backgroundImageStyle = computed(() => {
|
||||||
optimizedImageUrl = "/img/haditha/sub-header-bgi.webp";
|
optimizedImageUrl = "/img/haditha/sub-header-bgi.webp";
|
||||||
|
|
||||||
return {
|
return {
|
||||||
backgroundImage: `url(${optimizedImageUrl}), linear-gradient(199.05deg, #ffffff 9.99%, #e4fff7 42.07%, #ffffff 97.12%)`,
|
backgroundImage: `url(${optimizedImageUrl})`,
|
||||||
|
// backgroundImage: `url(${optimizedImageUrl}), linear-gradient(199.05deg, #ffffff 9.99%, #e4fff7 42.07%, #ffffff 97.12%)`,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
backgroundImage: `url(${optimizedImageUrl}), linear-gradient(199.05deg, #ffffff 9.99%, #e4fff7 42.07%, #ffffff 97.12%)`,
|
backgroundImage: `url(${optimizedImageUrl})`,
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
const searchButtonIcon = computed(() => {
|
const searchButtonIcon = computed(() => {
|
||||||
|
@ -409,7 +410,7 @@ const onTypeSelectChanged = (value: string) => {
|
||||||
|
|
||||||
sendQuery().then((res) => {
|
sendQuery().then((res) => {
|
||||||
loadedItems.value = res.hits.hits;
|
loadedItems.value = res.hits.hits;
|
||||||
showNoData.value = loadedItems.value?.length == 0;
|
showNoData.value = Boolean(loadedItems.value?.length);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -463,7 +464,7 @@ const prepareSynonym = () => {
|
||||||
const onUpdateSwitch = () => {
|
const onUpdateSwitch = () => {
|
||||||
sendQuery(prepareSynonym()).then((res) => {
|
sendQuery(prepareSynonym()).then((res) => {
|
||||||
loadedItems.value = res.hits.hits;
|
loadedItems.value = res.hits.hits;
|
||||||
showNoData.value = loadedItems.value?.length == 0;
|
showNoData.value = Boolean(loadedItems.value?.length);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const onUpdateSubTitle = (subTitle) => {
|
const onUpdateSubTitle = (subTitle) => {
|
||||||
|
@ -471,7 +472,7 @@ const onUpdateSubTitle = (subTitle) => {
|
||||||
|
|
||||||
sendQuery(prepareSynonym()).then((res) => {
|
sendQuery(prepareSynonym()).then((res) => {
|
||||||
loadedItems.value = res.hits.hits;
|
loadedItems.value = res.hits.hits;
|
||||||
showNoData.value = loadedItems.value?.length == 0;
|
showNoData.value = Boolean(loadedItems.value?.length);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
const onAddNewTitle = (subTitles) => {
|
const onAddNewTitle = (subTitles) => {
|
||||||
|
@ -483,7 +484,7 @@ const onAddNewTitle = (subTitles) => {
|
||||||
|
|
||||||
sendQuery(prepareSynonym()).then((res) => {
|
sendQuery(prepareSynonym()).then((res) => {
|
||||||
loadedItems.value = res.hits.hits;
|
loadedItems.value = res.hits.hits;
|
||||||
showNoData.value = loadedItems.value?.length == 0;
|
showNoData.value = Boolean(loadedItems.value?.length);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -561,19 +562,19 @@ const SearchList = defineAsyncComponent(
|
||||||
<div class="background-image h-full" :style="backgroundImageStyle">
|
<div class="background-image h-full" :style="backgroundImageStyle">
|
||||||
<navigation-menu></navigation-menu>
|
<navigation-menu></navigation-menu>
|
||||||
|
|
||||||
<div class="logo-container pt-0 xl:pt-18">
|
<div class="logo-container pt-0 xl:pt-19">
|
||||||
<div
|
<div
|
||||||
class="search-box-container flex justify-center"
|
class="search-box-container flex justify-center"
|
||||||
:class="{ 'pb-0': route.name == 'hadithaSearch' }"
|
:class="[route.name == 'hadithaSearch' ? 'py-6' : 'pb-16']"
|
||||||
>
|
>
|
||||||
<div class="haditha-search-root-wrapper search-page">
|
<div class="haditha-search-root-wrapper search-page flex flex-col md:flex-row">
|
||||||
<div
|
<div
|
||||||
class="haditha-search-root"
|
class="haditha-search-root grow-1"
|
||||||
:class="{ 'no-backdrop': route.query.f_aik?.length }"
|
:class="{ 'no-backdrop': route.query.f_aik?.length }"
|
||||||
>
|
>
|
||||||
<!-- وقتی کاربر در صفحه نمایش بر روی مشابه کلیک میکند و به صفحه جستجو وارد میشود. -->
|
<!-- وقتی کاربر در صفحه نمایش بر روی مشابه کلیک میکند و به صفحه جستجو وارد میشود. -->
|
||||||
<!-- v-if="route.query.f_aik?.length" -->
|
<!-- v-if="route.query.f_aik?.length" -->
|
||||||
<div v-if="false" class="prev-search-item flex items-center">
|
<div v-if="route.query.f_aik?.length" class="prev-search-item flex items-center">
|
||||||
<!-- <span class="total">۴۷ مشابه </span> -->
|
<!-- <span class="total">۴۷ مشابه </span> -->
|
||||||
<span class="text me-auto">
|
<span class="text me-auto">
|
||||||
{{ route.query.f_aik }}
|
{{ route.query.f_aik }}
|
||||||
|
@ -620,19 +621,13 @@ const SearchList = defineAsyncComponent(
|
||||||
</div>
|
</div>
|
||||||
<!-- 'similar-mode': route.query.f_aik?.length, -->
|
<!-- 'similar-mode': route.query.f_aik?.length, -->
|
||||||
<UButton
|
<UButton
|
||||||
v-if="searchTerm.length"
|
|
||||||
class="my-trailing-button close-mode"
|
|
||||||
@click.prevent="resetForm"
|
|
||||||
icon="i-lucide-x"
|
|
||||||
>
|
|
||||||
<!-- <UIcon name="i-lucide-search" /> -->
|
|
||||||
</UButton>
|
|
||||||
<UButton
|
|
||||||
v-else
|
|
||||||
class="my-trailing-button"
|
class="my-trailing-button"
|
||||||
icon="i-haditha-search"
|
:class="{
|
||||||
|
'close-mode': searchTerm.length,
|
||||||
|
}"
|
||||||
|
@click.prevent="onSearchButtonClick"
|
||||||
|
:icon="searchButtonIcon"
|
||||||
>
|
>
|
||||||
<!-- @click.prevent="onSearchButtonClick" -->
|
|
||||||
<!-- <UIcon name="i-lucide-search" /> -->
|
<!-- <UIcon name="i-lucide-search" /> -->
|
||||||
</UButton>
|
</UButton>
|
||||||
<!-- </client-only> -->
|
<!-- </client-only> -->
|
||||||
|
@ -913,6 +908,11 @@ const SearchList = defineAsyncComponent(
|
||||||
<p class="no-data-text">"نتیجهای یافت نشد!</p>
|
<p class="no-data-text">"نتیجهای یافت نشد!</p>
|
||||||
</no-data>
|
</no-data>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- <the-content-loading
|
||||||
|
v-show="loading"
|
||||||
|
class="absolute-positioning"
|
||||||
|
></the-content-loading> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -956,9 +956,9 @@ const SearchList = defineAsyncComponent(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-box-container {
|
/* .search-box-container {
|
||||||
padding-top: 0.7em;
|
padding-top: 0.7em;
|
||||||
padding-bottom: 4em; /*64px */
|
padding-bottom: 4em; /*64px
|
||||||
|
|
||||||
&.pb-0 {
|
&.pb-0 {
|
||||||
padding-bottom: 0 !important;
|
padding-bottom: 0 !important;
|
||||||
|
@ -966,7 +966,7 @@ const SearchList = defineAsyncComponent(
|
||||||
&.pt-0 {
|
&.pt-0 {
|
||||||
padding-top: 0 !important;
|
padding-top: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
|
||||||
.search-list-contianer {
|
.search-list-contianer {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -1006,7 +1006,7 @@ const SearchList = defineAsyncComponent(
|
||||||
}
|
}
|
||||||
|
|
||||||
.haditha-search-root-wrapper {
|
.haditha-search-root-wrapper {
|
||||||
max-width: 656px;
|
max-width: 1200px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 1em;
|
margin: 0 1em;
|
||||||
|
|
||||||
|
@ -1165,7 +1165,7 @@ const SearchList = defineAsyncComponent(
|
||||||
.search-filter {
|
.search-filter {
|
||||||
.filter-item {
|
.filter-item {
|
||||||
/* width: 81px; */
|
/* width: 81px; */
|
||||||
height: 40px;
|
height: 56px;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
border-width: 0.3px;
|
border-width: 0.3px;
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user