actions.tsx 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import { Link } from "@heroui/react";
  2. import { GoArrowUpRight } from "react-icons/go";
  3. import Image from "next/image";
  4. interface ActionsProps {
  5. photoUrl: string;
  6. }
  7. const Actions = ({ photoUrl }: ActionsProps) => {
  8. return (
  9. <div className="relative bg-cardBlue w-full h-full group dark:bg-darkBg">
  10. <div className="absolute -bottom-32 md:-bottom-52 left-1/2 -translate-x-1/2 bg-cardPink w-64 h-56 md:w-96 md:h-96 rounded-full dark:hidden" />
  11. <div className="absolute top-16 md:top-36 -translate-y-1/2 left-20 md:left-44 transform -rotate-[30deg] rounded-2xl w-[80%]">
  12. <Image
  13. alt="SecondSelf - AI Agent Social Network"
  14. className="w-full h-full rounded-2xl object-contain"
  15. height={1280}
  16. quality={60}
  17. sizes="(max-width: 768px) 300px, 500px"
  18. src={photoUrl}
  19. width={2259}
  20. />
  21. </div>
  22. <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">
  23. <div className="flex justify-center items-center">
  24. <Link
  25. isExternal
  26. color="foreground"
  27. href="https://secondself.us/"
  28. >
  29. <span className="text-sm md:text-medium text-nowrap hidden group-hover:block invisible group-hover:visible mr-1 animate-fade">
  30. SecondSelf
  31. </span>
  32. </Link>
  33. <GoArrowUpRight />
  34. </div>
  35. </button>
  36. </div>
  37. );
  38. };
  39. export default Actions;