🚧 wip: add image support to card
This commit is contained in:
18
features/home/sections/Recommendation/components/Card.tsx
Normal file
18
features/home/sections/Recommendation/components/Card.tsx
Normal file
@ -0,0 +1,18 @@
|
||||
import { RecommendationAnime } from "@/features/home/actions/getRecommenationAnime";
|
||||
|
||||
const AnimeRecommendationCard = ({ data }: { data: RecommendationAnime }) => {
|
||||
return (
|
||||
<div>
|
||||
<div className="w-64 h-88 rounded-lg overflow-hidden">
|
||||
<img
|
||||
className="w-full h-full object-cover"
|
||||
src={data.thumbnail_url}
|
||||
alt={data.title}
|
||||
draggable={false}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default AnimeRecommendationCard;
|
||||
Reference in New Issue
Block a user