mirror of
https://github.com/StepanovPlaton/torrent_frontend.git
synced 2026-04-04 12:50:48 +04:00
Init game page
This commit is contained in:
19
src/shared/ui/cover/cover.tsx
Normal file
19
src/shared/ui/cover/cover.tsx
Normal 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}
|
||||
/>
|
||||
);
|
||||
};
|
||||
3
src/shared/ui/cover/index.ts
Normal file
3
src/shared/ui/cover/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { Cover } from "./cover";
|
||||
|
||||
export { Cover };
|
||||
Reference in New Issue
Block a user