From e1d3d50c4eceb7e9bd4708864ef3e85070e83fae Mon Sep 17 00:00:00 2001 From: DotNetTitan Date: Thu, 5 Sep 2024 21:44:14 +0530 Subject: [PATCH] ... --- src/components/GlobalSearch.vue | 33 ++++++++++++++++++++++----------- src/components/Layout.vue | 7 +++++-- src/components/SearchBar.vue | 33 ++++++++++++++++++++++----------- src/views/HomeView.vue | 4 ++-- 4 files changed, 51 insertions(+), 26 deletions(-) diff --git a/src/components/GlobalSearch.vue b/src/components/GlobalSearch.vue index d4dcd21..8c7c148 100644 --- a/src/components/GlobalSearch.vue +++ b/src/components/GlobalSearch.vue @@ -9,22 +9,24 @@ @blur="clearSuggestions" type="text" placeholder="Search products..." - class="w-full bg-white dark:bg-gray-700 border border-gray-300 dark:border-gray-600 rounded-md pl-10 pr-4 py-1.5 text-base focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition-all duration-200" + class="w-full bg-gray-100 dark:bg-gray-600 border border-gray-300 dark:border-gray-500 rounded-md pl-10 pr-4 py-2 text-base focus:ring-2 focus:ring-indigo-500 focus:border-indigo-500 transition-all duration-200 shadow-sm" >
- + + + @@ -85,4 +87,13 @@ selectedSuggestionIndex.value = -1 showSuggestions.value = false } - \ No newline at end of file + + + \ No newline at end of file diff --git a/src/components/Layout.vue b/src/components/Layout.vue index 5ff0be6..6b56f17 100644 --- a/src/components/Layout.vue +++ b/src/components/Layout.vue @@ -1,6 +1,6 @@ @@ -79,4 +81,13 @@ watch(() => props.suggestions, () => { selectedSuggestionIndex.value = -1 }) - \ No newline at end of file + + + \ No newline at end of file diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue index 8761819..0e8405b 100644 --- a/src/views/HomeView.vue +++ b/src/views/HomeView.vue @@ -28,7 +28,7 @@

Featured Categories

{{ category }} @@ -36,7 +36,7 @@
+ class="bg-white bg-opacity-20 dark:bg-gray-700 dark:bg-opacity-50 rounded-lg p-4 text-center transform transition duration-300 hover:scale-105 cursor-pointer backdrop-filter backdrop-blur-sm">

{{ product.title }}

{{ truncateDescription(product.description) }}