Skip to content

Commit

Permalink
Merge pull request #472 from tatsutakein/revert-471-rt/migrate-next-i…
Browse files Browse the repository at this point in the history
…mage

Revert "perf: post-card のヒーロー画像を Next/Image に置き換え"
  • Loading branch information
tatsutakein authored Mar 5, 2024
2 parents c10ff6c + 93cdbea commit 4c487e1
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React from "react";
import Image from "next/image";
import Link from "next/link";
import { formatDateEn, utcToJstTime } from "@/utils/date";
import { countText, hasJa } from "@/utils/text";
Expand All @@ -20,7 +19,7 @@ export const PostCard: React.FC<Props> = ({ href, title, description, publishedA
<Link href={href} className="h-full">
{/* ヒーロー画像 */}
<div className="relative flex h-40 shrink-0 items-center justify-center overflow-hidden">
<Image className="absolute inset-0 m-auto object-cover" src={heroImage} alt={heroText ?? "#"} fill />
<img className="absolute inset-0 m-auto object-cover" src={heroImage} alt="#" loading="lazy" />

<span
className={clsx(
Expand Down

0 comments on commit 4c487e1

Please sign in to comment.