+
{type === 'success' ? : }
{message}
diff --git a/src/components/@shared/animation/CardMotion.tsx b/src/components/@shared/animation/CardMotion.tsx
index 251e7959..f59eb0ee 100644
--- a/src/components/@shared/animation/CardMotion.tsx
+++ b/src/components/@shared/animation/CardMotion.tsx
@@ -5,11 +5,13 @@ interface CardMotionProps {
children: ReactNode;
className?: string;
borderRadius?: string;
+ onClick?: () => void;
}
export default function CardMotion({
children,
className,
+ onClick,
borderRadius = '16px',
}: CardMotionProps) {
return (
@@ -30,6 +32,7 @@ export default function CardMotion({
},
}}
className={className}
+ onClick={onClick}
>
{children}
diff --git a/src/components/@shared/animation/SlotMotion.tsx b/src/components/@shared/animation/SlotMotion.tsx
index 2a86f15a..8452fddc 100644
--- a/src/components/@shared/animation/SlotMotion.tsx
+++ b/src/components/@shared/animation/SlotMotion.tsx
@@ -15,7 +15,7 @@ export default function SlotMotion({ children, className }: SlotMotionProps) {
}}
whileHover={{
borderRadius: '24px',
- boxShadow: '0px 0px 0px 3px rgba(232, 230, 254, 1)',
+ boxShadow: '0px 0px 12px 4px rgba(102, 89, 244, 1)',
}}
transition={{ duration: 0.2 }}
whileTap={{
diff --git a/src/components/@shared/button/IconButton.tsx b/src/components/@shared/button/IconButton.tsx
index bced61c0..aee043cb 100644
--- a/src/components/@shared/button/IconButton.tsx
+++ b/src/components/@shared/button/IconButton.tsx
@@ -1,4 +1,5 @@
import Image from 'next/image';
+import ButtonMotion from '@/components/@shared/animation/ButtonMotion';
type IconButtonProps = {
type?: 'button' | 'submit' | 'reset';
@@ -26,7 +27,7 @@ export default function IconButton({
...props
}: IconButtonProps) {
return (
-
+
);
}
diff --git a/src/components/allReview/ReviewCard.tsx b/src/components/allReview/ReviewCard.tsx
index 4f5bf66d..430c8d6d 100644
--- a/src/components/allReview/ReviewCard.tsx
+++ b/src/components/allReview/ReviewCard.tsx
@@ -1,8 +1,10 @@
+import { useState } from 'react';
+import Image from 'next/image';
+
import { ReviewDto } from '@/types/review.types';
import { yearMonthDay } from '@/utils/dateUtils';
-import Image from 'next/image';
import Rating from '@/components/@shared/rating/Rating';
-import { useState } from 'react';
+import CardMotion from '@/components/@shared/animation/CardMotion';
export default function ReviewCard({
score,
@@ -23,7 +25,7 @@ export default function ReviewCard({
};
return (
-
@@ -72,6 +74,6 @@ export default function ReviewCard({
-