diff --git a/src/App.vue b/src/App.vue index 69db88d..6f801f0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,7 +6,7 @@ \ No newline at end of file diff --git a/src/views/Header.vue b/src/components/Header.vue similarity index 100% rename from src/views/Header.vue rename to src/components/Header.vue diff --git a/src/components/Master.vue b/src/components/Master.vue index 2465f69..2d9c7c9 100644 --- a/src/components/Master.vue +++ b/src/components/Master.vue @@ -12,12 +12,14 @@ Categories :
+ class="ml-1 px-3 py-1 cursor-pointer hover:bg-gray-700 hover:text-gray-200 rounded text-sm focus:outline-none" + :class="searchText.length === 0 ? 'bg-gray-700 text-gray-200' : 'bg-gray-200 text-gray-700'"> + all + + class="ml-2 px-3 py-1 cursor-pointer hover:bg-gray-700 hover:text-gray-200 rounded text-sm focus:outline-none" + :class="category.name === searchText? 'bg-gray-700 text-gray-200' : 'bg-gray-200 text-gray-700'">{{ category.name }}
diff --git a/src/components/UI/Alert/NotificationPop.vue b/src/components/UI/Alert/NotificationPop.vue index ed71182..73cb097 100644 --- a/src/components/UI/Alert/NotificationPop.vue +++ b/src/components/UI/Alert/NotificationPop.vue @@ -16,7 +16,7 @@ \ No newline at end of file diff --git a/src/views/ViewComponent.vue b/src/components/Utilities/ViewComponent.vue similarity index 97% rename from src/views/ViewComponent.vue rename to src/components/Utilities/ViewComponent.vue index 0855947..2e42919 100644 --- a/src/views/ViewComponent.vue +++ b/src/components/Utilities/ViewComponent.vue @@ -33,7 +33,7 @@