-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* design: 로그인 페이지 반응형 추가 * design: 메인페이지 게시글 반응형 디자인 수정 * design: 상세페이지 버튼 반응형 디자인 수정 * design: 이벤트 페이지 사진 크기 수정 * refactor: 확인 모달 children 타입 변경 * design: 브랜치 생성 모달 글자 하이라이트 추가 * design: 목록 버튼 디자인 수정 * design: 로딩 스피너 문자를 css로 구현
- Loading branch information
Showing
7 changed files
with
145 additions
and
71 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 |
---|---|---|
@@ -1,59 +1,88 @@ | ||
import React from 'react'; | ||
import styled from 'styled-components'; | ||
|
||
const Spinner = () => { | ||
return ( | ||
<S.SpinnerWrapper> | ||
<div> | ||
<span>/</span> | ||
</div> | ||
</S.SpinnerWrapper> | ||
<SpinnerContainer> | ||
<LessThan /> | ||
<Slash /> | ||
<GreaterThan /> | ||
</SpinnerContainer> | ||
); | ||
}; | ||
|
||
export default Spinner; | ||
|
||
const S = { | ||
SpinnerWrapper: styled.div` | ||
div { | ||
color: var(--baton-red); | ||
font-family: Consolas, Menlo, Monaco, monospace; | ||
font-weight: 900; | ||
font-size: 120px; | ||
opacity: 0.9; | ||
@media (max-width: 768px) { | ||
font-size: 78px; | ||
} | ||
const SpinnerContainer = styled.div` | ||
display: flex; | ||
align-items: center; | ||
`; | ||
const LessThan = styled.div` | ||
position: relative; | ||
width: 45px; | ||
height: 35px; | ||
&::before { | ||
content: ' '; | ||
position: absolute; | ||
width: 27px; | ||
height: 12px; | ||
border-radius: 1.5px; | ||
background-color: var(--baton-red); | ||
transform: skew(0, -33deg); | ||
@media (min-width: 768px) { | ||
width: 42px; | ||
height: 15px; | ||
} | ||
div:before { | ||
content: '<'; | ||
display: inline-block; | ||
animation: pulse 0.6s alternate infinite ease-in-out; | ||
} | ||
&::after { | ||
content: ' '; | ||
position: absolute; | ||
top: 21px; | ||
width: 27px; | ||
height: 12px; | ||
border-radius: 1.5px; | ||
background-color: var(--baton-red); | ||
transform: skew(0, 33deg); | ||
@media (min-width: 768px) { | ||
top: 29px; | ||
width: 42px; | ||
height: 14px; | ||
} | ||
div:after { | ||
content: '>'; | ||
display: inline-block; | ||
animation: pulse 0.6s 0.3s alternate infinite ease-in-out; | ||
} | ||
animation: pulseLess 0.6s alternate infinite ease-in-out; | ||
@keyframes pulseLess { | ||
to { | ||
opacity: 0.7; | ||
transform: scale(1.2); | ||
} | ||
span { | ||
font-size: 112px; | ||
font-weight: 900; | ||
margin: 0 8px; | ||
animation: pulse 0.6s 0.3s alternate infinite ease-in-out; | ||
@media (max-width: 768px) { | ||
font-size: 74px; | ||
} | ||
} | ||
@media (min-width: 768px) { | ||
width: 65px; | ||
height: 40px; | ||
} | ||
`; | ||
const GreaterThan = styled(LessThan)` | ||
transform: scaleX(-1); | ||
animation: pulseGreater 0.6s 0.3s alternate infinite ease-in-out; | ||
@keyframes pulseGreater { | ||
to { | ||
opacity: 0.7; | ||
transform: scaleX(-1) scale(1.2); | ||
} | ||
@keyframes pulse { | ||
to { | ||
transform: scale(1.2); | ||
opacity: 0.8; | ||
} | ||
} | ||
`; | ||
const Slash = styled.div` | ||
width: 9.5px; | ||
height: 65px; | ||
border-radius: 1.5px; | ||
background-color: var(--gray-800); | ||
transform: skew(-18deg); | ||
animation: pulseSlash 0.6s 0.3s alternate infinite ease-in-out; | ||
@keyframes pulseSlash { | ||
to { | ||
opacity: 0.7; | ||
transform: skew(-18deg); | ||
} | ||
`, | ||
}; | ||
} | ||
@media (min-width: 768px) { | ||
width: 13px; | ||
height: 93px; | ||
} | ||
`; |
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