+
@@ -65,7 +65,7 @@ const TimerDown = () => {
style={"text-[27px] text-red-900 "}
/>
-
ساعت
+
ساعت
@@ -74,7 +74,7 @@ const TimerDown = () => {
style={"text-[27px] text-red-900 "}
/>
-
دقیقه
+
دقیقه
@@ -85,7 +85,7 @@ const TimerDown = () => {
style={"text-[27px] text-red-900 "}
/>
-
ثانیه
+
ثانیه
diff --git a/next.config.js b/next.config.js
index 51f61fb..9135059 100644
--- a/next.config.js
+++ b/next.config.js
@@ -3,6 +3,12 @@ const nextConfig = {
reactStrictMode: false, // React Strict Mode is off
images: {
domains: ["storage.vesmook.com"],
+ remotePatterns: [
+ {
+ protocol: "https",
+ hostname: "storage.vesmook.com",
+ },
+ ],
},
};
diff --git a/plugins/bottomSheet/BottomSheetSeeOrder.jsx b/plugins/bottomSheet/BottomSheetSeeOrder.jsx
new file mode 100644
index 0000000..98dc0df
--- /dev/null
+++ b/plugins/bottomSheet/BottomSheetSeeOrder.jsx
@@ -0,0 +1,152 @@
+"use client";
+
+import CardCart from "@comp/Cards/CardCart/page";
+import AppContext from "@ctx/AppContext";
+import Image from "next/image";
+import Link from "next/link";
+import Chapar from "plugins/Chapar";
+import PersianNumber from "plugins/PersianNumber";
+import { useContext, useState } from "react";
+import { BottomSheet } from "react-spring-bottom-sheet";
+import { toast } from "react-toastify";
+import logo from "@img/logo.png";
+
+const BottomSheetSeeOrder = ({ id }) => {
+ console.log("id", id);
+ const CTX = useContext(AppContext);
+
+ const [bag, setBag] = useState([]);
+
+ const handleOpen = async (e) => {
+ if (e.type == "OPEN") {
+ try {
+ const data = await Chapar.get(
+ `${process.env.NEXT_PUBLIC_API_URL}/order/${id}`,
+ {
+ headers: {
+ Authorization: localStorage.getItem("token"),
+ },
+ }
+ );
+ setBag(data);
+ } catch ({ error, status }) {
+ toast.error(`${error?.response?.data?.message}`, {
+ position: "bottom-right",
+ closeOnClick: true,
+ });
+ }
+ }
+ };
+
+ return (
+
handleOpen(e)}
+ open={CTX.state.bottomSheetSeeOrderOpen}
+ onDismiss={() => CTX.setBottomSheetSeeOrderOpen(false)}
+ className={"z-50 relative"}
+ >
+ {/* {bag && bag.length > 0 && ( */}
+
+ {bag.orderProducts?.map((e) => (
+
+
+
+ محصول موجود در سبد
+
+
+ {/*
*/}
+
+ {bag.orderProducts.map((e, index) => (
+
+
+
+ {!!e.mainImage ? (
+
+ ) : (
+
+
+
+ )}
+
+
+
+
+
+ {e?.productName}
+
+
+
+
+
+
+ {e?.hasDiscount ? (
+
+ ) : (
+
+ )}
+
+
+
+
+ ))}
+
+
+ ))}
+
+ {/* )} */}
+
+ );
+};
+
+export default BottomSheetSeeOrder;
diff --git a/public/android-chrome-192x192.png b/public/android-chrome-192x192.png
new file mode 100644
index 0000000..49d9a61
Binary files /dev/null and b/public/android-chrome-192x192.png differ
diff --git a/public/android-chrome-512x512.png b/public/android-chrome-512x512.png
new file mode 100644
index 0000000..98cf08a
Binary files /dev/null and b/public/android-chrome-512x512.png differ
diff --git a/public/apple-touch-icon.png b/public/apple-touch-icon.png
new file mode 100644
index 0000000..a8186f2
Binary files /dev/null and b/public/apple-touch-icon.png differ
diff --git a/public/browserconfig.xml b/public/browserconfig.xml
new file mode 100644
index 0000000..98d065e
--- /dev/null
+++ b/public/browserconfig.xml
@@ -0,0 +1,9 @@
+
+
+
+
+
+ #2ab0da
+
+
+
diff --git a/public/favicon-16x16.png b/public/favicon-16x16.png
new file mode 100644
index 0000000..18a5dec
Binary files /dev/null and b/public/favicon-16x16.png differ
diff --git a/public/favicon-32x32.png b/public/favicon-32x32.png
new file mode 100644
index 0000000..ce2379b
Binary files /dev/null and b/public/favicon-32x32.png differ
diff --git a/public/favicon.ico b/public/favicon.ico
new file mode 100644
index 0000000..b9adff4
Binary files /dev/null and b/public/favicon.ico differ
diff --git a/public/mstile-150x150.png b/public/mstile-150x150.png
new file mode 100644
index 0000000..753e0c8
Binary files /dev/null and b/public/mstile-150x150.png differ
diff --git a/public/next.svg b/public/next.svg
deleted file mode 100644
index 5174b28..0000000
--- a/public/next.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/public/safari-pinned-tab.svg b/public/safari-pinned-tab.svg
new file mode 100644
index 0000000..47d9376
--- /dev/null
+++ b/public/safari-pinned-tab.svg
@@ -0,0 +1,2153 @@
+
+
+
+
+Created by potrace 1.14, written by Peter Selinger 2001-2017
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/site.webmanifest b/public/site.webmanifest
new file mode 100644
index 0000000..5e286c9
--- /dev/null
+++ b/public/site.webmanifest
@@ -0,0 +1,19 @@
+{
+ "name": "vesmeh",
+ "short_name": "vesmeh",
+ "icons": [
+ {
+ "src": "/android-chrome-192x192.png",
+ "sizes": "192x192",
+ "type": "image/png"
+ },
+ {
+ "src": "/android-chrome-512x512.png",
+ "sizes": "512x512",
+ "type": "image/png"
+ }
+ ],
+ "theme_color": "#2ab0da",
+ "background_color": "#2ab0da",
+ "display": "standalone"
+}
diff --git a/public/vercel.svg b/public/vercel.svg
deleted file mode 100644
index d2f8422..0000000
--- a/public/vercel.svg
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/src/app/layout.jsx b/src/app/layout.jsx
index 473486d..0108ee1 100644
--- a/src/app/layout.jsx
+++ b/src/app/layout.jsx
@@ -1,6 +1,19 @@
import RootData from "@comp/AppsComponent/RootData/page";
+import Head from "next/head";
export const metadata = {
+ icons: {
+ icon: [
+ {
+ url: "/favicon-16x16.png",
+ media: "(prefers-color-scheme: light)",
+ },
+ {
+ url: "/favicon-16x16.png",
+ media: "(prefers-color-scheme: dark)",
+ },
+ ],
+ },
title: {
template:
"%s | خرید لوازم آرایشی و بهداشتی قیمت مناسب و اصل | فروشگاه اینترنتی وسمه",
diff --git a/src/app/page.jsx b/src/app/page.jsx
index b8dda1b..8e1d82a 100644
--- a/src/app/page.jsx
+++ b/src/app/page.jsx
@@ -52,10 +52,14 @@ export default function Page() {
-