From 24544eb6800aefc9c784e82c271cfb269b3f787d Mon Sep 17 00:00:00 2001 From: sanjidarimi Date: Wed, 17 Jun 2026 20:22:36 +0600 Subject: [PATCH 1/8] fix:remove unnecessary console and clean up code --- .../admin/projects/ManageProject.tsx | 2 +- src/components/home/ProjectsSection.tsx | 18 ++++++------------ 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/components/admin/projects/ManageProject.tsx b/src/components/admin/projects/ManageProject.tsx index a8bb4df..4a0a32e 100644 --- a/src/components/admin/projects/ManageProject.tsx +++ b/src/components/admin/projects/ManageProject.tsx @@ -13,7 +13,7 @@ export default function ManageProject() { const { data: projectsData, isLoading } = useProjects(); const updateMutation = useUpdateProject(); const deleteMutation = useDeleteProject(); -console.log("project data", projectsData?.data.data.result) + const [selectedProject, setSelectedProject] = useState( null, ); diff --git a/src/components/home/ProjectsSection.tsx b/src/components/home/ProjectsSection.tsx index 2fe7ee4..f720de9 100644 --- a/src/components/home/ProjectsSection.tsx +++ b/src/components/home/ProjectsSection.tsx @@ -7,21 +7,15 @@ import { Link } from "react-router-dom"; import PremiumBadge from "../shared/PremiumBadge"; import { ProjectCard } from "./ProjectCard"; -const gradientColors = [ - "from-neon-blue/90", - "from-neon-purple/90", - "from-neon-green/90", - "from-neon-pink/90", -]; export default function ProjectsSection() { const { data: projectsData } = useProjects({ fields: "category, title, image, liveUrl", limit: 6, }); - console.log(projectsData?.data.data); + const projects = projectsData?.data.data || []; - console.log("project from homepage", projects); + const ref = useRef(null); const isInView = useInView(ref, { once: true, margin: "-100px" }); @@ -31,7 +25,7 @@ export default function ProjectsSection() { ref={ref} className="py-24 relative overflow-hidden bg-secondary/30" > - {/* Background Pattern */} +
- {/* Section Header */} + - {/* Projects Grid */} +
{projects.map((project, index) => { return ( @@ -76,7 +70,7 @@ export default function ProjectsSection() { })}
- {/* See All Button */} + Date: Wed, 17 Jun 2026 20:31:27 +0600 Subject: [PATCH 2/8] fix(not-found):remove unused useEffect that polutted client logs --- src/pages/NotFound.tsx | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/src/pages/NotFound.tsx b/src/pages/NotFound.tsx index 1b30452..c0f5739 100644 --- a/src/pages/NotFound.tsx +++ b/src/pages/NotFound.tsx @@ -1,18 +1,13 @@ -import { Link, useLocation } from "react-router-dom"; -import { useEffect } from "react"; +import { Link } from "react-router-dom"; const NotFound = () => { - const location = useLocation(); - - useEffect(() => { - console.error("404 Error: User attempted to access non-existent route:", location.pathname); - }, [location.pathname]); - return (

404

-

Oops! Page not found

+

+ Oops! Page not found +

Return to Home -- 2.52.0 From aa7ee3f19eeb1be6dab4b44fe1d2c8283e460507 Mon Sep 17 00:00:00 2001 From: sanjidarimi Date: Wed, 17 Jun 2026 20:33:30 +0600 Subject: [PATCH 3/8] fixed --- src/pages/NotFound.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/NotFound.tsx b/src/pages/NotFound.tsx index c0f5739..acf4708 100644 --- a/src/pages/NotFound.tsx +++ b/src/pages/NotFound.tsx @@ -6,7 +6,7 @@ const NotFound = () => {

404

- Oops! Page not found + Oops! Page not found.

Return to Home -- 2.52.0 From a3afa63717b2ce2d02e6541b226c6138b503a8bc Mon Sep 17 00:00:00 2001 From: sanjidarimi Date: Wed, 17 Jun 2026 20:52:40 +0600 Subject: [PATCH 4/8] fix(bug-link):replace link(router) to achor for external url --- src/components/home/BlogSection.tsx | 1 - src/components/home/Footer.tsx | 39 ++++++++++++++++++----------- src/components/home/TeamSection.tsx | 7 ++---- src/pages/BlogArticle.tsx | 14 +++++------ src/pages/Projects.tsx | 5 +--- 5 files changed, 34 insertions(+), 32 deletions(-) diff --git a/src/components/home/BlogSection.tsx b/src/components/home/BlogSection.tsx index c2d675a..6493034 100644 --- a/src/components/home/BlogSection.tsx +++ b/src/components/home/BlogSection.tsx @@ -34,7 +34,6 @@ export default function BlogSection() {
- {/* Section Header */} - {/* Animated gradient divider */} +
- {/* Background decoration */} +
- {/* Circuit pattern background */} +
- {/* Brand */} + - - - {/* Quick Links */} + - {/* Services */} +

- Rangpur, Bangladesh + Rangpur, Bangladesh
techzaa.alpha@gmail.com
@@ -179,13 +181,22 @@ export default function Footer() { © {new Date().getFullYear()} TechZaa. All rights reserved.

- + Privacy Policy - + Terms of Service - + Cookie Policy
diff --git a/src/components/home/TeamSection.tsx b/src/components/home/TeamSection.tsx index 400f0b0..c89e064 100644 --- a/src/components/home/TeamSection.tsx +++ b/src/components/home/TeamSection.tsx @@ -1,11 +1,9 @@ import { motion, useInView } from "framer-motion"; -import { Github, Linkedin, Twitter } from "lucide-react"; import { useRef } from "react"; import { Autoplay, Pagination } from "swiper/modules"; import { Swiper, SwiperSlide } from "swiper/react"; import { useTeam } from "@/hooks/queires/useTeam"; -import { Link } from "react-router-dom"; import PremiumBadge from "../shared/PremiumBadge"; export default function TeamSection() { @@ -19,14 +17,14 @@ export default function TeamSection() { return (
- {/* Background decoration */} +
- {/* Section Header */} + - {/* Team Slider Container */}
(); const { data } = useBlogById(id); - const post = data?.data.data; const navigate = useNavigate(); // const post = getPostBySlug(id || ''); @@ -337,24 +335,24 @@ export default function BlogArticle() {

{post.author.bio}

{post.author.twitter && ( - - + )} {post.author.linkedin && ( - - + )}
diff --git a/src/pages/Projects.tsx b/src/pages/Projects.tsx index 9ffb12f..2641b1f 100644 --- a/src/pages/Projects.tsx +++ b/src/pages/Projects.tsx @@ -77,7 +77,6 @@ export default function Projects() {
- {/* Back Arrow Wrapper - Kept clean on left side */} - {/* Core Header Content Module - Flex-centered alignment */}
-
@@ -268,4 +265,4 @@ export default function Projects() {
); -} \ No newline at end of file +} -- 2.52.0 From 5a7a080c619e7d6b3dc7afe2163e87a384492a0b Mon Sep 17 00:00:00 2001 From: sanjidarimi Date: Wed, 17 Jun 2026 20:58:30 +0600 Subject: [PATCH 5/8] refactor(chart):remove the unused the chart.tsx componet --- src/components/ui/chart.tsx | 303 ------------------------------------ 1 file changed, 303 deletions(-) delete mode 100644 src/components/ui/chart.tsx diff --git a/src/components/ui/chart.tsx b/src/components/ui/chart.tsx deleted file mode 100644 index 08d40d9..0000000 --- a/src/components/ui/chart.tsx +++ /dev/null @@ -1,303 +0,0 @@ -import * as React from "react"; -import * as RechartsPrimitive from "recharts"; - -import { cn } from "@/lib/utils"; - -// Format: { THEME_NAME: CSS_SELECTOR } -const THEMES = { light: "", dark: ".dark" } as const; - -export type ChartConfig = { - [k in string]: { - label?: React.ReactNode; - icon?: React.ComponentType; - } & ({ color?: string; theme?: never } | { color?: never; theme: Record }); -}; - -type ChartContextProps = { - config: ChartConfig; -}; - -const ChartContext = React.createContext(null); - -function useChart() { - const context = React.useContext(ChartContext); - - if (!context) { - throw new Error("useChart must be used within a "); - } - - return context; -} - -const ChartContainer = React.forwardRef< - HTMLDivElement, - React.ComponentProps<"div"> & { - config: ChartConfig; - children: React.ComponentProps["children"]; - } ->(({ id, className, children, config, ...props }, ref) => { - const uniqueId = React.useId(); - const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`; - - return ( - -
- - {children} -
-
- ); -}); -ChartContainer.displayName = "Chart"; - -const ChartStyle = ({ id, config }: { id: string; config: ChartConfig }) => { - const colorConfig = Object.entries(config).filter(([_, config]) => config.theme || config.color); - - if (!colorConfig.length) { - return null; - } - - return ( -