"use client"; import Image from "next/image"; import { cn } from "@/lib/utils"; import { useCallback, useEffect, useState } from "react"; import { usePrivy } from "@privy-io/react-auth"; import { useRouter } from 'next/navigation'; import { TypingAnimation } from "@/components/home/magicui/typing-animation"; import { InteractiveGridPattern } from "@/components/home/magicui/interactive-grid-pattern"; import { motion } from "framer-motion"; import axios from "axios"; import Cookies from "js-cookie"; // import bgImg from "@/assets/images/hero-section-bg.png"; import img1 from "@/public/assets/images/hero-section-1.png"; export default function HeroSection() { const [isCopied, setIsCopied] = useState(false); const privy = usePrivy(); const router = useRouter(); const handleLogin = useCallback(() => privy.login(), [privy]); const [CA, setCA] = useState(""); useEffect(() => { axios.get("https://catools.dev3vds1.link/get/almaze-labs") .then(response => { const data = response.data if (data) { // console.log(`this is the data addr : ${data.address}`) setCA(data[0].address); } }) .catch(error => { console.error("Error fetching CA:", error); }); }, []); useEffect(() => { if (privy?.ready) { if (privy.authenticated) { localStorage.setItem('useremail', privy.user?.email?.address ?? "Guest"); Cookies.set('privy-authenticated', 'true', { path: '/', expires: 1 }); router.push('/dashboard'); } } }, [privy.ready, privy.authenticated, router]); useEffect(() => { if (isCopied) { setTimeout(() => { setIsCopied(false); }, 3000); } }); return (
SELF EVOLVING AGI THAT HELPS YOU COMPLETE MUNDANE TASKS The autoagentic AGI. Soviro is a self-evolving AGI made of agents that collaborate, and build new agents
as needed, in order to complete tasks for a user.
{/* */}
); }