From d5ff3ee7c096022414cff33ceadaf54cc40d014e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BE=D0=BD=D1=81=D1=82=D0=B0=D0=BD=D1=82=D0=B8?= =?UTF-8?q?=D0=BD=20=D0=A3=D0=BA=D0=BE=D0=BB=D0=BE=D0=B2?= <“ukolov.konst@gmail.com”> Date: Mon, 5 Aug 2024 10:32:22 +0300 Subject: [PATCH] feat: add product page --- pages/products/[id].vue | 7 ++++++ src/entities/product/index.ts | 2 +- src/entities/product/ui/ProductCard.vue | 19 ++++++++-------- src/entities/product/ui/ProductImage.vue | 28 ++++++++++++++++++++++++ src/entities/product/ui/index.ts | 1 + src/pages/product/index.ts | 1 + src/pages/product/ui/ProductPage.vue | 23 +++++++++++++++++++ src/pages/product/ui/index.ts | 1 + 8 files changed, 71 insertions(+), 11 deletions(-) create mode 100644 pages/products/[id].vue create mode 100644 src/entities/product/ui/ProductImage.vue create mode 100644 src/pages/product/index.ts create mode 100644 src/pages/product/ui/ProductPage.vue create mode 100644 src/pages/product/ui/index.ts diff --git a/pages/products/[id].vue b/pages/products/[id].vue new file mode 100644 index 0000000..5919520 --- /dev/null +++ b/pages/products/[id].vue @@ -0,0 +1,7 @@ + + + diff --git a/src/entities/product/index.ts b/src/entities/product/index.ts index 5c91d75..cb851da 100644 --- a/src/entities/product/index.ts +++ b/src/entities/product/index.ts @@ -1 +1 @@ -export { ProductCard } from './ui' +export { ProductCard, ProductImage } from './ui' diff --git a/src/entities/product/ui/ProductCard.vue b/src/entities/product/ui/ProductCard.vue index 804a430..8b2591c 100644 --- a/src/entities/product/ui/ProductCard.vue +++ b/src/entities/product/ui/ProductCard.vue @@ -1,4 +1,5 @@ + + + + diff --git a/src/entities/product/ui/index.ts b/src/entities/product/ui/index.ts index 50c64fe..800235b 100644 --- a/src/entities/product/ui/index.ts +++ b/src/entities/product/ui/index.ts @@ -1 +1,2 @@ export { default as ProductCard } from './ProductCard.vue' +export { default as ProductImage } from './ProductImage.vue' diff --git a/src/pages/product/index.ts b/src/pages/product/index.ts new file mode 100644 index 0000000..607cff0 --- /dev/null +++ b/src/pages/product/index.ts @@ -0,0 +1 @@ +export { ProductPage } from './ui' diff --git a/src/pages/product/ui/ProductPage.vue b/src/pages/product/ui/ProductPage.vue new file mode 100644 index 0000000..71f1ea7 --- /dev/null +++ b/src/pages/product/ui/ProductPage.vue @@ -0,0 +1,23 @@ + + + diff --git a/src/pages/product/ui/index.ts b/src/pages/product/ui/index.ts new file mode 100644 index 0000000..dae9ec7 --- /dev/null +++ b/src/pages/product/ui/index.ts @@ -0,0 +1 @@ +export { default as ProductPage } from './ProductPage.vue'