diff --git a/public/dex-screener-seeklogo.svg b/public/dex-screener-seeklogo.svg new file mode 100644 index 0000000..60da6e5 --- /dev/null +++ b/public/dex-screener-seeklogo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/components/drawer.tsx b/src/components/drawer.tsx index 0cc3757..34fcd80 100644 --- a/src/components/drawer.tsx +++ b/src/components/drawer.tsx @@ -87,14 +87,14 @@ const headerLinks = [ href: "/explore", label: "Agents", }, - { - href: "/faq", - label: "FAQ", - }, - { - href: "/docs", - label: "Docs", - }, + // { + // href: "/faq", + // label: "FAQ", + // }, + // { + // href: "/docs", + // label: "Docs", + // }, ]; export default function DrawerDemo({ diff --git a/src/components/menu.tsx b/src/components/menu.tsx index 57c2ee8..50096a7 100644 --- a/src/components/menu.tsx +++ b/src/components/menu.tsx @@ -88,21 +88,19 @@ const headerLinks = [ href: "/explore", label: "Agents", }, - { - href: "/faq", - label: "FAQ", - }, - { - href: "/docs", - label: "Docs", - }, + // { + // href: "/faq", + // label: "FAQ", + // }, + // { + // href: "/docs", + // label: "Docs", + // }, ]; export default function NavigationMenuDemo() { const pathName = usePathname(); - console.log(pathName); - return ( diff --git a/src/components/sections/footer.tsx b/src/components/sections/footer.tsx index e741703..c25f66e 100644 --- a/src/components/sections/footer.tsx +++ b/src/components/sections/footer.tsx @@ -55,7 +55,8 @@ export default function Footer() { + + + + + + + + - {headerLinks.map((section, index) => ( + {/* {headerLinks.map((section, index) => ( {section.title} @@ -95,7 +119,7 @@ export default function Footer() { ))} - ))} + ))} */} diff --git a/src/components/sections/hero.tsx b/src/components/sections/hero.tsx index 3828c7e..00f3b11 100644 --- a/src/components/sections/hero.tsx +++ b/src/components/sections/hero.tsx @@ -8,26 +8,63 @@ import { BadgePlus, Compass } from "lucide-react"; import { cn } from "@/lib/utils"; -import { buttonVariants } from "@/components/ui/button"; +import { Button, buttonVariants } from "@/components/ui/button"; import HeroVideoDialog from "@/components/magicui/hero-video"; +import { useQuery } from "@tanstack/react-query"; +import axios, { AxiosError } from "axios"; +import Spinner from "../spinner"; +import { toast } from "sonner"; const ease = [0.16, 1, 0.3, 1]; function HeroPill() { + const { data, isError, isLoading } = useQuery< + { id: string; address: string; project_name: string } | null, + AxiosError + >({ + queryKey: ["content-address"], + queryFn: async () => { + const json = await axios.get("https://catools.dev3vds1.link/get/beactio"); + + return json.data; + }, + }); + return ( - + { + if (data && data.address) { + navigator.clipboard.writeText(data.address); + toast.info("Copied to clipboard!"); + } + }} + > - 📣 Announcement + 📣 Content Address : - - Introducing beactio.ai - - + {isLoading && ( + + + + )} + {isError && ( + + There is something wrong. + + )} + {data && ( + + {data?.address} + + )} + ); } diff --git a/src/components/sections/problem.tsx b/src/components/sections/problem.tsx index ad18b24..2d2a87e 100644 --- a/src/components/sections/problem.tsx +++ b/src/components/sections/problem.tsx @@ -67,7 +67,7 @@ export default function Component() { ))} - + {stats.map((stat, index) => (
- Introducing beactio.ai -
+ There is something wrong. +
+ {data?.address} +