Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ next-env.d.ts
public

# env
.env
.env.local
.env.*.local
.env.production

# src-tauri
src-tauri
4 changes: 2 additions & 2 deletions app/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export default function Home() {
<div className="flex flex-col min-h-[100vh] bg-black text-white">
<HeroSection />
<div className="space-y-24 pt-16">
<MetricsSection />
{/* <MetricsSection /> */}
<DiscoverSection />
<PremiumSpot />
{/* <TrendingSection /> */}
<TrendingSection />
</div>
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion app/(main)/sections/hero/components/scroll-indicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const ScrollIndicator = () => {

return (
<div
className={`absolute bottom-4 left-1/2 transform -translate-x-1/2 transition-opacity duration-slow cursor-pointer z-[5] ${
className={`absolute bottom-2 left-1/2 transform -translate-x-1/2 transition-opacity duration-slow cursor-pointer z-[5] ${
isVisible ? "opacity-100" : "opacity-0 pointer-events-none"
}`}
onClick={handleClick}
Expand Down
20 changes: 9 additions & 11 deletions app/(main)/sections/premium-spot/components/item-spot-card.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
'use client';

import { cn } from '@/lib/utils/style';
import { Link as LinkIcon, Sparkles } from 'lucide-react';
import Image from 'next/image';
import Link from 'next/link';
import { useNavigateToDetail } from '@/lib/hooks/common/useNavigateToDetail';
import { ImagePlaceholder } from '@/components/ui/icons/image-placeholder';

interface ItemSpotCardProps {
Expand Down Expand Up @@ -29,6 +31,8 @@ export function ItemSpotCard({
imageDocId,
itemDocId,
}: ItemSpotCardProps) {
const navigateToDetail = useNavigateToDetail();

return (
<div
className={cn(
Expand Down Expand Up @@ -107,19 +111,13 @@ export function ItemSpotCard({
</div>

{/* 링크 제공 버튼 */}
<Link
href={`/details/${imageDocId}?itemId=${itemDocId}`}
className={cn(
'w-full flex items-center justify-center gap-2',
'py-2 rounded-lg',
'bg-zinc-800/50 hover:bg-zinc-700/50',
'text-sm font-medium text-white',
'transition-colors duration-200'
)}
<button
onClick={() => navigateToDetail(itemDocId, { imageId: imageDocId })}
className="flex items-center justify-center w-full gap-2 text-sm text-zinc-400 hover:text-[#EAFD66] transition-colors"
>
<LinkIcon className="w-4 h-4" />
<span>링크 제공하기</span>
</Link>
</button>
</div>
</div>
);
Expand Down
58 changes: 30 additions & 28 deletions app/(main)/sections/trending/components/product-card.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
"use client";
'use client';

import { cn } from "@/lib/utils/style";
import { motion } from "framer-motion";
import Image from "next/image";
import { Heart } from "lucide-react";
import { cn } from '@/lib/utils/style';
import { motion } from 'framer-motion';
import Image from 'next/image';
import { Heart } from 'lucide-react';

interface ProductCardProps {
rank: number;
Expand All @@ -13,7 +13,13 @@ interface ProductCardProps {
likes: number;
}

export function ProductCard({ rank, image, title, brand, likes }: ProductCardProps) {
export function ProductCard({
rank,
image,
title,
brand,
likes,
}: ProductCardProps) {
return (
<motion.div
initial={{ opacity: 0, y: 20 }}
Expand All @@ -25,20 +31,20 @@ export function ProductCard({ rank, image, title, brand, likes }: ProductCardPro
{/* 이미지 컨테이너 */}
<div
className={cn(
"relative aspect-[3/4] rounded-xl overflow-hidden",
"bg-zinc-900",
"mb-3"
'relative aspect-[3/4] rounded-xl overflow-hidden',
'bg-zinc-900',
'mb-3'
)}
>
{/* 순위 뱃지 */}
<div
className={cn(
"absolute top-3 left-3 z-10",
"w-8 h-8 rounded-lg",
"bg-black/80 backdrop-blur-sm",
"flex items-center justify-center",
"text-sm font-bold",
rank <= 3 ? "text-[#EAFD66]" : "text-white"
'absolute top-3 left-3 z-10',
'w-8 h-8 rounded-lg',
'bg-black/80 backdrop-blur-sm',
'flex items-center justify-center',
'text-sm font-bold',
rank <= 3 ? 'text-[#EAFD66]' : 'text-white'
)}
>
{rank}
Expand All @@ -50,36 +56,32 @@ export function ProductCard({ rank, image, title, brand, likes }: ProductCardPro
alt={title}
fill
className={cn(
"object-cover",
"group-hover:scale-105",
"transition-transform duration-300"
'object-cover',
'group-hover:scale-105',
'transition-transform duration-300'
)}
/>

{/* 호버 오버레이 */}
<div
className={cn(
"absolute inset-0",
"bg-gradient-to-t from-black/80 via-black/20 to-transparent",
"opacity-0 group-hover:opacity-100",
"transition-opacity duration-300"
'absolute inset-0',
'bg-gradient-to-t from-black/80 via-black/20 to-transparent',
'opacity-0 group-hover:opacity-100',
'transition-opacity duration-300'
)}
/>
</div>

{/* 텍스트 정보 */}
<div className="space-y-1 px-1">
<h3 className="font-medium text-white group-hover:text-[#EAFD66] transition-colors duration-200">
{title}
</h3>
<div className="flex items-center justify-between text-sm">
<span className="text-zinc-400">{brand}</span>
<div className="flex items-center gap-1 text-zinc-400">
<Heart className="w-4 h-4" />
<Heart className="w-6 h-6" />
<span>{likes.toLocaleString()}</span>
</div>
</div>
</div>
</motion.div>
);
}
}
2 changes: 1 addition & 1 deletion app/(main)/sections/trending/components/product-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function ProductGrid({ category }: ProductGridProps) {
<TrendingCard
key={i}
rank={i + 1}
image="https://placehold.co/400x300"
image={`https://placehold.co/400x300?text=${i + 1}`}
title="트렌딩 아이템 이름"
brand="브랜드명"
likes={1234}
Expand Down
7 changes: 7 additions & 0 deletions app/components/loading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
export function LoadingDisplay() {
return (
<div className="flex min-h-screen items-center justify-center">
<div className="h-32 w-32 animate-spin rounded-full border-b-2 border-t-2 border-primary" />
</div>
)
}
22 changes: 0 additions & 22 deletions app/details/[imageId]/components/client/filter-button.tsx

This file was deleted.

20 changes: 0 additions & 20 deletions app/details/[imageId]/components/client/tab-button.tsx

This file was deleted.

65 changes: 0 additions & 65 deletions app/details/[imageId]/components/detail-page-content.tsx

This file was deleted.

Loading