Init game page

This commit is contained in:
2024-05-12 13:12:13 +04:00
parent 275d99bd85
commit 15247adfa3
9 changed files with 88 additions and 12 deletions

View File

@@ -0,0 +1,19 @@
import Image from "next/image";
export const Cover = ({
cover,
type = "preview",
}: {
cover: string;
type?: "cover" | "preview";
}) => {
return (
<Image
src={cover}
className="rounded-lg aspect-video object-cover"
alt=""
width={type === "preview" ? 700 : 1280}
height={type === "preview" ? 400 : 720}
/>
);
};

View File

@@ -0,0 +1,3 @@
import { Cover } from "./cover";
export { Cover };