forked from boostcampwm-2022/web05-SleepyWoods
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] boostcampwm-2022#179 각 설명 분리 및 키보드 설명
- Loading branch information
Showing
5 changed files
with
112 additions
and
34 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
45 changes: 45 additions & 0 deletions
45
frontend/src/component/Info/HelpDescription/KeyBoardInfo.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,45 @@ | ||
import * as style from './keyBoardInfo.styled'; | ||
import * as commonStyle from './common.styled'; | ||
import keyboardArrow from '../../../assets/icon/keyboardArrow.svg'; | ||
import keyboardSpace from '../../../assets/icon/keyboardSpace.svg'; | ||
import keyboardShift from '../../../assets/icon/keyboardShift.svg'; | ||
import keyboardA from '../../../assets/icon/keyboardA.svg'; | ||
import keyboardR from '../../../assets/icon/keyboardR.svg'; | ||
|
||
const keyBoardInfo = () => { | ||
return ( | ||
<div css={commonStyle.infoContainer}> | ||
<h4 css={commonStyle.header}>- 기본키 조작법</h4> | ||
<div css={style.description}> | ||
<div css={style.keyboard}> | ||
<ul> | ||
<li> | ||
<img src={keyboardArrow} alt="" height={'80px'} /> | ||
<p>화살표 방향키로 이동할 수 있습니다.</p> | ||
</li> | ||
<li> | ||
<img src={keyboardSpace} alt="" height={'40px'} /> | ||
<p>space키로 점프할 수 있습니다.</p> | ||
</li> | ||
</ul> | ||
<ul> | ||
<li> | ||
<img src={keyboardA} alt="" height={'40px'} /> | ||
<p>A키로 공격 모션을 취할 수 있습니다.</p> | ||
</li> | ||
<li> | ||
<img src={keyboardR} alt="" height={'40px'} /> | ||
<p>R키로 구르기를 할 수 있습니다.</p> | ||
</li> | ||
<li> | ||
<img src={keyboardShift} alt="" height={'40px'} /> | ||
<p>shift키로 달리기를 할 수 있습니다.</p> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default keyBoardInfo; |
18 changes: 18 additions & 0 deletions
18
frontend/src/component/Info/HelpDescription/common.styled.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,18 @@ | ||
import { css } from '@emotion/react'; | ||
import theme from '../../../styles/theme'; | ||
|
||
export const infoContainer = css` | ||
width: 100%; | ||
padding: 20px; | ||
margin-bottom: 10px; | ||
background-color: ${theme.white05}; | ||
box-shadow: 0px 0px 2px rgba(0, 0, 0, 0.1); | ||
border-radius: 20px; | ||
`; | ||
|
||
export const header = css` | ||
font-size: 18px; | ||
font-weight: 700; | ||
padding-bottom: 15px; | ||
`; |
34 changes: 34 additions & 0 deletions
34
frontend/src/component/Info/HelpDescription/keyBoardInfo.styled.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,34 @@ | ||
import { css } from '@emotion/react'; | ||
|
||
export const description = css` | ||
display: flex; | ||
flex-grow: 1; | ||
width: 100%; | ||
`; | ||
|
||
export const keyboard = css` | ||
display: flex; | ||
justify-content: space-around; | ||
width: 100%; | ||
height: 250px; | ||
ul { | ||
display: flex; | ||
height: 100%; | ||
flex-flow: column; | ||
justify-content: space-between; | ||
height: 100%; | ||
padding: 0 20px; | ||
img { | ||
justify-items: center; | ||
margin-top: 5px; | ||
} | ||
p { | ||
font-size: 14px; | ||
padding: 10px 0; | ||
} | ||
} | ||
`; |
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