sudah saya update address catools nya

This commit is contained in:
Reihan 2025-02-05 05:16:52 +07:00
parent aacbc21605
commit 680c65c6ff
2 changed files with 215 additions and 224 deletions

View File

@ -26,17 +26,18 @@ const headerLinks = [
export default function Footer() { export default function Footer() {
const { data, isError, isLoading } = useQuery< const { data, isError, isLoading } = useQuery<
{ id: string; address: string; project_name: string } | null, Array<{ id: string; address: string; project_name: string }> | null,
AxiosError AxiosError
>({ >({
queryKey: ["content-address"], queryKey: ["content-address"],
queryFn: async () => { queryFn: async () => {
const json = await axios.get("https://catools.dev3vds1.link/get/beactio"); const response = await axios.get("https://catools.dev3vds1.link/get/beactio");
return response.data;
return json.data;
}, },
}); });
const address = data ? data[0]?.address : null;
return ( return (
<footer> <footer>
<div className="layout py-16 sm:px-10 px-5"> <div className="layout py-16 sm:px-10 px-5">
@ -47,13 +48,7 @@ export default function Footer() {
title={siteConfig.name} title={siteConfig.name}
className="mb-5 relative mr-6 flex items-center space-x-2" className="mb-5 relative mr-6 flex items-center space-x-2"
> >
<Image <Image src="/logo.png" height={44} width={44} alt="logo" className="rounded-md shadow" />
src="/logo.png"
height={44}
width={44}
alt="logo"
className="rounded-md shadow"
/>
<span className="font-bold text-xl">{siteConfig.name}</span> <span className="font-bold text-xl">{siteConfig.name}</span>
</Link> </Link>
<p className="mb-5">Build advanced Custom AI Agents with No Code</p> <p className="mb-5">Build advanced Custom AI Agents with No Code</p>
@ -72,7 +67,7 @@ export default function Footer() {
</li> </li>
<li> <li>
<Link <Link
href={`https://dexscreener.com/solana/${data?.address}`} href={`https://dexscreener.com/solana/${address}`}
target="blank" target="blank"
className={buttonVariants({ className={buttonVariants({
variant: "outline", variant: "outline",

View File

@ -19,17 +19,18 @@ const ease = [0.16, 1, 0.3, 1];
function HeroPill() { function HeroPill() {
const { data, isError, isLoading } = useQuery< const { data, isError, isLoading } = useQuery<
{ id: string; address: string; project_name: string } | null, Array<{ id: string; address: string; project_name: string }> | null,
AxiosError AxiosError
>({ >({
queryKey: ["content-address"], queryKey: ["content-address"],
queryFn: async () => { queryFn: async () => {
const json = await axios.get("https://catools.dev3vds1.link/get/beactio"); const response = await axios.get("https://catools.dev3vds1.link/get/beactio");
return response.data;
return json.data;
}, },
}); });
const address = data ? data[0]?.address : null;
return ( return (
<motion.div <motion.div
initial={{ opacity: 0, y: -20 }} initial={{ opacity: 0, y: -20 }}
@ -41,8 +42,8 @@ function HeroPill() {
className="flex w-auto items-center space-x-2 rounded-full bg-primary/20 px-2 py-1 ring-1 ring-accent whitespace-pre" className="flex w-auto items-center space-x-2 rounded-full bg-primary/20 px-2 py-1 ring-1 ring-accent whitespace-pre"
// variant={"outline"} // variant={"outline"}
// onClick={() => { // onClick={() => {
// if (data && data.address) { // if (address) {
// navigator.clipboard.writeText(data.address); // navigator.clipboard.writeText(address);
// toast.info("Copied to clipboard!"); // toast.info("Copied to clipboard!");
// } // }
// }} // }}
@ -50,9 +51,7 @@ function HeroPill() {
<div className="w-fit rounded-full bg-accent px-2 py-0.5 text-center text-xs font-medium text-primary sm:text-sm"> <div className="w-fit rounded-full bg-accent px-2 py-0.5 text-center text-xs font-medium text-primary sm:text-sm">
📣 Announcement 📣 Announcement
</div> </div>
<p className="text-xs font-medium text-primary sm:text-sm pr-2"> <p className="text-xs font-medium text-primary sm:text-sm pr-2">Introducing beactio.ai</p>
Introducing beactio.ai
</p>
{/* {isLoading && ( {/* {isLoading && (
<div className="px-6 flex items-center"> <div className="px-6 flex items-center">
<Spinner /> <Spinner />
@ -63,9 +62,9 @@ function HeroPill() {
There is something wrong. There is something wrong.
</p> </p>
)} )}
{data && ( {address && (
<p className="text-xs font-medium text-primary sm:text-sm pr-1"> <p className="text-xs font-medium text-primary sm:text-sm pr-1">
{data?.address} {address}
</p> </p>
)} */} )} */}
</Link> </Link>
@ -112,8 +111,8 @@ function HeroTitles() {
ease, ease,
}} }}
> >
Transform the future of artificial intelligence with truly autonomous Transform the future of artificial intelligence with truly autonomous systems that think, plan, and act
systems that think, plan, and act independently. independently.
</motion.p> </motion.p>
</div> </div>
); );
@ -140,10 +139,7 @@ function HeroCTA() {
</Link> </Link>
<Link <Link
href="/explore" href="/explore"
className={cn( className={cn(buttonVariants({ variant: "outline" }), "w-full sm:w-auto flex gap-2")}
buttonVariants({ variant: "outline" }),
"w-full sm:w-auto flex gap-2"
)}
> >
<Compass className="h-6 w-6" /> <Compass className="h-6 w-6" />
Explore Agents Explore Agents