File tree Expand file tree Collapse file tree 3 files changed +57
-0
lines changed
Expand file tree Collapse file tree 3 files changed +57
-0
lines changed Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+
3+ interface CardsLayoutProps {
4+ children : React . ReactNode ;
5+ }
6+
7+ const CardsLayout = ( { children } : CardsLayoutProps ) => {
8+ return (
9+ < div className = "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5 md:gap-6 lg:gap-[10px] w-full" >
10+ { children }
11+ </ div >
12+ ) ;
13+ } ;
14+
15+ export default CardsLayout ;
Original file line number Diff line number Diff line change 1+ import React from "react" ;
2+
3+ interface ContentLayoutProps {
4+ children : React . ReactNode ;
5+ }
6+
7+ const ContentLayout = ( { children } : ContentLayoutProps ) => {
8+ return (
9+ < div className = "w-full max-w-[1125px] mx-auto p-[10px] md:p-10 px-[32.5px]" >
10+ { children }
11+ </ div >
12+ ) ;
13+ } ;
14+
15+ export default ContentLayout ;
Original file line number Diff line number Diff line change 1+ import CardsLayout from "@/components/Layout/CardsLayout" ;
2+ import ContentLayout from "@/components/Layout/ContentLayout" ;
3+
4+ const Favorite = ( ) => {
5+ return (
6+ < >
7+ < div className = "page-title pt-[10px] md:pt-5 pb-10 md:pb-[60px] bg-gray100 text-center" >
8+ < h2 className = "text-[32px] md:text-[40px] font-semibold" >
9+ ⭐️ 즐겨찾기
10+ </ h2 >
11+ </ div >
12+ < ContentLayout >
13+ < CardsLayout >
14+ { /* 카드 공통 컴포넌트로 구현 예정 */ }
15+ < div className = "border border-red-800" > card</ div >
16+ < div className = "border border-red-800" > card</ div >
17+ < div className = "border border-red-800" > card</ div >
18+ < div className = "border border-red-800" > card</ div >
19+ < div className = "border border-red-800" > card</ div >
20+ < div className = "border border-red-800" > card</ div >
21+ </ CardsLayout >
22+ </ ContentLayout >
23+ </ >
24+ ) ;
25+ } ;
26+
27+ export default Favorite ;
You can’t perform that action at this time.
0 commit comments