- A simple app to let you search for movies by title. -
+A simple app to let you search for movies by title.
diff --git a/movie-search/src/common/classes.ts b/movie-search/src/common/classes.ts index dce70ee..b98bdf0 100644 --- a/movie-search/src/common/classes.ts +++ b/movie-search/src/common/classes.ts @@ -1 +1,4 @@ -const responsiveContainer = '' \ No newline at end of file +const btn = "px-4 py-2 rounded"; + +export const primaryBtn = `${btn} text-white bg-purple-500 hover:bg-purple-700`; +export const secondaryBtn = `${btn} bg-gray-400 hover:bg-gray-600`; diff --git a/movie-search/src/common/components/MovieCard.tsx b/movie-search/src/common/components/MovieCard.tsx index 245263d..91f1605 100644 --- a/movie-search/src/common/components/MovieCard.tsx +++ b/movie-search/src/common/components/MovieCard.tsx @@ -1,6 +1,7 @@ import FavoriteBtn from "@/common/components/FavoriteBtn"; import ImgCard from "@/common/components/ImgCard"; import Link from "next/link"; +import { primaryBtn } from "../classes"; export interface IMovieCardItem { Title: string; @@ -27,11 +28,8 @@ export default function MovieCard({ movie }: IMovieCardProps) {Circa: {movie.Year}