diff --git a/.prettierrc.json b/.prettierrc.json index cf4f856..dfd80d9 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -14,6 +14,7 @@ "^@mui/.*", "^@src/.*", "^@models/.*", + "^@interfaces/.*", "^@utils/.*", "^@components/.*", ".*sass$", diff --git a/src/components/Video/Grid.tsx b/src/components/Video/Grid.tsx new file mode 100644 index 0000000..69cd594 --- /dev/null +++ b/src/components/Video/Grid.tsx @@ -0,0 +1,25 @@ +import { FC } from "react"; + +import { Grid } from "@mui/material"; + +import { Video as VideoModel } from "@interfaces/video"; + +import Video from "@components/Video"; + +const VideoGrid: FC<{ videos: VideoModel[] }> = ({ videos }) => { + return ( + + {videos.map((video) => ( + + + ))} + + ); +}; + +export default VideoGrid; diff --git a/src/components/Video/index.tsx b/src/components/Video/index.tsx new file mode 100644 index 0000000..ffc322e --- /dev/null +++ b/src/components/Video/index.tsx @@ -0,0 +1,38 @@ +import { useRouter } from "next/router"; + +import { FC } from "react"; + +import Card from "@mui/material/Card"; +import CardActionArea from "@mui/material/CardActionArea"; +import CardContent from "@mui/material/CardContent"; +import CardMedia from "@mui/material/CardMedia"; +import Typography from "@mui/material/Typography"; + +import { Video } from "@interfaces/video"; + +const Video: FC