|
| 1 | +import Skeleton from "./Skeleton"; |
| 2 | + |
| 3 | +export default function MyUrlSkeleton() { |
| 4 | + return ( |
| 5 | + <div className="w-full mx-[74px] flex flex-col items-center gap-5"> |
| 6 | + {/* 상단 탭 + 버튼 */} |
| 7 | + <div className="w-full flex justify-between mt-5"> |
| 8 | + {/* url, file 선택 버튼 */} |
| 9 | + <div className="flex items-center gap-0"> |
| 10 | + <Skeleton width="w-44" height="h-8" rounded="rounded-md" /> |
| 11 | + <Skeleton width="w-44" height="h-8" rounded="rounded-md" /> |
| 12 | + |
| 13 | + </div> |
| 14 | + {/* 맨 위 + 버튼 */} |
| 15 | + <Skeleton width="w-12" height="h-10" rounded="rounded-lg" /> |
| 16 | + </div> |
| 17 | + |
| 18 | + {/* URL 그룹 카드 3개 정도 */} |
| 19 | + <div className="flex flex-col gap-5 w-full"> |
| 20 | + {Array.from({ length: 3 }).map((_, i) => ( |
| 21 | + <div |
| 22 | + key={i} |
| 23 | + className="w-full bg-white rounded-lg shadow-md border border-neutral-200 p-6" |
| 24 | + > |
| 25 | + {/* 카드 헤더 */} |
| 26 | + <div className="flex justify-between items-center mb-8"> |
| 27 | + <Skeleton width="w-64" height="h-7" /> {/* 제목 */} |
| 28 | + <div className="flex gap-4"> |
| 29 | + <Skeleton width="w-10" height="h-10" rounded="rounded-md" /> {/* + */} |
| 30 | + <Skeleton width="w-24" height="h-10" rounded="rounded-md" /> {/* Save Tabs */} |
| 31 | + <Skeleton width="w-24" height="h-10" rounded="rounded-md" /> {/* Open Links */} |
| 32 | + </div> |
| 33 | + </div> |
| 34 | + |
| 35 | + {/* Source 텍스트 */} |
| 36 | + <Skeleton width="w-32" height="h-5" className="mb-6" /> |
| 37 | + |
| 38 | + {/* URL 리스트 (2~3개) */} |
| 39 | + <div className="flex flex-col gap-5"> |
| 40 | + {Array.from({ length: 2 }).map((_, j) => ( |
| 41 | + <div |
| 42 | + key={j} |
| 43 | + className="flex justify-between items-center border-t border-neutral-200 pt-3" |
| 44 | + > |
| 45 | + <div className="flex items-center gap-3 w-full"> |
| 46 | + <Skeleton width="w-5" height="h-5" rounded="rounded-full" /> |
| 47 | + <Skeleton width="w-3/4" height="h-5" /> |
| 48 | + </div> |
| 49 | + <Skeleton width="w-5" height="h-5" rounded="rounded-md" /> |
| 50 | + </div> |
| 51 | + ))} |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + ))} |
| 55 | + </div> |
| 56 | + </div> |
| 57 | + ); |
| 58 | +} |
0 commit comments