Skip to content

Commit

Permalink
[feat] boostcampwm-2022#179 걸음수 및 접속유저 설명 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
JJongBin committed Dec 11, 2022
1 parent 824e373 commit 2bca1a7
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 10 deletions.
2 changes: 2 additions & 0 deletions frontend/src/component/Info/Help.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import help from '../../assets/icon/help.svg';
import BoardAndRankInfo from './HelpDescription/BoardAndRankInfo';
import KeyBoardInfo from './HelpDescription/keyBoardInfo';
import SidebarInfo from './HelpDescription/SidebarInfo';
import WalkAndUserInfo from './HelpDescription/WalkAndUserInfo';

import * as style from './info.styled';

Expand Down Expand Up @@ -34,6 +35,7 @@ const Help = () => {
<KeyBoardInfo />
<SidebarInfo />
<BoardAndRankInfo />
<WalkAndUserInfo />
</div>
</section>
</>
Expand Down
25 changes: 25 additions & 0 deletions frontend/src/component/Info/HelpDescription/WalkAndUserInfo.tsx
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;
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,5 @@ export const description = css`
padding: 15px;
font-size: 14px;
text-align: center;
/* strong {
color: ${theme.deepGreen};
font-weight: 700;
}
span {
color: ${theme.red};
font-weight: 700;
} */
}
`;
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;
}
`;

0 comments on commit 2bca1a7

Please sign in to comment.