- Move services/nextjs/ to nextjs/ - Move Dockerfile.prod to Dockerfile at root - Remove deploy/ folder (K8s manifests moved to K3S-HOME/web-apps) - Remove .gitea/ workflows - Update GitHub Actions for new structure - Remove develop branch triggers
25 lines
565 B
TypeScript
25 lines
565 B
TypeScript
"use client";
|
|
|
|
import Link from "next/link";
|
|
import styles from "../styles/movie.module.css";
|
|
import { useRouter } from "next/navigation";
|
|
|
|
interface IMovieProps {
|
|
title: string;
|
|
id: string;
|
|
poster_path: string;
|
|
}
|
|
|
|
export default function Movie({ title, id, poster_path }: IMovieProps) {
|
|
const router = useRouter();
|
|
const onClick = () => {
|
|
router.push(`/movies/${id}`);
|
|
};
|
|
return (
|
|
<div className={styles.movie}>
|
|
<img src={poster_path} alt={title} onClick={onClick} />
|
|
<Link href={`/movies/${id}`}>{title}</Link>
|
|
</div>
|
|
);
|
|
}
|