paper.tsx 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { Link } from "@heroui/react";
  2. import { GoArrowUpRight } from "react-icons/go";
  3. import Image from "next/image";
  4. interface PaperProps {
  5. paperUrl: string;
  6. }
  7. const Paper = ({ paperUrl }: PaperProps) => {
  8. return (
  9. <div className="relative bg-cardYellow w-full h-full group dark:bg-darkBg">
  10. <div className="absolute -top-40 left-40 bg-cardPink w-[135%] h-full rounded-full dark:hidden" />
  11. <div className="absolute top-16 md:top-1/2 -translate-y-1/2 left-12 md:left-16 rounded-2xl -rotate-[30deg] w-full">
  12. <Image
  13. alt="Paper"
  14. className="h-full w-full rounded-2xl object-contain"
  15. height={1280}
  16. quality={60}
  17. sizes="(max-width: 768px) 300px, 500px"
  18. src={paperUrl}
  19. width={1577}
  20. />
  21. </div>
  22. <Link
  23. isExternal
  24. color="foreground"
  25. href="https://ojs.aaai.org/index.php/AAAI/article/view/29266"
  26. className="no-drag 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 flex justify-center items-center"
  27. >
  28. <span className="text-sm md:text-medium text-nowrap hidden group-hover:block invisible group-hover:visible mr-1 animate-fade">
  29. DT-VAEGAN
  30. </span>
  31. <GoArrowUpRight />
  32. </Link>
  33. </div>
  34. );
  35. };
  36. export default Paper;