-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
241 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
const AccountConditionSkeleton = () => { | ||
return ( | ||
<div className='flex flex-col gap-4 rounded-lg bg-white p-4'> | ||
<div className='flex items-center justify-between'> | ||
{/* 계좌 정보 타이틀 */} | ||
<div className='h-6 w-24 animate-pulse rounded bg-gray-200' /> | ||
{/* 날짜 정보 */} | ||
<div className='h-5 w-32 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
|
||
<div className='flex flex-col gap-2'> | ||
{/* 총자산, 수익률 등의 정보 */} | ||
<div className='flex items-center justify-between'> | ||
<div className='h-5 w-20 animate-pulse rounded bg-gray-200' /> | ||
<div className='h-7 w-32 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
<div className='flex items-center justify-between'> | ||
<div className='h-5 w-20 animate-pulse rounded bg-gray-200' /> | ||
<div className='h-7 w-32 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
const MyStocksListSkeleton = () => { | ||
return ( | ||
<div className='flex flex-col gap-2 rounded-lg bg-white p-4'> | ||
{/* 보유종목 타이틀 */} | ||
<div className='mb-2 h-6 w-24 animate-pulse rounded bg-gray-200' /> | ||
|
||
{/* 테이블 헤더 */} | ||
<div className='flex items-center justify-between border-b pb-2'> | ||
<div className='h-4 w-32 animate-pulse rounded bg-gray-200' /> | ||
<div className='h-4 w-20 animate-pulse rounded bg-gray-200' /> | ||
<div className='h-4 w-24 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
|
||
{/* 보유주식 리스트 */} | ||
{Array.from({ length: 5 }).map((_, index) => ( | ||
<div | ||
key={index} | ||
className='flex items-center justify-between border-b py-3' | ||
> | ||
<div className='h-5 w-40 animate-pulse rounded bg-gray-200' /> | ||
<div className='h-5 w-24 animate-pulse rounded bg-gray-200' /> | ||
<div className='h-5 w-28 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
))} | ||
</div> | ||
); | ||
}; | ||
|
||
export const AccountSkeleton = () => { | ||
return ( | ||
<div className='flex min-h-[500px] flex-col gap-3'> | ||
<AccountConditionSkeleton /> | ||
<MyStocksListSkeleton /> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
export const BookmarkSkeleton = () => { | ||
return ( | ||
<div className='mx-auto flex min-h-[500px] w-full flex-1 flex-col rounded-md bg-white p-4 shadow-md'> | ||
{/* 헤더 */} | ||
<div className='flex border-b pb-2 text-sm font-bold'> | ||
<div className='w-1/2'> | ||
<div className='h-4 w-16 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
<div className='w-1/4 text-center'> | ||
<div className='mx-auto h-4 w-16 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
<div className='flex w-1/4 justify-end'> | ||
<div className='h-4 w-16 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
</div> | ||
|
||
{/* 북마크 리스트 */} | ||
<ul className='flex flex-col divide-y text-sm'> | ||
{Array.from({ length: 8 }).map((_, index) => ( | ||
<li key={index} className='flex py-2'> | ||
{/* 종목명과 코드 */} | ||
<div className='flex w-1/2 gap-2'> | ||
<div className='h-4 w-24 animate-pulse rounded bg-gray-200' /> | ||
<div className='h-4 w-16 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
{/* 현재가 */} | ||
<div className='flex w-1/4 justify-center'> | ||
<div className='h-4 w-20 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
{/* 등락률 */} | ||
<div className='flex w-1/4 justify-end'> | ||
<div className='h-4 w-16 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
export const MyInfoSkeleton = () => { | ||
return ( | ||
<div className='flex flex-col items-center p-6 text-lg'> | ||
<div className='flex w-full max-w-[600px] items-center gap-2 py-2 sm:w-[80%] lg:w-[50%]'> | ||
<div className='flex w-full items-center justify-between'> | ||
{/* 닉네임 라벨 */} | ||
<div className='w-28 min-w-[80px] sm:min-w-[100px]'> | ||
<div className='h-6 w-16 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
|
||
<div className='flex items-center gap-2'> | ||
{/* 닉네임 값 */} | ||
<div className='min-w-[60px] sm:min-w-[80px]'> | ||
<div className='h-6 w-24 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
|
||
{/* 편집 아이콘 */} | ||
<div className='flex w-9 items-center justify-end'> | ||
<div className='h-5 w-5 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
export const OrderSkeleton = () => { | ||
return ( | ||
<div className='mx-auto flex min-h-[500px] w-full flex-col rounded-md bg-white p-4 shadow-md'> | ||
{/* 헤더 */} | ||
<div className='flex border-b pb-2 text-sm font-bold'> | ||
<div className='w-1/3'> | ||
<div className='h-4 w-16 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
<div className='flex w-1/4 justify-center'> | ||
<div className='h-4 w-16 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
<div className='flex w-1/4 justify-center'> | ||
<div className='h-4 w-16 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
<div className='flex w-1/4 justify-center'> | ||
<div className='h-4 w-20 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
<div className='flex w-1/4 justify-end'> | ||
<div className='h-4 w-20 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
<div className='w-1/6'></div> | ||
</div> | ||
|
||
{/* 주문 리스트 */} | ||
<ul className='flex flex-col divide-y text-sm'> | ||
{Array.from({ length: 5 }).map((_, index) => ( | ||
<li className='flex py-2' key={index}> | ||
{/* 종목명과 코드 */} | ||
<div className='flex w-1/3 gap-2'> | ||
<div className='h-4 w-24 animate-pulse rounded bg-gray-200' /> | ||
<div className='h-4 w-16 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
{/* 요청 유형 */} | ||
<div className='flex w-1/4 justify-center'> | ||
<div className='h-4 w-12 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
{/* 수량 */} | ||
<div className='flex w-1/4 justify-center'> | ||
<div className='h-4 w-16 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
{/* 요청 가격 */} | ||
<div className='flex w-1/4 justify-center'> | ||
<div className='h-4 w-20 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
{/* 요청 시간 */} | ||
<div className='flex w-1/4 justify-end'> | ||
<div className='h-4 w-24 animate-pulse rounded bg-gray-200' /> | ||
</div> | ||
{/* 취소 버튼 */} | ||
<div className='flex w-1/6 justify-end'> | ||
<div className='h-6 w-12 animate-pulse rounded-lg bg-gray-200' /> | ||
</div> | ||
</li> | ||
))} | ||
</ul> | ||
</div> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.