PressArticle.tsx 713 B

1234567891011121314151617181920212223
  1. import Image from "next/legacy/image"
  2. const PressArticle = ({ story }) => (
  3. <a
  4. href={story.url}
  5. rel="nofollow noopener"
  6. className="col-span-12 block rounded-md ring-blurple-500 hover:text-blurple-600 focus:ring md:col-span-6 lg:col-span-3"
  7. >
  8. <div className="flex w-full items-center justify-center rounded-md bg-gray-4 py-20 px-16">
  9. <div className="relative h-10 w-full">
  10. <Image src={story.logo} alt="" layout="fill" objectFit="contain" />
  11. </div>
  12. </div>
  13. <div className="py-4">
  14. <div className="h6 mb-2 !font-medium">{story.title}</div>
  15. <div className="b2 !font-bold">{new URL(story.url).hostname}</div>
  16. </div>
  17. </a>
  18. )
  19. export default PressArticle