diff --git a/frontend/src/component/Info/Help.tsx b/frontend/src/component/Info/Help.tsx index 2061c04..b5c789b 100644 --- a/frontend/src/component/Info/Help.tsx +++ b/frontend/src/component/Info/Help.tsx @@ -1,10 +1,7 @@ import { useState } from 'react'; import help from '../../assets/icon/help.svg'; -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'; +import KeyBoardInfo from './HelpDescription/keyBoardInfo'; + import * as style from './info.styled'; const Help = () => { @@ -31,6 +28,9 @@ const Help = () => { css={style.closeBtn} onClick={handleModal}>

๐Ÿ“‹ Notice

+
+ +
)} diff --git a/frontend/src/component/Info/HelpDescription/KeyBoardInfo.tsx b/frontend/src/component/Info/HelpDescription/KeyBoardInfo.tsx new file mode 100644 index 0000000..5212374 --- /dev/null +++ b/frontend/src/component/Info/HelpDescription/KeyBoardInfo.tsx @@ -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 ( +
+

- ๊ธฐ๋ณธํ‚ค ์กฐ์ž‘๋ฒ•

+
+
+
    +
  • + +

    ํ™”์‚ดํ‘œ ๋ฐฉํ–ฅํ‚ค๋กœ ์ด๋™ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

    +
  • +
  • + +

    spaceํ‚ค๋กœ ์ ํ”„ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

    +
  • +
+
    +
  • + +

    Aํ‚ค๋กœ ๊ณต๊ฒฉ ๋ชจ์…˜์„ ์ทจํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

    +
  • +
  • + +

    Rํ‚ค๋กœ ๊ตฌ๋ฅด๊ธฐ๋ฅผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

    +
  • +
  • + +

    shiftํ‚ค๋กœ ๋‹ฌ๋ฆฌ๊ธฐ๋ฅผ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

    +
  • +
+
+
+
+ ); +}; + +export default keyBoardInfo; diff --git a/frontend/src/component/Info/HelpDescription/common.styled.ts b/frontend/src/component/Info/HelpDescription/common.styled.ts new file mode 100644 index 0000000..3e42d6f --- /dev/null +++ b/frontend/src/component/Info/HelpDescription/common.styled.ts @@ -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; +`; diff --git a/frontend/src/component/Info/HelpDescription/keyBoardInfo.styled.ts b/frontend/src/component/Info/HelpDescription/keyBoardInfo.styled.ts new file mode 100644 index 0000000..7f032b8 --- /dev/null +++ b/frontend/src/component/Info/HelpDescription/keyBoardInfo.styled.ts @@ -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; + } + } +`; diff --git a/frontend/src/component/Info/info.styled.ts b/frontend/src/component/Info/info.styled.ts index d1c28ec..61b9633 100644 --- a/frontend/src/component/Info/info.styled.ts +++ b/frontend/src/component/Info/info.styled.ts @@ -54,6 +54,11 @@ export const modal = (animation: string) => css` border-radius: 20px; background-color: rgba(255, 255, 255, 0.9); + overflow: auto; + ::-webkit-scrollbar { + display: none; + } + animation: ${animation} 0.3s ease-in-out; @keyframes show { @@ -102,37 +107,13 @@ export const header = css` line-height: 30px; padding: 20px; margin-bottom: 10px; + text-align: center; `; -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; - } +export const content = css` + overflow: auto; - p { - font-size: 14px; - padding: 10px 0; - } + ::-webkit-scrollbar { + display: none; } `;