-
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.
Browse files
Browse the repository at this point in the history
[Style] : 메이트 탐색 디자인 변경, 스크롤바 수정, 알림 스타일 수정
- Loading branch information
Showing
9 changed files
with
360 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import * as S from './MateBoxSkeleton.style'; | ||
|
||
const MateBoxSkeleton = () => { | ||
return ( | ||
<S.MateBox> | ||
<S.MateDescriptionBox> | ||
<S.MateImage /> | ||
<S.TextBox> | ||
<S.TextContainer> | ||
<S.Text /> | ||
<S.Text /> | ||
</S.TextContainer> | ||
</S.TextBox> | ||
</S.MateDescriptionBox> | ||
<S.ImageWrapper> | ||
{new Array(2).fill(0).map(() => ( | ||
<S.SignatureContainer> | ||
<S.SignatureImage /> <S.Text /> | ||
</S.SignatureContainer> | ||
))} | ||
</S.ImageWrapper> | ||
</S.MateBox> | ||
); | ||
}; | ||
|
||
export default MateBoxSkeleton; |
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,121 @@ | ||
import styled, { keyframes } from 'styled-components'; | ||
|
||
import theme from '@/theme'; | ||
|
||
const skeletonGradient = keyframes` | ||
0% { | ||
background-color: rgba(165, 165, 165, 0.1); | ||
} | ||
50% { | ||
background-color: rgba(165, 165, 165, 0.3); | ||
} | ||
100% { | ||
background-color: rgba(165, 165, 165, 0.1); | ||
} | ||
`; | ||
|
||
const MateBox = styled.div` | ||
${theme.ALIGN.COLUMN_CENTER}; | ||
position: relative; | ||
width: 300px; | ||
height: 250px; | ||
border-radius: 20px; | ||
gap: 10px; | ||
animation: ${skeletonGradient} 1.5s infinite; | ||
`; | ||
|
||
const MateDescriptionBox = styled.div` | ||
${theme.ALIGN.ROW_CENTER}; | ||
gap: 10px; | ||
position: absolute; | ||
top: 20px; | ||
left: 20px; | ||
`; | ||
|
||
const ImageWrapper = styled.div` | ||
${theme.ALIGN.ROW_CENTER}; | ||
width: 300px; | ||
height: 100%; | ||
padding: 10px; | ||
margin-top: 60px; | ||
gap: 10px; | ||
`; | ||
|
||
const ImageContainer = styled.div` | ||
width: 80%; | ||
margin: 0 auto; | ||
display: flex; | ||
`; | ||
|
||
const TextBox = styled.div` | ||
width: 200px; | ||
${theme.ALIGN.ROW_CENTER}; | ||
justify-content: space-between; | ||
`; | ||
|
||
const TextContainer = styled.div` | ||
${theme.ALIGN.COLUMN_CENTER}; | ||
align-items: flex-start; | ||
gap: 10px; | ||
`; | ||
|
||
const Text = styled.div` | ||
width: 100px; | ||
padding: 10px; | ||
border-radius: 20px; | ||
animation: ${skeletonGradient} 1.5s infinite; | ||
`; | ||
|
||
const FollowButton = styled.button` | ||
width: 50px; | ||
padding: 15px; | ||
border: none; | ||
border-radius: 20px; | ||
animation: ${skeletonGradient} 1.5s infinite; | ||
`; | ||
|
||
const MateImage = styled.div` | ||
width: 50px; | ||
height: 50px; | ||
object-fit: cover; | ||
border-radius: 50%; | ||
animation: ${skeletonGradient} 1.5s infinite; | ||
`; | ||
|
||
const SignatureContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
width: 200px; | ||
align-items: center; | ||
`; | ||
|
||
const SignatureImage = styled.div` | ||
width: 120px; | ||
height: 120px; | ||
margin-bottom: 5px; | ||
object-fit: cover; | ||
border-radius: 5px; | ||
animation: ${skeletonGradient} 1.5s infinite; | ||
`; | ||
|
||
const Image = styled.div` | ||
width: 170px; | ||
height: 180px; | ||
border-radius: 10px; | ||
animation: ${skeletonGradient} 1.5s infinite; | ||
`; | ||
|
||
export { | ||
MateDescriptionBox, | ||
MateBox, | ||
TextBox, | ||
TextContainer, | ||
MateImage, | ||
SignatureContainer, | ||
SignatureImage, | ||
ImageContainer, | ||
Image, | ||
ImageWrapper, | ||
Text, | ||
FollowButton, | ||
}; |
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,91 @@ | ||
import styled, { keyframes } from 'styled-components'; | ||
|
||
import theme from '@/theme'; | ||
|
||
const skeletonGradient = keyframes` | ||
0% { | ||
background-color: rgba(165, 165, 165, 0.1); | ||
} | ||
50% { | ||
background-color: rgba(165, 165, 165, 0.3); | ||
} | ||
100% { | ||
background-color: rgba(165, 165, 165, 0.1); | ||
} | ||
`; | ||
|
||
const MateBox = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
justify-content: center; | ||
border-radius: 20px; | ||
height: 230px; | ||
animation: ${skeletonGradient} 1.5s infinite; | ||
`; | ||
|
||
const MateDescriptionBox = styled.div` | ||
${theme.ALIGN.COLUMN_CENTER}; | ||
align-items: center; | ||
width: 90%; | ||
margin: 0 auto; | ||
height: 80%; | ||
margin-right: 10px; | ||
`; | ||
|
||
const TextBox = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
`; | ||
|
||
const TextContainer = styled.div` | ||
${theme.ALIGN.COLUMN_CENTER}; | ||
gap: 10px; | ||
`; | ||
|
||
const MateImage = styled.div` | ||
width: 70px; | ||
height: 70px; | ||
padding: 15px; | ||
border-radius: 50%; | ||
margin: 10px; | ||
animation: ${skeletonGradient} 1.5s infinite; | ||
`; | ||
|
||
const ButtonContainer = styled.div` | ||
display: flex; | ||
flex-direction: column; | ||
margin: 10px 30px; | ||
justify-content: center; | ||
align-items: center; | ||
`; | ||
|
||
const Button = styled.button` | ||
border: none; | ||
padding: 15px; | ||
border-radius: 10px; | ||
margin-top: 5px; | ||
width: 120px; | ||
animation: ${skeletonGradient} 1.5s infinite; | ||
`; | ||
|
||
const Text = styled.div` | ||
display: flex; | ||
width: 100px; | ||
padding: 10px; | ||
border-radius: 20px; | ||
animation: ${skeletonGradient} 1.5s infinite; | ||
`; | ||
|
||
export { | ||
MateBox, | ||
MateDescriptionBox, | ||
MateImage, | ||
TextBox, | ||
TextContainer, | ||
Button, | ||
Text, | ||
ButtonContainer, | ||
}; |
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,23 @@ | ||
import * as S from './MateRecsys.style'; | ||
|
||
const MateRecsysSkeleton = () => { | ||
return ( | ||
<S.MateBox> | ||
<S.MateDescriptionBox> | ||
<S.TextBox> | ||
<S.MateImage /> | ||
<S.TextContainer> | ||
<S.Text /> | ||
<S.Text /> | ||
</S.TextContainer> | ||
<S.ButtonContainer> | ||
<S.Button /> | ||
<S.Button /> | ||
</S.ButtonContainer> | ||
</S.TextBox> | ||
</S.MateDescriptionBox> | ||
</S.MateBox> | ||
); | ||
}; | ||
|
||
export default MateRecsysSkeleton; |
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.