feat: add games

This commit is contained in:
2024-08-24 20:52:29 -07:00
parent 8feb4700a1
commit 516a022553
4 changed files with 79 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
import Image from "next/image";
import { useState } from "react";
interface GameProps {
name: string;
img: string;
}
export const Game = (props: GameProps): JSX.Element => {
const { name, img } = props;
return (
<div className="w-[300px] h-[300px] border-2 border-solid border-[--foreground] m-auto text-center items-center">
<p className="text-xl">{name}</p>
<a
href={`https://cdn.nhcarrigan.com/games/${img}`}
target="_blank"
rel="noreferrer"
>
<Image
src={`https://cdn.nhcarrigan.com/games/${img}`}
alt={name}
width={250}
height={250}
className="m-auto"
/>
</a>
</div>
);
};