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

View File

@ -19,17 +19,18 @@ const ease = [0.16, 1, 0.3, 1];
function HeroPill() {
const { data, isError, isLoading } = useQuery<
{ id: string; address: string; project_name: string } | null,
Array<{ 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;
const response = await axios.get("https://catools.dev3vds1.link/get/beactio");
return response.data;
},
});
const address = data ? data[0]?.address : null;
return (
<motion.div
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"
// variant={"outline"}
// onClick={() => {
// if (data && data.address) {
// navigator.clipboard.writeText(data.address);
// if (address) {
// navigator.clipboard.writeText(address);
// 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">
📣 Announcement
</div>
<p className="text-xs font-medium text-primary sm:text-sm pr-2">
Introducing beactio.ai
</p>
<p className="text-xs font-medium text-primary sm:text-sm pr-2">Introducing beactio.ai</p>
{/* {isLoading && (
<div className="px-6 flex items-center">
<Spinner />
@ -63,9 +62,9 @@ function HeroPill() {
There is something wrong.
</p>
)}
{data && (
{address && (
<p className="text-xs font-medium text-primary sm:text-sm pr-1">
{data?.address}
{address}
</p>
)} */}
</Link>
@ -112,8 +111,8 @@ function HeroTitles() {
ease,
}}
>
Transform the future of artificial intelligence with truly autonomous
systems that think, plan, and act independently.
Transform the future of artificial intelligence with truly autonomous systems that think, plan, and act
independently.
</motion.p>
</div>
);
@ -140,10 +139,7 @@ function HeroCTA() {
</Link>
<Link
href="/explore"
className={cn(
buttonVariants({ variant: "outline" }),
"w-full sm:w-auto flex gap-2"
)}
className={cn(buttonVariants({ variant: "outline" }), "w-full sm:w-auto flex gap-2")}
>
<Compass className="h-6 w-6" />
Explore Agents