-
Notifications
You must be signed in to change notification settings - Fork 7
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
[SP2] 프로젝트 탭 디테일한 디자인 수정 #248
Merged
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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 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
4 changes: 2 additions & 2 deletions
4
src/views/ProjectPage/components/project/ProjectCard/index.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
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
25 changes: 25 additions & 0 deletions
25
src/views/ProjectPage/components/project/ProjectCardSkeletonUI/index.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,25 @@ | ||
import * as S from './style'; | ||
|
||
export default function ProjectCardSkeletonUI() { | ||
const array = new Array(9).fill(0); | ||
|
||
return ( | ||
<S.CardList> | ||
{array.map((_, index) => ( | ||
<S.ProjectCard key={index}> | ||
<S.ProjectThumbnail /> | ||
<S.ProjectContent> | ||
<S.ProjectHeader> | ||
<S.ProjectLogo /> | ||
<S.ProjectText> | ||
<S.ProjectTitle /> | ||
<S.ProjectType /> | ||
</S.ProjectText> | ||
</S.ProjectHeader> | ||
<S.ProjectSummary /> | ||
</S.ProjectContent> | ||
</S.ProjectCard> | ||
))} | ||
</S.CardList> | ||
); | ||
} |
109 changes: 109 additions & 0 deletions
109
src/views/ProjectPage/components/project/ProjectCardSkeletonUI/style.ts
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,109 @@ | ||
import styled from '@emotion/styled'; | ||
import { colors } from '@sopt-makers/colors'; | ||
|
||
export const CardList = styled.div` | ||
display: grid; | ||
grid-template-columns: 1fr 1fr 1fr; | ||
gap: 50px 28px; | ||
width: 1112px; | ||
|
||
@media (max-width: 1279px) and (min-width: 900px) { | ||
grid-template-columns: 1fr 1fr; | ||
width: 732px; | ||
} | ||
|
||
@media (max-width: 899px) { | ||
grid-template-columns: 1fr; | ||
gap: 16px; | ||
width: 100%; | ||
} | ||
`; | ||
|
||
export const ProjectCard = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 10px; | ||
|
||
width: 352px; | ||
height: 308px; | ||
padding: 14px; | ||
border: 1px solid ${colors.gray700}; | ||
border-radius: 20px; | ||
|
||
@media (max-width: 899px) { | ||
width: 100%; | ||
height: 88px; | ||
padding: 0 0 10px 0; | ||
border: none; | ||
border-bottom: 1px solid ${colors.gray900}; | ||
border-radius: 0; | ||
} | ||
`; | ||
|
||
export const ProjectContent = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 4px; | ||
|
||
@media (max-width: 899px) { | ||
gap: 12px; | ||
} | ||
`; | ||
|
||
export const ProjectThumbnail = styled.div` | ||
width: 324px; | ||
height: 192px; | ||
background-color: ${colors.gray800}; | ||
border-radius: 8px; | ||
|
||
@media (max-width: 899px) { | ||
display: none; | ||
} | ||
`; | ||
|
||
export const ProjectLogo = styled.div` | ||
width: 40px; | ||
height: 40px; | ||
background-color: ${colors.gray800}; | ||
border-radius: 8px; | ||
|
||
@media (min-width: 900px) { | ||
display: none; | ||
} | ||
`; | ||
|
||
export const ProjectHeader = styled.div` | ||
display: flex; | ||
gap: 12px; | ||
`; | ||
|
||
export const ProjectText = styled.div` | ||
display: flex; | ||
align-items: center; | ||
gap: 6px; | ||
`; | ||
|
||
export const ProjectTitle = styled.div` | ||
width: 100px; | ||
height: 28px; | ||
background-color: ${colors.gray800}; | ||
border-radius: 8px; | ||
`; | ||
|
||
export const ProjectType = styled.div` | ||
width: 39px; | ||
height: 28px; | ||
background-color: ${colors.gray800}; | ||
border-radius: 8px; | ||
`; | ||
|
||
export const ProjectSummary = styled.div` | ||
width: 270px; | ||
height: 22px; | ||
background-color: ${colors.gray800}; | ||
border-radius: 8px; | ||
|
||
@media (max-width: 899px) { | ||
width: 40%; | ||
} | ||
`; |
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.
Oops, something went wrong.
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.
const isMobile = useIsMobile('899px');
useIsMobile 훅을 사용하고 있는데 초기값이 false였다가 true로 변하면서 텍스트가
SOPT에서 진행된 프로젝트 둘러보기
에서SOPT 프로젝트 둘러보기
로 변하게 됩니다. 변함없이 처음부터SOPT 프로젝트 둘러보기
로 나오게 할 좋은 방법이 뭐가 있을까요?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.
요 두 방법이 잇을 것 같아요~~
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.
저는 서진이가 제안해준 2번 방법이 더 좋을 것 같아요!
다른 작업할때 말씀해주신 문제와 비슷한 문제를 겪을 가능성이 높아보여요~
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.
2번에 대해서 좀 더 자세히 설명해주실 수 있나요? 초기값을 어떤식으로 지정하면 좋을까요?
모바일 사이즈일 경우에만
SOPT 프로젝트 둘러보기
타이틀이 나와야 해요!