diff --git a/src/components/atoms/MovieCard/layouts/AuroraLayout.tsx b/src/components/atoms/MovieCard/layouts/AuroraLayout.tsx index bf3d0df..fc8a1a3 100644 --- a/src/components/atoms/MovieCard/layouts/AuroraLayout.tsx +++ b/src/components/atoms/MovieCard/layouts/AuroraLayout.tsx @@ -2,10 +2,10 @@ import { FC, useState } from "react"; import { MdFavorite } from "react-icons/md"; import { RxEyeOpen } from "react-icons/rx"; -import { FaFire, FaTrash, FaInfoCircle } from "react-icons/fa"; +import { FaFire, FaTrash, FaPlusCircle } from "react-icons/fa"; import { RiCalendarCheckLine, RiCalendarScheduleLine } from "react-icons/ri"; import { Movie } from "@/types/global"; -import { Button } from "../../Button"; +import Link from "next/link"; interface AuroraLayoutProps extends Movie { showDayCounter?: boolean; @@ -40,8 +40,6 @@ export const AuroraLayout: FC = ({ releaseDate, simpleToggle, }) => { - const [isExpanded, setIsExpanded] = useState(false); - const scoreColor = vote_average >= 8 ? "from-emerald-400 to-teal-400" @@ -50,10 +48,7 @@ export const AuroraLayout: FC = ({ : "from-red-400 to-pink-400"; return ( -
setIsExpanded(false)} - > +
{/* Aurora background effect */}
@@ -68,15 +63,17 @@ export const AuroraLayout: FC = ({ aspectRatio: "342/513", }} > - {title} + + {title} + {/* Gradient overlays for depth */} -
-
+
+
{/* Floating rating badge */} {!!vote_average && ( @@ -115,53 +112,48 @@ export const AuroraLayout: FC = ({ )} {/* Status indicators */} - {alreadyInStore && ( -
- {!simpleToggle && ( - <> -
- -
-
- -
- - )} +
+ {alreadyInStore && !simpleToggle && ( + <> +
+ +
+
+ +
+ + )} + {!alreadyInStore && (
+ +
+ )} + {alreadyInStore && ( +
-
- )} - - {/* Magical action overlay */} - {!alreadyInStore && ( -
- -
- )} + )} +
{/* Content section with glowing effects */} @@ -170,15 +162,14 @@ export const AuroraLayout: FC = ({
-

- {title} -

-

setIsExpanded(!isExpanded)} - > - {overview} -

+ +

+ {title} +

+

+ {overview} +

+
{/* Bottom section with enhanced styling */} @@ -223,41 +214,8 @@ export const AuroraLayout: FC = ({ )}
- - {/* Zobacz więcej button */} - - - {/* Decorative border glow */} -
- - {isExpanded && ( -
setIsExpanded(false)} - > -

{overview}

- -
- )}
); };