This commit is contained in:
2025-02-09 14:28:51 -05:00
parent d171572400
commit 1a51cd28c7
66 changed files with 4122 additions and 4298 deletions
+34
View File
@@ -0,0 +1,34 @@
export default async function DataComponent({
url,
header,
projectHeader,
projectSubheader,
projectImage
}: {
url: string,
header: string,
projectHeader: string,
projectSubheader: string,
projectImage?: string
}) {
return (
<a href={url} target="_blank">
<div className="bg-white rounded-lg text-black p-2">
<h1 className="text-center font-semibold">{header}</h1>
<div className="block">
<div className="flex items-center">
{
projectImage && <img alt="Project Image" src={projectImage} width={100} height={100} className="w-[80px] h-[50px] object-cover" />
}
<div className="flex flex-col mx-2 min-w-0 flex-grow">
<h1 className="font-bold text-left truncate">{projectHeader}</h1>
<h1 className="text-left truncate">{projectSubheader}</h1>
</div>
</div>
</div>
</div>
</a>
)
}