+
+
+ {{ item.name }}
+
+
+ {{ item.tax_name }}
+
+
-
€ 4,825.44
+
+ {{ item.formatted_price }}
+
@@ -61,19 +72,27 @@ type Component = {
];
};
-const itemCount = ref(1);
+const itemCount = ref(4);
+const productStore = useProductStore();
-function updateItemCount() {
+async function updateItemCount() {
const width = window.innerWidth;
- if (width >= 1280) itemCount.value = 5;
+ if (width >= 1800) itemCount.value = 5;
+ else if (width >= 1200) itemCount.value = 4;
else if (width >= 768) itemCount.value = 3;
else if (width >= 640) itemCount.value = 2;
else itemCount.value = 1;
}
-onMounted(() => {
- updateItemCount();
+watch(itemCount, async() => {
+ await productStore.getList(itemCount.value);
+});
+
+onMounted(async () => {
+ await updateItemCount();
window.addEventListener("resize", updateItemCount);
+
+ await productStore.getList(itemCount.value);
});
onBeforeUnmount(() => {
diff --git a/components/ButtonArrow.vue b/components/ui/ButtonArrow.vue
similarity index 100%
rename from components/ButtonArrow.vue
rename to components/ui/ButtonArrow.vue
diff --git a/layouts/default.vue b/layouts/default.vue
index 4edbd80..0e63a03 100644
--- a/layouts/default.vue
+++ b/layouts/default.vue
@@ -3,6 +3,13 @@
class="bg-bg-light dark:bg-bg-dark text-text-light dark:text-text-dark font-inter flex min-h-screen flex-col overflow-hidden"
>
+
diff --git a/public/logo-dark.png b/public/logo-dark.png
deleted file mode 100644
index 1c5c143..0000000
Binary files a/public/logo-dark.png and /dev/null differ
diff --git a/public/logo-dark.svg b/public/logo-dark.svg
new file mode 100644
index 0000000..1aca376
--- /dev/null
+++ b/public/logo-dark.svg
@@ -0,0 +1,14 @@
+
diff --git a/public/logo-footer-dark.svg b/public/logo-footer-dark.svg
new file mode 100644
index 0000000..bf89a2d
--- /dev/null
+++ b/public/logo-footer-dark.svg
@@ -0,0 +1,10 @@
+
diff --git a/public/logo-footer.svg b/public/logo-footer.svg
index 6d4fe4c..6f7aff0 100644
--- a/public/logo-footer.svg
+++ b/public/logo-footer.svg
@@ -1,8 +1,8 @@