-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #45 from Invincible-Backend-Study/fe/dev
refactor: 로딩 및 최소 지연시간 추가
- Loading branch information
Showing
15 changed files
with
105 additions
and
46 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
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
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
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
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
27 changes: 27 additions & 0 deletions
27
frontend/src/components/QuestionSetItem/QuestionSetItemListSkeleton.tsx
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,27 @@ | ||
import {Button, Card, CardBody, CardFooter, CardHeader, Divider, Skeleton, Spacer} from "@nextui-org/react"; | ||
|
||
const QuestionSetItemListSkeleton = () => { | ||
return new Array(5).fill(0).map((_,index) => <Card key={index} className="max-w-[270px] "> | ||
<CardHeader className="flex flex-col items-start "> | ||
<span className="text-blue-500">NEW</span> | ||
<Skeleton className='w-3/5 rounded-lg'> | ||
<div className='h-4 w-3/5 rounded-lg bg-default-200'></div> | ||
</Skeleton> | ||
<Spacer y={2}/> | ||
<Skeleton className='w-full rounded-lg'> | ||
<div className='h-4 w-4/5 rounded-lg bg-default-200'></div> | ||
</Skeleton> | ||
</CardHeader> | ||
<CardBody className='p-3'> | ||
<Skeleton className="w-[240px] h-[200px] rounded-lg"></Skeleton> | ||
</CardBody> | ||
<Divider/> | ||
<CardFooter className="flex flex-row-reverse"> | ||
<Skeleton className="rounded-lg"> | ||
<Button /> | ||
</Skeleton> | ||
</CardFooter> | ||
</Card>) | ||
} | ||
|
||
export default QuestionSetItemListSkeleton; |
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
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
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
|
||
|
||
export const dateToString = (date: Date) => `${date.getFullYear()}년 ${date.getMonth()}월 ${date.getDay()}일`; | ||
export const dateToString = (date: Date) => `${date.getFullYear()}년 ${date.getMonth() + 1}월 ${date.getDay()}일`; |