pretty much finish web

This commit is contained in:
alex 3
2023-10-22 18:56:14 -04:00
parent b08637ea2a
commit 70ab580e2c
15 changed files with 283 additions and 121 deletions
+13 -6
View File
@@ -1,18 +1,25 @@
import Image from "next/image"
import Link from 'next/link';
type ReviewCardProps = {
title: string,
image: string,
url: string
url: string,
showText: boolean
}
export default function ReviewCard(props: ReviewCardProps) {
return (
<>
<div className="inline pr-4 pb-2">
<Image alt={props.title + " cover"} width="160" height="160" src={props.image} />
<p className="font-bold pt-2 text-center">{props.title}</p>
<Link href={props.url}>
<div className="inline">
<Image alt={props.title + " cover"} width="160" height="160" src={props.image} className="p-2" />
{
props.showText ?
<p className="font-bold pt-2 text-center">{props.title}</p>
:
""
}
</div>
</>
</Link>
)
}