updated fetch profile function

This commit is contained in:
Ren Amamiya
2023-02-23 09:18:58 +07:00
parent 76df6dbacf
commit eae708e07c
3 changed files with 75 additions and 74 deletions

View File

@@ -3,16 +3,15 @@ import Image from 'next/image';
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export default function ImageCard({ data }: { data: object }) {
return (
<div
className={`relative mt-2 flex flex-col overflow-hidden rounded-xl border border-zinc-800`}>
<div className="relative h-full w-full">
<div className={`relative mt-2 flex flex-col overflow-hidden`}>
<div className="relative h-full w-2/3 rounded-lg border border-zinc-800">
<Image
src={data['image']}
alt={data['image']}
width="0"
height="0"
sizes="100vw"
className="h-auto w-full object-cover"
className=" h-auto w-full rounded-lg object-cover"
/>
</div>
</div>