From 728584f48f90f42b91e3445ed2c4ed6f2cd9c947 Mon Sep 17 00:00:00 2001 From: codebox283 Date: Sat, 8 Mar 2025 19:36:49 +0530 Subject: [PATCH] added agents and marketplace pages --- app/_app.tsx | 45 ++++ app/agents/page.tsx | 173 ++++++++++++++ app/ai-agents/page.tsx | 119 +++++++++- app/click-video/page.tsx | 12 +- app/globals.css | 7 +- app/layout.tsx | 2 +- app/marketplace-page/page.tsx | 319 +++++++++++++++++++++++++ app/marketplace/page.tsx | 391 +++++++------------------------ app/series/page.tsx | 316 +++++++++++++++++-------- app/template/page.tsx | 50 +++- app/tools/page.tsx | 153 ++++++++++++ app/writer/page.tsx | 12 +- components/Hero/hero2.tsx | 2 +- components/Navbar/MobileMenu.tsx | 24 +- components/Navbar/dropdowns.tsx | 24 +- package-lock.json | 7 + package.json | 1 + 17 files changed, 1200 insertions(+), 457 deletions(-) create mode 100644 app/_app.tsx create mode 100644 app/agents/page.tsx create mode 100644 app/marketplace-page/page.tsx create mode 100644 app/tools/page.tsx diff --git a/app/_app.tsx b/app/_app.tsx new file mode 100644 index 0000000..fd3af13 --- /dev/null +++ b/app/_app.tsx @@ -0,0 +1,45 @@ +import { useEffect } from 'react'; +import Script from 'next/script'; +import type { AppProps } from 'next/app'; +import '../styles/globals.css'; + +// Add a TypeScript declaration for the clarity property on the window object +declare global { + interface Window { + clarity: (...args: any[]) => void; + } +} + +function MyApp({ Component, pageProps }: AppProps) { + useEffect(() => { + // Initialize Clarity + if (typeof window !== 'undefined') { + window.clarity = window.clarity || function () { + (window.clarity as any).q = (window.clarity as any).q || []; + (window.clarity as any).q.push(arguments); + }; + window.clarity('set', 'projectId', 'qkmypl9uld'); + } + }, []); + + return ( + <> +