diff --git a/app/(shared)/components/DataItemCard.tsx b/app/(shared)/components/DataItemCard.tsx index 9b5821bc..9a5af9d8 100644 --- a/app/(shared)/components/DataItemCard.tsx +++ b/app/(shared)/components/DataItemCard.tsx @@ -48,7 +48,6 @@ export const DataItemCard = ({ cardId, carrier, dataAmount, - skipLoginCheck = false, }: DataItemCardProps) => { const loggedInUser = useAuthStore((state: AuthState) => state.user); const { actions } = useHomeStore(); @@ -101,14 +100,14 @@ export const DataItemCard = ({ const buttonConfig = getButtonConfig(); return ( -
+
{isNew && ( - + {newBadgeText} )} {isMyPost && ( - + MY )} @@ -117,12 +116,13 @@ export const DataItemCard = ({ src={imageUrl} alt={title} fill + sizes="(max-width: 768px) 50vw, (max-width: 1024px) 33vw, 25vw" style={{ objectFit: 'contain' }} />
-

+

{title}

@@ -142,22 +142,16 @@ export const DataItemCard = ({ return; } - // 로그인 상태 확인 (skipLoginCheck가 true면 건너뛰기) - if (!skipLoginCheck && !loggedInUser) { - toast.error('로그인 해주세요.'); - router.push('/login'); - return; - } onClickBuy({ email, createdAt }); }} - className={`w-btn-sm h-btn-sm md:w-btn-md md:h-btn-md ${buttonConfig.className} transition text-regular-md border rounded-lg flex items-center justify-center`} + className={`w-full h-full ${buttonConfig.className} transition text-regular-md border rounded-lg flex items-center justify-center`} style={{ fontSize: 'clamp(12px, 2.5vw, 16px)' }} disabled={!buttonConfig.clickable} > {buttonConfig.text} ) : ( -

+
{sellStatus === 'SELLING' ? ( <> {cardCategory === 'SELL' && ( diff --git a/app/home/components/introduction.tsx b/app/home/components/introduction.tsx index 3f8df6e9..6392e0b4 100644 --- a/app/home/components/introduction.tsx +++ b/app/home/components/introduction.tsx @@ -216,22 +216,24 @@ const DataItemCard = ({ whileInView={{ opacity: 1, y: 0 }} viewport={{ amount: 0.5 }} transition={{ duration: 0.5, delay }} - className="transition-transform duration-300 hover:scale-[1.05] relative bg-white dark:bg-gray-800 rounded-2xl shadow-light flex flex-col p-4 h-full" + + className="transition-transform duration-300 hover:scale-[1.05] relative bg-white dark:bg-white rounded-2xl shadow-light flex flex-col p-4 h-full" + >
{title}
-

+ +

{title}

-

+

{displayPrice}

-

- 바삭스코어 {ratingScore} -

+

바삭스코어 {ratingScore}

+
@@ -325,7 +327,7 @@ export default function Introduction() { className="absolute flex flex-col items-center" >

- Snac + SNAC

@@ -348,7 +350,7 @@ export default function Introduction() { }} className="text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-4xl" > - Snac의 약속 + SNAC의 약속 , title: '신속한 실시간 매칭', - desc: 'AI 기반 매칭 시스템이 최적의 거래 상대를 즉시 찾아 연결합니다.', + desc: '시스템이 최적의 거래 상대를 즉시 찾아 연결합니다.', }, ].map((item, i) => ( - Snac은 데이터 거래에 필요한 모든 기능을 갖추고 있습니다. + SNAC은 데이터 거래에 필요한 모든 기능을 갖추고 있습니다.
@@ -533,7 +535,7 @@ export default function Introduction() { }} className="text-3xl font-bold tracking-tight text-gray-900 dark:text-white sm:text-4xl" > - Snac 포인트만의 특별한 혜택 + SNAC 포인트만의 특별한 혜택 - 포인트는 현금으로 환전할 수 없지만, Snac 생태계 안에서 더 큰 + 포인트는 현금으로 환전할 수 없지만, SNAC 생태계 안에서 더 큰 가치를 가집니다.