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
4 changed files
with
38 additions
and
10 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
25 changes: 25 additions & 0 deletions
25
frontend/src/component/Info/HelpDescription/WalkAndUserInfo.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 style from './boardAndRankInfo.styled'; | ||
import * as commonStyle from './common.styled'; | ||
import walkAndUserImg from '../../../assets/info-walkAndUser.png'; | ||
|
||
const WalkAndUserInfo = () => { | ||
return ( | ||
<div css={commonStyle.infoContainer}> | ||
<h4 css={commonStyle.header}>- 걸음수 & 접속유저</h4> | ||
<div css={style.description}> | ||
<img | ||
src={walkAndUserImg} | ||
alt="걸음수와 접속유저 이미지" | ||
width={'100%'} | ||
/> | ||
<p> | ||
오른쪽 하단에 자신의 <strong> 걸음수</strong>와{' '} | ||
<strong>접속유저</strong>가 표시됩니다. | ||
</p> | ||
<p>방향키로 이동했을때 걸음수가 증가하며 랭킹에 반영됩니다.</p> | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default WalkAndUserInfo; |
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
11 changes: 11 additions & 0 deletions
11
frontend/src/component/Info/HelpDescription/walkAndUserInfo.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,11 @@ | ||
import { css } from '@emotion/react'; | ||
|
||
export const description = css` | ||
width: 100%; | ||
& > p { | ||
padding: 15px; | ||
font-size: 14px; | ||
text-align: center; | ||
} | ||
`; |