From 0f5b867d214bee8eb859b8da30a6474d7917d625 Mon Sep 17 00:00:00 2001 From: ali josheghani Date: Tue, 4 Jun 2024 00:07:05 +0330 Subject: [PATCH] feat : change color theme second custom --- .../header/components/navbar/NavbarLink.tsx | 2 +- src/components/loaderSpin/index.tsx | 2 +- src/components/particle/index.tsx | 2 +- src/components/productBox/index.tsx | 14 +++++++++++++- src/components/pulsatingCircle/index.tsx | 4 ++-- 5 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/components/header/components/navbar/NavbarLink.tsx b/src/components/header/components/navbar/NavbarLink.tsx index a631fee..fc093fc 100644 --- a/src/components/header/components/navbar/NavbarLink.tsx +++ b/src/components/header/components/navbar/NavbarLink.tsx @@ -7,7 +7,7 @@ const NavbarLink = ({ to, children, onClick }: NavbarLinkProps) => { to={to} className={(navData: NavData) => navData.isActive - ? "block px-2 mx-3 py-2 text-base font-medium text-yellow-600 border-b-2 border-yellow-600" + ? "block px-2 mx-3 py-2 text-base font-medium text-secondTheme border-b-2 border-secondTheme" : "block px-2 mx-3 py-2 rounded-md text-base font-medium text-white" } onClick={onClick} diff --git a/src/components/loaderSpin/index.tsx b/src/components/loaderSpin/index.tsx index ec3260f..32dd1f5 100644 --- a/src/components/loaderSpin/index.tsx +++ b/src/components/loaderSpin/index.tsx @@ -5,7 +5,7 @@ const LoaderSpin = ({ children }: { children: React.ReactNode }) => {
{ + const [isOpen, setIsOpen] = useState(false); + const toggleModal = () => { + setIsOpen(true); + }; return (
+

{title}

@@ -41,7 +48,12 @@ const ProductBox = ({ {price} تومان
- +
); diff --git a/src/components/pulsatingCircle/index.tsx b/src/components/pulsatingCircle/index.tsx index 8acdf03..cabdac8 100644 --- a/src/components/pulsatingCircle/index.tsx +++ b/src/components/pulsatingCircle/index.tsx @@ -3,10 +3,10 @@ import { FC } from "react"; const PulsatingCircle: FC = () => { return (
-
+
1
-
+
); };