|
@@ -90,8 +90,18 @@
|
|
data-aria-interaction-area
|
|
data-aria-interaction-area
|
|
aria-description="You've reached the search field, please use the tab key to browse the content."
|
|
aria-description="You've reached the search field, please use the tab key to browse the content."
|
|
>
|
|
>
|
|
- <input placeholder="search..." />
|
|
|
|
- <svg-icon name="search" color="var(--van-primary-color)" />
|
|
|
|
|
|
+ <template v-if="$route.name !== 'Search'">
|
|
|
|
+ <input
|
|
|
|
+ v-model="searchTxt"
|
|
|
|
+ placeholder="search..."
|
|
|
|
+ @keyup.enter="handleSearch(searchTxt)"
|
|
|
|
+ />
|
|
|
|
+ <svg-icon
|
|
|
|
+ name="search"
|
|
|
|
+ color="var(--van-primary-color)"
|
|
|
|
+ @click="handleSearch(searchTxt)"
|
|
|
|
+ />
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -112,15 +122,16 @@
|
|
aria-description="You've reached the search field, please use the tab key to browse the content."
|
|
aria-description="You've reached the search field, please use the tab key to browse the content."
|
|
>
|
|
>
|
|
<div class="searchHover">
|
|
<div class="searchHover">
|
|
- <div class="ll" @click="handleSearch">
|
|
|
|
|
|
+ <div class="ll" @click="handleSearch(searchTxt2)">
|
|
<img src="@/assets/images/LayoutSearch2.jpg" alt="" />
|
|
<img src="@/assets/images/LayoutSearch2.jpg" alt="" />
|
|
</div>
|
|
</div>
|
|
- <div class="rr" @keyup.enter="handleSearch">
|
|
|
|
|
|
+ <div class="rr">
|
|
<input
|
|
<input
|
|
type="text"
|
|
type="text"
|
|
placeholder="search"
|
|
placeholder="search"
|
|
- v-model="searchTxt"
|
|
|
|
- :aria-description="searchTxt || 'search'"
|
|
|
|
|
|
+ v-model="searchTxt2"
|
|
|
|
+ :aria-description="searchTxt2 || 'search'"
|
|
|
|
+ @keyup.enter="handleSearch(searchTxt2)"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -234,12 +245,13 @@ const skipTow = (url: string | number, about?: boolean) => {
|
|
} else router.push(url as string);
|
|
} else router.push(url as string);
|
|
};
|
|
};
|
|
|
|
|
|
-const handleSearch = () => {
|
|
|
|
|
|
+const handleSearch = (txt: string) => {
|
|
router.push({
|
|
router.push({
|
|
name: "Search",
|
|
name: "Search",
|
|
- params: { txt: searchTxt2.value },
|
|
|
|
|
|
+ query: { txt: txt },
|
|
});
|
|
});
|
|
searchTxt2.value = "";
|
|
searchTxt2.value = "";
|
|
|
|
+ searchTxt.value = "";
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -250,6 +262,7 @@ const handleSearch = () => {
|
|
--primary-hover-bg: rgba(204, 0, 3, 0.8);
|
|
--primary-hover-bg: rgba(204, 0, 3, 0.8);
|
|
--black-text-color: black;
|
|
--black-text-color: black;
|
|
--gray-text-color: #666;
|
|
--gray-text-color: #666;
|
|
|
|
+ --gray2-text-color: #a6a6a6;
|
|
--white-bg: white;
|
|
--white-bg: white;
|
|
--white-text-color: white;
|
|
--white-text-color: white;
|
|
|
|
|
|
@@ -259,6 +272,7 @@ const handleSearch = () => {
|
|
--primary-hover-bg: white;
|
|
--primary-hover-bg: white;
|
|
--black-text-color: black;
|
|
--black-text-color: black;
|
|
--gray-text-color: #666;
|
|
--gray-text-color: #666;
|
|
|
|
+ --gray2-text-color: #a6a6a6;
|
|
--white-bg: white;
|
|
--white-bg: white;
|
|
--white-text-color: black;
|
|
--white-text-color: black;
|
|
}
|
|
}
|
|
@@ -268,6 +282,7 @@ const handleSearch = () => {
|
|
--primary-hover-bg: #00f;
|
|
--primary-hover-bg: #00f;
|
|
--black-text-color: #ff0;
|
|
--black-text-color: #ff0;
|
|
--gray-text-color: #ff0;
|
|
--gray-text-color: #ff0;
|
|
|
|
+ --gray2-text-color: #ff0;
|
|
--white-bg: #00f;
|
|
--white-bg: #00f;
|
|
--white-text-color: #ff0;
|
|
--white-text-color: #ff0;
|
|
}
|
|
}
|
|
@@ -277,6 +292,7 @@ const handleSearch = () => {
|
|
--primary-hover-bg: #ff0;
|
|
--primary-hover-bg: #ff0;
|
|
--black-text-color: black;
|
|
--black-text-color: black;
|
|
--gray-text-color: black;
|
|
--gray-text-color: black;
|
|
|
|
+ --gray2-text-color: black;
|
|
--white-bg: #ff0;
|
|
--white-bg: #ff0;
|
|
--white-text-color: black;
|
|
--white-text-color: black;
|
|
}
|
|
}
|
|
@@ -286,11 +302,18 @@ const handleSearch = () => {
|
|
--primary-hover-bg: black;
|
|
--primary-hover-bg: black;
|
|
--black-text-color: #ff0;
|
|
--black-text-color: #ff0;
|
|
--gray-text-color: #ff0;
|
|
--gray-text-color: #ff0;
|
|
|
|
+ --gray2-text-color: #ff0;
|
|
--white-bg: black;
|
|
--white-bg: black;
|
|
--white-text-color: #ff0;
|
|
--white-text-color: #ff0;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+.aria-control-target {
|
|
|
|
+ position: relative;
|
|
|
|
+ min-height: 100vh;
|
|
|
|
+ padding-bottom: 45px;
|
|
|
|
+}
|
|
|
|
+
|
|
.topnav {
|
|
.topnav {
|
|
position: absolute;
|
|
position: absolute;
|
|
top: 0;
|
|
top: 0;
|
|
@@ -440,6 +463,10 @@ const handleSearch = () => {
|
|
}
|
|
}
|
|
|
|
|
|
.footer {
|
|
.footer {
|
|
|
|
+ position: absolute;
|
|
|
|
+ left: 0;
|
|
|
|
+ right: 0;
|
|
|
|
+ bottom: 0;
|
|
display: flex;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
justify-content: space-between;
|
|
padding: 0 100px;
|
|
padding: 0 100px;
|