This commit is contained in:
f4ilji
2024-10-04 12:48:19 +05:00
parent 21a6e9073b
commit cebc584a14
303 changed files with 8224 additions and 2563 deletions
+10 -10
View File
@@ -152,6 +152,13 @@ import SearchModal from "@/Components/Modals/SearchModal.vue";
export default {
name: 'MainPageNavBar',
components: {
SearchModal,
MobileNavbar,
BaseIcon,
ClientGlobalSearch,
Link,
},
props: {
sections: {
type: Object,
@@ -169,13 +176,7 @@ export default {
bvi: null
}
},
components: {
SearchModal,
MobileNavbar,
BaseIcon,
ClientGlobalSearch,
Link,
},
methods: {
isSameRoute(route) {
if (route === this.$page.props.ziggy.location) {
@@ -186,7 +187,6 @@ export default {
const currentUrl = this.$page.props.ziggy.url + '/' + route;
if (currentLocation === currentUrl) {
console.log(route);
return true;
}
@@ -221,6 +221,8 @@ export default {
this.underSliderHeader = mainSlider.getBoundingClientRect().bottom < 50
this.scrollPosition = window.pageYOffset
this.headerFilter = this.scrollPosition > 90
} else {
this.headerFilter = true
}
},
getCookie(name) {
@@ -236,11 +238,9 @@ export default {
},
mounted() {
window.addEventListener('scroll', this.handleScroll)
window.addEventListener('scroll', this.checkSlider)
console.log(this.getCookie('bvi_panelActive') === null)
if (this.getCookie('bvi_panelActive') === null) {
this.bvi = new isvek.Bvi({
target: '.className',
+1 -6
View File
@@ -1,7 +1,7 @@
<template>
<div id="open-mobile-nav" class="hs-overlay hs-overlay-open:translate-x-0 hidden [--overlay-backdrop:false] -translate-x-full fixed top-0 start-0 transition-all duration-300 transform h-full w-full w-full z-[80] bg-white border-e" role="dialog" tabindex="-1" aria-labelledby="open-mobile-nav-label">
<div id="open-mobile-nav" class="hs-overlay hs-overlay-open hs-overlay-open:translate-x-0 hidden [--overlay-backdrop:false] -translate-x-full fixed top-0 start-0 transition-all duration-300 transform h-full w-full z-[80] bg-white border-e" role="dialog" tabindex="-1" aria-labelledby="open-mobile-nav-label">
<div class="flex justify-between items-center py-3 px-4 border-b">
<img class="max-w-[75px] p-2"
src="/logos/only_logo.svg" alt="">
@@ -91,10 +91,6 @@
<BaseIcon class="w-4" name="search" />
Поиск
</a>
</li>
</ul>
</nav>
@@ -183,7 +179,6 @@ export default {
<style scoped>
.header-filter {
transition: all 0.3s;
backdrop-filter: saturate(180%) blur(7px);