|
| 1 | +import FormField from '@/components/auth/FormField'; |
| 2 | +import PageHeader from '@/components/common/PageHeader'; |
| 3 | +import Card from '@/components/home/Card'; |
| 4 | +import AddPlanButton from '@/components/plans/AddPlanButton'; |
| 5 | +import PlanSection from '@/components/plans/PlanSection'; |
| 6 | +import SearchBar from '@/components/plans/SearchBar'; |
| 7 | + |
| 8 | +import { Target, Calendar, CheckCircle2 } from 'lucide-react'; |
| 9 | + |
| 10 | +const sampleTasks = [ |
| 11 | + { |
| 12 | + id: 1, |
| 13 | + text: 'useState, useEffect 기초', |
| 14 | + date: '2025-01-20', |
| 15 | + isChecked: true, |
| 16 | + }, |
| 17 | + { |
| 18 | + id: 2, |
| 19 | + text: 'useContext, useReducer', |
| 20 | + date: '2025-01-22', |
| 21 | + isChecked: false, |
| 22 | + }, |
| 23 | + { |
| 24 | + id: 3, |
| 25 | + text: 'Custom Hooks 만들기', |
| 26 | + date: '2025-01-22', |
| 27 | + isChecked: false, |
| 28 | + }, |
| 29 | +]; |
| 30 | + |
| 31 | +const Page = () => { |
| 32 | + return ( |
| 33 | + <div className="bg-background min-h-screen p-11"> |
| 34 | + {/* 1. 페이지 헤더 */} |
| 35 | + <PageHeader |
| 36 | + title="플랜" |
| 37 | + highlight="관리하기" |
| 38 | + description="학습 주제를 만들고 세부 과제를 관리하세요" |
| 39 | + /> |
| 40 | + |
| 41 | + {/* 2. 상단 통계 카드 (Grid) */} |
| 42 | + <div className="mb-4 grid grid-cols-1 gap-3.5 md:grid-cols-3"> |
| 43 | + <Card className="flex items-center justify-between border-2 border-[#D5DCFB]"> |
| 44 | + {/* 왼쪽: 텍스트 영역 */} |
| 45 | + <div className="flex flex-col gap-1"> |
| 46 | + <span className="text-text-sub text-sm font-medium"> |
| 47 | + 전체 플랜 수 |
| 48 | + </span> |
| 49 | + <span className="text-4xl font-bold text-[#4757D3]">1</span> |
| 50 | + </div> |
| 51 | + |
| 52 | + {/* 오른쪽: 아이콘 영역 */} |
| 53 | + <div className="flex h-12 w-12 items-center justify-center rounded-full bg-[#D5DCFB] text-[#556BD6]"> |
| 54 | + <Target size={24} strokeWidth={2.5} /> |
| 55 | + </div> |
| 56 | + </Card> |
| 57 | + <Card className="flex items-center justify-between border-2 border-[#EBDBFC]"> |
| 58 | + {/* 왼쪽: 텍스트 영역 */} |
| 59 | + <div className="flex flex-col gap-1"> |
| 60 | + <span className="text-text-sub text-sm font-medium"> |
| 61 | + 전체 플랜 수 |
| 62 | + </span> |
| 63 | + <span className="text-4xl font-bold text-[#7B44C4]">1</span> |
| 64 | + </div> |
| 65 | + |
| 66 | + {/* 오른쪽: 아이콘 영역 */} |
| 67 | + <div className="flex h-12 w-12 items-center justify-center rounded-full bg-[#EBDBFC] text-[#7B44C4]"> |
| 68 | + <Calendar size={24} strokeWidth={2.5} /> |
| 69 | + </div> |
| 70 | + </Card> |
| 71 | + <Card className="flex items-center justify-between border-2 border-[#C6F6D7]"> |
| 72 | + {/* 왼쪽: 텍스트 영역 */} |
| 73 | + <div className="flex flex-col gap-1"> |
| 74 | + <span className="text-text-sub text-sm font-medium"> |
| 75 | + 전체 플랜 수 |
| 76 | + </span> |
| 77 | + <span className="text-4xl font-bold text-[#00841F]">1</span> |
| 78 | + </div> |
| 79 | + |
| 80 | + {/* 오른쪽: 아이콘 영역 */} |
| 81 | + <div className="flex h-12 w-12 items-center justify-center rounded-full bg-[#C6F6D7] text-[#00841F]"> |
| 82 | + <CheckCircle2 size={24} strokeWidth={2.5} /> |
| 83 | + </div> |
| 84 | + </Card> |
| 85 | + </div> |
| 86 | + |
| 87 | + {/* 3. 검색 바 */} |
| 88 | + <SearchBar /> |
| 89 | + |
| 90 | + {/* 4. 메인 플랜 목록 */} |
| 91 | + <section className="space-y-6"> |
| 92 | + <PlanSection |
| 93 | + title="React Hooks 학습" |
| 94 | + description="React Hooks의 기본부터 고급 패턴까지 학습" |
| 95 | + tasks={sampleTasks} |
| 96 | + /> |
| 97 | + |
| 98 | + {/* 추가적인 PlanSection이 있다면 여기에 배치 */} |
| 99 | + </section> |
| 100 | + |
| 101 | + {/* 5. 하단 추가 버튼 */} |
| 102 | + <div className="mt-6"> |
| 103 | + <AddPlanButton /> |
| 104 | + </div> |
| 105 | + </div> |
| 106 | + ); |
| 107 | +}; |
| 108 | + |
| 109 | +export default Page; |
0 commit comments