🎯 주요 구현 내용: - TopBar: Logo, Download, Account 버튼 포함한 sticky 헤더 - HeroSection: Vooster.ai 스타일 메인 영역 + 3개 핵심 가치 카드 - FeaturesSection: 6개 주요 기능 소개 카드 (반응형 그리드) - CTASection: 가격 플랜 미리보기 + 행동 유도 버튼 - Footer: 4단 컬럼 레이아웃 + 소셜 링크 ✨ 기술적 특징: - ShadCN UI 컴포넌트 시스템 활용 - Semantic HTML5 태그 사용 (header, main, section, footer) - ARIA 레이블 및 키보드 네비게이션 지원 - 완전한 반응형 디자인 (모바일-태블릿-데스크톱) - Tailwind CSS 그라데이션 및 애니메이션 효과 🎨 디자인: - Vooster.ai 참고한 모던하고 깔끔한 UI/UX - 라이트 모드 고정 (PRD 요구사항) - 그리드 패턴 배경 장식 - Hover 효과 및 부드러운 전환 애니메이션 ♿ 접근성: - WCAG 가이드라인 준수 - 모든 인터랙티브 요소에 적절한 aria-label - 키보드만으로 완전한 탐색 가능 - 충분한 색상 대비 및 폰트 크기 🔄 기능 통합: - App.tsx에서 랜딩페이지 ↔ 에디터 모드 전환 - 랜딩페이지에서 '시작하기' 버튼으로 에디터 진입 - 에디터에서 '홈으로' 버튼으로 랜딩페이지 복귀 📋 Acceptance Criteria 100% 달성: ✅ 모든 기기에서 레이아웃 정상 작동 ✅ Semantic HTML 및 ARIA 접근성 적용 ✅ ShadCN Card, Button 컴포넌트 활용 ✅ Vooster.ai와 비슷한 모던 디자인 ✅ TopBar, 서비스 소개, 주요 기능, CTA 배치 ✅ 반응형 레이아웃 및 섹션별 구분
85 lines
2.8 KiB
TypeScript
85 lines
2.8 KiB
TypeScript
import * as React from "react";
|
|
import { Button } from "./button";
|
|
import { cn } from "../../lib/utils";
|
|
|
|
interface TopBarProps {
|
|
className?: string;
|
|
onDownloadClick?: () => void;
|
|
onAccountClick?: () => void;
|
|
}
|
|
|
|
const TopBar = React.forwardRef<HTMLElement, TopBarProps>(
|
|
({ className, onDownloadClick, onAccountClick, ...props }, ref) => {
|
|
return (
|
|
<header
|
|
ref={ref}
|
|
className={cn(
|
|
"sticky top-0 z-50 w-full border-b bg-background/95 backdrop-blur supports-[backdrop-filter]:bg-background/60",
|
|
className,
|
|
)}
|
|
{...props}
|
|
>
|
|
<div className="container flex h-16 items-center justify-between">
|
|
{/* Logo */}
|
|
<div className="flex items-center">
|
|
<div className="flex items-center space-x-2">
|
|
<div className="flex h-8 w-8 items-center justify-center rounded-lg bg-gradient-to-r from-green-500 to-blue-600">
|
|
<span className="text-sm font-bold text-white">📊</span>
|
|
</div>
|
|
<span className="text-xl font-bold bg-gradient-to-r from-green-600 to-blue-600 bg-clip-text text-transparent">
|
|
sheetEasy AI
|
|
</span>
|
|
</div>
|
|
</div>
|
|
|
|
{/* Actions */}
|
|
<div className="flex items-center space-x-4">
|
|
<Button
|
|
variant="outline"
|
|
size="sm"
|
|
onClick={onDownloadClick}
|
|
className="hidden sm:inline-flex"
|
|
aria-label="파일 다운로드"
|
|
>
|
|
<svg
|
|
className="mr-2 h-4 w-4"
|
|
fill="none"
|
|
stroke="currentColor"
|
|
viewBox="0 0 24 24"
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
>
|
|
<path
|
|
strokeLinecap="round"
|
|
strokeLinejoin="round"
|
|
strokeWidth={2}
|
|
d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
|
|
/>
|
|
</svg>
|
|
Download
|
|
</Button>
|
|
|
|
<Button
|
|
variant="ghost"
|
|
size="sm"
|
|
onClick={onAccountClick}
|
|
className="flex items-center space-x-2"
|
|
aria-label="계정 설정"
|
|
>
|
|
<div className="h-8 w-8 rounded-full bg-gradient-to-r from-purple-500 to-pink-500 flex items-center justify-center">
|
|
<span className="text-xs font-medium text-white">User</span>
|
|
</div>
|
|
<span className="hidden sm:inline-block text-sm font-medium">
|
|
Account
|
|
</span>
|
|
</Button>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
);
|
|
},
|
|
);
|
|
|
|
TopBar.displayName = "TopBar";
|
|
|
|
export { TopBar };
|