-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: 정산 수수료 페이지 마크업 * feat: Footer 컴포넌트에 수수료 안내 링크 추가 * feat: 메인페이지 물음표 플로팅 버튼 추가 * feat: 정산관리 페이지에 정산수수료안내 링크버튼 추가
- Loading branch information
Showing
11 changed files
with
162 additions
and
4 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
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
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
47 changes: 47 additions & 0 deletions
47
client/main/src/components/Help/HelpButton/HelpButton.styles.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,47 @@ | ||
import styled from 'styled-components'; | ||
|
||
import { DEVICE } from '../../../constants/device'; | ||
import PALETTE from '../../../constants/palette'; | ||
|
||
export const StyledHelpButton = styled.a` | ||
position: sticky; | ||
display: block; | ||
width: 3rem; | ||
height: 3rem; | ||
margin-left: auto; | ||
margin-right: 2rem; | ||
bottom: 3rem; | ||
background-color: ${PALETTE.WHITE_400}; | ||
border-radius: 100%; | ||
border: 3px solid ${PALETTE.GRAY_300}; | ||
cursor: pointer; | ||
transition: transform 0.5s ease; | ||
::after { | ||
content: '?'; | ||
width: 100%; | ||
height: 100%; | ||
color: ${PALETTE.GRAY_400}; | ||
font-weight: 700; | ||
font-size: 1.75rem; | ||
line-height: 2.5rem; | ||
position: absolute; | ||
text-align: center; | ||
vertical-align: middle; | ||
} | ||
:hover { | ||
transform: translateY(-0.375rem); | ||
background-color: ${PALETTE.GRAY_100}; | ||
} | ||
:active { | ||
background-color: ${PALETTE.GRAY_200}; | ||
} | ||
@media ${DEVICE.DESKTOP_LARGE} { | ||
position: fixed; | ||
right: 3rem; | ||
} | ||
`; |
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,13 @@ | ||
import { Link } from 'react-router-dom'; | ||
|
||
import { StyledHelpButton } from './HelpButton.styles'; | ||
|
||
const HelpButton = () => { | ||
return ( | ||
<Link to="/fee-guide"> | ||
<StyledHelpButton /> | ||
</Link> | ||
); | ||
}; | ||
|
||
export default HelpButton; |
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,10 @@ | ||
import { Meta, Story } from '@storybook/react'; | ||
import FeeGuide from './FeeGuide'; | ||
|
||
export default { | ||
title: 'pages/FeeGuide', | ||
} as Meta; | ||
|
||
const Template: Story = (args) => <FeeGuide {...args} />; | ||
|
||
export const Default = Template.bind({}); |
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,32 @@ | ||
import styled from 'styled-components'; | ||
|
||
import Template from '../../components/@atom/Template/Template'; | ||
import Kakaopay from '../../assets/icons/kakao-pay.svg'; | ||
|
||
export const StyledTemplate = styled(Template)` | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
min-height: calc(100vh - 3.5rem); | ||
justify-content: center; | ||
max-width: 30rem; | ||
`; | ||
|
||
export const FeeTable = styled.table` | ||
margin: 4rem 0; | ||
text-align: center; | ||
border-collapse: separate; | ||
border-spacing: 1.5rem; | ||
line-height: 1.25rem; | ||
td { | ||
vertical-align: middle; | ||
padding-bottom: 0.5rem; | ||
} | ||
`; | ||
|
||
export const KakaoIcon = styled.img.attrs({ src: Kakaopay, alt: 'kakaopay logo' })` | ||
width: 3rem; | ||
aspect-ratio: 71 / 29; | ||
margin-top: 0.5rem; | ||
`; |
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,42 @@ | ||
import { useHistory } from 'react-router'; | ||
import SubTitle from '../../components/@atom/SubTitle/SubTitle.styles'; | ||
import Title from '../../components/@atom/Title/Title.styles'; | ||
import OutlineButton from '../../components/@molecule/OutlineButton/OutlineButton.styles'; | ||
import { StyledTemplate, FeeTable, KakaoIcon } from './FeeGuide.styles'; | ||
|
||
const FeeGuide = () => { | ||
const history = useHistory(); | ||
|
||
return ( | ||
<StyledTemplate> | ||
<SubTitle>정산 시 수수료 안내</SubTitle> | ||
<FeeTable> | ||
<tbody> | ||
<tr> | ||
<td>원천세 등의 세금</td> | ||
<td>3.3%</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
결제대행사 수수료 | ||
<br /> | ||
<KakaoIcon /> | ||
</td> | ||
<td>3.2%</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
Thank You For ___ 수수료 | ||
<br /> | ||
(서버유지비 등 운영비) | ||
</td> | ||
<td>0.5%</td> | ||
</tr> | ||
</tbody> | ||
</FeeTable> | ||
<OutlineButton onClick={history.goBack}>돌아가기</OutlineButton> | ||
</StyledTemplate> | ||
); | ||
}; | ||
|
||
export default FeeGuide; |
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
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
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