redesign list, add a few more cards

This commit is contained in:
2024-08-17 22:02:42 -04:00
parent bb49b188f5
commit 1c90898722
8 changed files with 190 additions and 52 deletions
+17 -11
View File
@@ -1,25 +1,31 @@
export default function ProjectComponent({
url,
header,
subheader,
image,
imageSize = "100"
projectHeader,
projectSubheader,
projectImage,
projectImageSize = "100"
}: {
url: string,
header: string,
subheader: string,
image: string,
imageSize?: string
projectHeader: string,
projectSubheader: string,
projectImage: string,
projectImageSize?: string
}) {
return (
<a href={url} target="_blank" className="max-w-fit mx-auto">
<div className="bg-white text-black max-w-fit mx-auto p-2">
<a href={url} target="_blank" className="mx-auto">
<div className="bg-white rounded-lg text-black w-full mx-auto p-2">
<div className="p-2">
<h1 className="text-center font-semibold">{header}</h1>
</div>
<div className="flex items-center">
<img src={image} width={imageSize} />
<img src={projectImage} width={projectImageSize} />
<div className="flex flex-wrap mx-2">
<h1 className="font-bold w-full">{header}</h1>
<h1>{subheader}</h1>
<h1 className="font-bold w-[190px] text-left truncate whitespace-nowrap overflow-hidden">{projectHeader}</h1>
<h1 className="w-3/4 text-left truncate whitespace-nowrap overflow-hidden">{projectSubheader}</h1>
</div>
</div>
</div>