From 67131615c388b553bb1d82516e1167ef84ed30e6 Mon Sep 17 00:00:00 2001 From: Jaroslav Drzik Date: Thu, 7 Mar 2024 14:10:11 +0100 Subject: [PATCH] Add image popup, price to float in search --- .DS_Store | Bin 6148 -> 6148 bytes package.json | 3 +- resources/.DS_Store | Bin 6148 -> 6148 bytes resources/js/.DS_Store | Bin 6148 -> 6148 bytes resources/js/Layouts/GuestLayout.vue | 10 +- resources/js/Layouts/MegaMenu.vue | 212 +++++++++++++++++++++++++++ resources/js/Layouts/UserOptions.vue | 20 +++ resources/js/Pages/IkeaRoot.vue | 31 +++- 8 files changed, 270 insertions(+), 6 deletions(-) create mode 100644 resources/js/Layouts/MegaMenu.vue create mode 100644 resources/js/Layouts/UserOptions.vue diff --git a/.DS_Store b/.DS_Store index b168a04787fe9c2edec5e2e98abc8f3642a36ad6..e50c26ae36fa4f3dfdee34ee8b557567e3228a92 100644 GIT binary patch delta 131 zcmZoMXfc=|&e%S&P;8=}q9`*10|O%ig8&0VF+&MM5kn$FL0Zbhjp}wF2~LJ2hI}9_ zL6$5|PRh^E0m=fUix^UYQuz#}Kvpt{ot6TT-q>x&zL}jvfP=ApOa FGXQec7UTc` delta 76 zcmZoMXfc=|&Zs)EP diff --git a/resources/js/.DS_Store b/resources/js/.DS_Store index c32883842752acf742ff9e4a68f0123bb24f31f0..809f381fa0e84fd76a147adf88124c93242a52ab 100644 GIT binary patch delta 47 zcmZoMXfc@J&&V_}z + + + + Home @@ -52,9 +58,11 @@ onMounted(fetch_menu); + +
- \ No newline at end of file + diff --git a/resources/js/Layouts/MegaMenu.vue b/resources/js/Layouts/MegaMenu.vue new file mode 100644 index 0000000..cc7b2f4 --- /dev/null +++ b/resources/js/Layouts/MegaMenu.vue @@ -0,0 +1,212 @@ + diff --git a/resources/js/Layouts/UserOptions.vue b/resources/js/Layouts/UserOptions.vue new file mode 100644 index 0000000..b312a72 --- /dev/null +++ b/resources/js/Layouts/UserOptions.vue @@ -0,0 +1,20 @@ + diff --git a/resources/js/Pages/IkeaRoot.vue b/resources/js/Pages/IkeaRoot.vue index 1b3137a..03060f3 100644 --- a/resources/js/Pages/IkeaRoot.vue +++ b/resources/js/Pages/IkeaRoot.vue @@ -25,7 +25,7 @@ import Popper from "vue3-popper"; const screenWidth = ref(screen.width) const screenHeight = ref(screen.height) -const hover = ref(false); +const hover = ref(true); const hoverImage = ref(null); const sdropdown = ref([ @@ -334,7 +334,7 @@ const async_search = async () => { img: i.mainImageUrl, code: i.code, url: i.url, - price: i.salesPrice, + price: parseFloat(i.salesPrice), units: i.priceUnit, descLong: i.mainImageAlt, }; @@ -438,8 +438,32 @@ watch(ccodes, (codes) => {