From 2c9de38acafd4faca4f7325891ef9be1d4410963 Mon Sep 17 00:00:00 2001 From: marzban-dev Date: Fri, 13 Dec 2024 23:47:50 +0330 Subject: [PATCH] Create product view section --- frontend/assets/css/tailwind.css | 1 + frontend/components/global/ProductColor.vue | 36 ++++++++++++ .../global/product-detail/InfoCard.vue | 20 +++++++ .../global/product-detail/QuantityCounter.vue | 58 +++++++++++++++++++ .../global/product-detail/Rating.vue | 33 +++++++++++ .../global/product-detail/RemainQuantity.vue | 28 +++++++++ .../global/product-detail/Share.vue | 23 ++++++++ frontend/components/product/ProductView.vue | 55 ++++++++++++++++++ frontend/components/ui/ColorCircle.vue | 23 +++++++- frontend/pages/product/[id].vue | 7 +++ 10 files changed, 283 insertions(+), 1 deletion(-) create mode 100644 frontend/components/global/ProductColor.vue create mode 100644 frontend/components/global/product-detail/InfoCard.vue create mode 100644 frontend/components/global/product-detail/QuantityCounter.vue create mode 100644 frontend/components/global/product-detail/Rating.vue create mode 100644 frontend/components/global/product-detail/RemainQuantity.vue create mode 100644 frontend/components/global/product-detail/Share.vue create mode 100644 frontend/components/product/ProductView.vue create mode 100644 frontend/pages/product/[id].vue diff --git a/frontend/assets/css/tailwind.css b/frontend/assets/css/tailwind.css index 7a9d77f..d5f4c30 100644 --- a/frontend/assets/css/tailwind.css +++ b/frontend/assets/css/tailwind.css @@ -114,6 +114,7 @@ --breakpoint-2xs: 400px; --breakpoint-xs: 480px; + /* ANIMATIONS */ --animate-marquee: marquee 3s linear infinite; diff --git a/frontend/components/global/ProductColor.vue b/frontend/components/global/ProductColor.vue new file mode 100644 index 0000000..f500e02 --- /dev/null +++ b/frontend/components/global/ProductColor.vue @@ -0,0 +1,36 @@ + + + \ No newline at end of file diff --git a/frontend/components/global/product-detail/InfoCard.vue b/frontend/components/global/product-detail/InfoCard.vue new file mode 100644 index 0000000..6972e6e --- /dev/null +++ b/frontend/components/global/product-detail/InfoCard.vue @@ -0,0 +1,20 @@ + + + \ No newline at end of file diff --git a/frontend/components/global/product-detail/QuantityCounter.vue b/frontend/components/global/product-detail/QuantityCounter.vue new file mode 100644 index 0000000..eab8fbb --- /dev/null +++ b/frontend/components/global/product-detail/QuantityCounter.vue @@ -0,0 +1,58 @@ + + + \ No newline at end of file diff --git a/frontend/components/global/product-detail/Rating.vue b/frontend/components/global/product-detail/Rating.vue new file mode 100644 index 0000000..76ae042 --- /dev/null +++ b/frontend/components/global/product-detail/Rating.vue @@ -0,0 +1,33 @@ + + + \ No newline at end of file diff --git a/frontend/components/global/product-detail/RemainQuantity.vue b/frontend/components/global/product-detail/RemainQuantity.vue new file mode 100644 index 0000000..243a894 --- /dev/null +++ b/frontend/components/global/product-detail/RemainQuantity.vue @@ -0,0 +1,28 @@ + + + \ No newline at end of file diff --git a/frontend/components/global/product-detail/Share.vue b/frontend/components/global/product-detail/Share.vue new file mode 100644 index 0000000..aa5afec --- /dev/null +++ b/frontend/components/global/product-detail/Share.vue @@ -0,0 +1,23 @@ + + \ No newline at end of file diff --git a/frontend/components/product/ProductView.vue b/frontend/components/product/ProductView.vue new file mode 100644 index 0000000..9aa13ab --- /dev/null +++ b/frontend/components/product/ProductView.vue @@ -0,0 +1,55 @@ + + + \ No newline at end of file diff --git a/frontend/components/ui/ColorCircle.vue b/frontend/components/ui/ColorCircle.vue index c29cfdf..76e87d7 100644 --- a/frontend/components/ui/ColorCircle.vue +++ b/frontend/components/ui/ColorCircle.vue @@ -1,3 +1,24 @@ + + \ No newline at end of file diff --git a/frontend/pages/product/[id].vue b/frontend/pages/product/[id].vue new file mode 100644 index 0000000..5c80c07 --- /dev/null +++ b/frontend/pages/product/[id].vue @@ -0,0 +1,7 @@ + + + \ No newline at end of file