-
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
Feat/#214 로딩 컴포넌트 생성 및 layout에 적용
- Loading branch information
Showing
2 changed files
with
47 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
const Loading = () => { | ||
return ( | ||
<Main> | ||
<svg | ||
width='38' | ||
height='38' | ||
viewBox='0 0 38 38' | ||
xmlns='http://www.w3.org/2000/svg' | ||
stroke='#fff' | ||
> | ||
<g fill='none' fillRule='evenodd'> | ||
<g transform='translate(1 1)' strokeWidth='2'> | ||
<circle strokeOpacity='.5' cx='18' cy='18' r='18' /> | ||
<path d='M36 18c0-9.94-8.06-18-18-18'> | ||
<animateTransform | ||
attributeName='transform' | ||
type='rotate' | ||
from='0 18 18' | ||
to='360 18 18' | ||
dur='1s' | ||
repeatCount='indefinite' | ||
/> | ||
</path> | ||
</g> | ||
</g> | ||
</svg> | ||
</Main> | ||
); | ||
}; | ||
|
||
const Main = styled.div` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
flex-direction: column; | ||
width: 100%; | ||
height: 100vh; | ||
background: url('/img/main/main.png'); | ||
background-size: 100% 100vh; | ||
background-repeat: no-repeat; | ||
`; | ||
|
||
export default Loading; |
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