-
Notifications
You must be signed in to change notification settings - Fork 2
[#143] 마이페이지 스켈레톤 UI 적용 #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
2680836
chore: FloatingActions 컴포넌트 폴더 이동
suuuuya 1e7bb19
refactor: 로더 로직 수정 #143
suuuuya e710860
feat: 마이페이지 내가 쓴 후기 스켈레톤 UI 컴포넌트 생성 및 스켈레톤 적용 #143
suuuuya fe2acb8
Merge branch 'develop' into feature/skeleton-ui
suuuuya 2e0331b
chore: 와인 아이템 컨테이너 스타일 상수 모바일, 태블릿, 데스크탑 순으로 변경 #143
suuuuya 57201a0
chore: 리뷰 아이템 스켈레톤 컴포넌트 테일윈드 cn으로 반응형에 따라 구분하여 정리 #143
suuuuya 5a4920a
chore: 미사용 스타일 삭제 #143
suuuuya 5080b49
chore: 코드 스타일 일관성 있게 수정 #143
suuuuya 927c77a
chore: flex 스타일 flex-col-center 로 적용 #143
suuuuya 8f80cd9
chore: flex 스타일 flex-col-center 누락된 페이지 추가 적용 #143
suuuuya 3f09197
fix: 의미 없는 이미지 빈 alt으로 수정 #143
suuuuya 0f1f333
Merge branch 'develop' into feature/skeleton-ui
suuuuya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
65 changes: 65 additions & 0 deletions
65
src/app/myprofile/_components/review-item/review-item-skeleton.tsx
This file contains hidden or 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,65 @@ | ||
| import { cn } from "@/lib/utils"; | ||
| import Skeleton from "react-loading-skeleton"; | ||
| import "react-loading-skeleton/dist/skeleton.css"; | ||
| import Image from "next/image"; | ||
|
|
||
| const ReviewItemSkeleton = () => { | ||
| return ( | ||
| <div | ||
| className={cn( | ||
| "flex flex-col gap-[51px] border-b border-gray-300 py-[16px] pb-[28px] pt-[39px]", | ||
| "tablet:gap-[54px]", | ||
| "pc:gap-[50px] pc:py-[80px]" | ||
| )} | ||
| > | ||
| <div className="flex w-full flex-col items-start justify-center gap-8 px-[14px]"> | ||
| <div className="flex-col-center w-full gap-[26px]"> | ||
| <div className="flex w-full flex-col items-start gap-5"> | ||
| {/*별점 컴포넌트 */} | ||
| <Skeleton width={200} height={20} /> | ||
| {/* 와인 정보 */} | ||
| <div | ||
| className={cn( | ||
| "flex w-full items-center gap-2", | ||
| "tablet:gap-4", | ||
| "pc:gap-[17px]" | ||
| )} | ||
| > | ||
| <div className="relative h-[80px] w-[60px]"> | ||
| <Image src="/images/placeholder/img-wine.svg" alt="" fill /> | ||
| </div> | ||
| <div> | ||
| <Skeleton width={300} height={20} style={{ marginBottom: 6 }} /> | ||
| <Skeleton width={100} height={16} /> | ||
| </div> | ||
| </div> | ||
| </div> | ||
| <div className="w-full"> | ||
| {/* FlavorIconList 컴포넌트 */} | ||
| <Skeleton width={600} height={20} style={{ marginBottom: 6 }} /> | ||
| </div> | ||
| {/* 리뷰 내용 */} | ||
| <div className="w-full"> | ||
| <Skeleton width="100%" height={20} style={{ marginBottom: 8 }} /> | ||
| <Skeleton width="85%" height={20} /> | ||
| </div> | ||
| </div> | ||
|
|
||
| {/* WineTaste 컴포넌트 */} | ||
| <div | ||
| className={cn( | ||
| "flex w-full flex-col gap-3", | ||
| "tablet:grid tablet:grid-cols-2 tablet:gap-4", | ||
| "pc:grid pc:grid-cols-2 pc:gap-4" | ||
| )} | ||
| > | ||
| {Array.from({ length: 4 }).map((_, i) => ( | ||
| <Skeleton key={i} width="100%" height={16} /> | ||
| ))} | ||
| </div> | ||
| </div> | ||
| </div> | ||
| ); | ||
| }; | ||
|
|
||
| export default ReviewItemSkeleton; |
This file contains hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
별거 아니지만 모바일 -> 태블릿 -> 데스크탑 순서로 바꾸시면 연수님이 작성하신 다른 파일들과 동일해서 좋을 것 같아요!