コンポーネント研究 / ギャラリー
グラデーションギャラリー
非対称のグリッドとホバー時のオーバーレイで見せるギャラリー。
ホバー効果モダングラデーションダークテーマサンセリフメーソンリーカードグリッドレスポンシブクリエイティブポートフォリオエージェンシー
ライブプレビュー
表示幅: 1440px。画面に合わせて縮小しています。原寸での操作や長いセクションの確認には、プレビューを開いてください。
'use client';
const COLORS = {
light: {
background: '#FAFAFA',
heading: '#111111',
subheading: '#555555',
overlay: 'rgba(0,0,0,0.5)',
overlayText: '#FFFFFF',
},
dark: {
background: '#0A0A0A',
heading: '#FFFFFF',
subheading: '#999999',
overlay: 'rgba(0,0,0,0.6)',
overlayText: '#FFFFFF',
},
} as const;
interface GalleryItem {
title: string;
gradient: string;
span?: string;
}
interface SampleGallery1Props {
mode?: 'light' | 'dark';
title?: string;
subtitle?: string;
items?: GalleryItem[];
}
const defaultItems: GalleryItem[] = [
{
title: 'SaaS 대시보드',
gradient: 'linear-gradient(135deg, #6C4BEF, #3B82F6)',
span: 'md:col-span-2 md:row-span-2',
},
{ title: '이커머스 랜딩', gradient: 'linear-gradient(135deg, #10B981, #059669)' },
{ title: '포트폴리오', gradient: 'linear-gradient(135deg, #F59E0B, #D97706)' },
{ title: '블로그 테마', gradient: 'linear-gradient(135deg, #EF4444, #DC2626)' },
{
title: 'AI 서비스 페이지',
gradient: 'linear-gradient(135deg, #8B5CF6, #6D28D9)',
span: 'md:col-span-2',
},
{ title: '핀테크 앱', gradient: 'linear-gradient(135deg, #06B6D4, #0891B2)' },
];
export default function SampleGallery1({
mode = 'dark',
title = '포트폴리오',
subtitle = '다양한 프로젝트에서 추출한 디자인 시스템',
items = defaultItems,
}: SampleGallery1Props) {
const colors = COLORS[mode];
return (
<section className="px-6 py-24" style={{ backgroundColor: colors.background }}>
<div className="max-w-6xl mx-auto">
<div className="text-center mb-16">
<h2 className="text-4xl md:text-5xl font-bold" style={{ color: colors.heading }}>
{title}
</h2>
<p className="mt-4 text-lg" style={{ color: colors.subheading }}>
{subtitle}
</p>
</div>
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
{items.map((item, i) => (
<div
key={i}
className={`relative rounded-2xl overflow-hidden group cursor-pointer ${item.span || ''}`}
style={{
background: item.gradient,
minHeight: item.span?.includes('row-span-2') ? '400px' : '200px',
}}
>
<div
className="absolute inset-0 flex items-end p-6 opacity-0 transition-opacity"
style={{ background: colors.overlay }}
onMouseEnter={(e) => (e.currentTarget.style.opacity = '1')}
onMouseLeave={(e) => (e.currentTarget.style.opacity = '0')}
>
<span className="text-lg font-semibold" style={{ color: colors.overlayText }}>
{item.title}
</span>
</div>
</div>
))}
</div>
</div>
</section>
);
}