webagent.tsx 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. import { Link } from "@nextui-org/react";
  2. import { GoArrowUpRight } from "react-icons/go";
  3. import Image from "next/image";
  4. interface WebAgentProps {
  5. webAgentUrl: string;
  6. }
  7. const WebAgent = ({ webAgentUrl }: WebAgentProps) => {
  8. return (
  9. <div className="relative bg-cardGreen w-full h-full group dark:bg-darkBg">
  10. <div className="absolute -bottom-96 left-16 bg-cardPink w-[145%] h-full rounded-full dark:hidden" />
  11. <div className="absolute top-1/2 -translate-y-1/2 left-24 md:left-32 transform -rotate-[30deg] rounded-2xl w-[80%]">
  12. <Image
  13. alt="Web Agent"
  14. className="w-full h-full object-contain rounded-2xl"
  15. height={2380}
  16. src={webAgentUrl}
  17. width={1164}
  18. />
  19. </div>
  20. <button className="absolute bg-white dark:bg-darkBg bottom-2 left-2 transition-all w-10 h-10 md:w-[2.75rem] md:h-[2.75rem] duration-500 ease-in-out group-hover:w-40 p-2 rounded-full hover:bg-default-100 border-2 border-transparent dark:border-knight">
  21. <div className="flex justify-center items-center">
  22. <Link isExternal color="foreground" href="https://www.simplegen.ai/">
  23. <span className="text-sm md:text-medium text-nowrap hidden group-hover:block invisible group-hover:visible mr-1 animate-fade">
  24. Web Agent
  25. </span>
  26. </Link>
  27. <GoArrowUpRight />
  28. </div>
  29. </button>
  30. </div>
  31. );
  32. };
  33. export default WebAgent;