Showing
5 changed files
with
80 additions
and
4 deletions
| ... | @@ -13,6 +13,44 @@ export const Container = styled.div ` | ... | @@ -13,6 +13,44 @@ export const Container = styled.div ` |
| 13 | flex-direction : column; | 13 | flex-direction : column; |
| 14 | `; | 14 | `; |
| 15 | 15 | ||
| 16 | +export const TermsWrapper = styled.div ` | ||
| 17 | + width : 100%: | ||
| 18 | + | ||
| 19 | + display : flex; | ||
| 20 | + flex-direction : row; | ||
| 21 | + | ||
| 22 | + padding : 0 0 20px 0; | ||
| 23 | + margin : 0 0 10px 0; | ||
| 24 | + | ||
| 25 | + background-color : transparent; | ||
| 26 | + border : none; | ||
| 27 | + | ||
| 28 | + border-bottom : 1px solid #ddd; | ||
| 29 | +`; | ||
| 30 | + | ||
| 31 | +export const EachTerms = styled.button ` | ||
| 32 | + color : #000; | ||
| 33 | + background-color : transparent; | ||
| 34 | + | ||
| 35 | + margin : 0 10px 0 0; | ||
| 36 | + padding : 0 0 5px 0; | ||
| 37 | + | ||
| 38 | + cursor : pointer; | ||
| 39 | + | ||
| 40 | + font-size : 13px; | ||
| 41 | + | ||
| 42 | + font-weight : 400; | ||
| 43 | + border : none; | ||
| 44 | + border-bottom : 1px solid; | ||
| 45 | + | ||
| 46 | + transition : .25s all; | ||
| 47 | + | ||
| 48 | + &:hover { | ||
| 49 | + color : #337DFF; | ||
| 50 | + opacity : .5; | ||
| 51 | + } | ||
| 52 | +`; | ||
| 53 | + | ||
| 16 | export const InfoWrapper = styled.div ` | 54 | export const InfoWrapper = styled.div ` |
| 17 | display : flex; | 55 | display : flex; |
| 18 | flex-direction : row; | 56 | flex-direction : row; | ... | ... |
| 1 | import React from 'react'; | 1 | import React from 'react'; |
| 2 | +import { RouteComponentProps } from 'react-router'; | ||
| 3 | + | ||
| 4 | +import * as Alert from '../../util/alertMessage'; | ||
| 2 | import * as styled from './FooterStyled'; | 5 | import * as styled from './FooterStyled'; |
| 3 | 6 | ||
| 7 | + | ||
| 4 | const ApiLicense = '/static/img/apiLicense.png'; | 8 | const ApiLicense = '/static/img/apiLicense.png'; |
| 5 | 9 | ||
| 10 | +// eslint-disable-next-line @typescript-eslint/no-empty-interface | ||
| 11 | +interface FooterProps extends RouteComponentProps {} | ||
| 12 | + | ||
| 13 | + | ||
| 14 | +const Footer = (props : FooterProps) => { | ||
| 15 | + | ||
| 16 | + | ||
| 17 | + const onGoTerm = () => { | ||
| 18 | + Alert.onWarning('준비중입니다.', () => null); | ||
| 19 | + }; | ||
| 20 | + | ||
| 21 | + const onGoPrivateLicense = () => { | ||
| 22 | + Alert.onWarning('준비중입니다.', () => null); | ||
| 23 | + }; | ||
| 24 | + | ||
| 25 | + const onGoServiceCenter = () => { | ||
| 26 | + Alert.onWarning('준비중입니다.', () => null); | ||
| 27 | + }; | ||
| 6 | 28 | ||
| 7 | -const Footer = () => { | ||
| 8 | return ( | 29 | return ( |
| 9 | <styled.Container> | 30 | <styled.Container> |
| 31 | + <styled.TermsWrapper> | ||
| 32 | + <styled.EachTerms | ||
| 33 | + onClick = {onGoTerm} | ||
| 34 | + > | ||
| 35 | + 이용약관 | ||
| 36 | + </styled.EachTerms> | ||
| 37 | + <styled.EachTerms | ||
| 38 | + onClick = {onGoPrivateLicense} | ||
| 39 | + > | ||
| 40 | + 개인정보처리방침 | ||
| 41 | + </styled.EachTerms> | ||
| 42 | + <styled.EachTerms | ||
| 43 | + onClick = {onGoServiceCenter} | ||
| 44 | + > | ||
| 45 | + 고객센터 | ||
| 46 | + </styled.EachTerms> | ||
| 47 | + </styled.TermsWrapper> | ||
| 10 | <styled.InfoWrapper> | 48 | <styled.InfoWrapper> |
| 11 | <styled.LicenseWrapper> | 49 | <styled.LicenseWrapper> |
| 12 | <styled.LicenseExplain>저작권</styled.LicenseExplain> | 50 | <styled.LicenseExplain>저작권</styled.LicenseExplain> | ... | ... |
| ... | @@ -181,7 +181,7 @@ const BottleInfoContainer = (props : BottleInfoProps) => { | ... | @@ -181,7 +181,7 @@ const BottleInfoContainer = (props : BottleInfoProps) => { |
| 181 | setFdbType = {setFdbType} | 181 | setFdbType = {setFdbType} |
| 182 | onSubmitFeedback = {onSubmitFeedback} | 182 | onSubmitFeedback = {onSubmitFeedback} |
| 183 | /> | 183 | /> |
| 184 | - <Footer/> | 184 | + <Footer {...props}/> |
| 185 | </> | 185 | </> |
| 186 | ); | 186 | ); |
| 187 | }; | 187 | }; | ... | ... |
| ... | @@ -156,7 +156,7 @@ const BottleInfoPresenter = (props : BottleInfoProps) => { | ... | @@ -156,7 +156,7 @@ const BottleInfoPresenter = (props : BottleInfoProps) => { |
| 156 | /> | 156 | /> |
| 157 | <styled.NewFeedbackButtonWrapper> | 157 | <styled.NewFeedbackButtonWrapper> |
| 158 | <styled.NewFeedbackTypeButtonWrapper> | 158 | <styled.NewFeedbackTypeButtonWrapper> |
| 159 | - <styled.NewFeedbackTypeButtonEachWrapper> | 159 | + <styled.NewFeedbackTypeButtonEachWrapper> |
| 160 | <styled.NewFeedbackTypeButton | 160 | <styled.NewFeedbackTypeButton |
| 161 | valueType = 'RECOMMEND' | 161 | valueType = 'RECOMMEND' |
| 162 | selected = {props.fdbType === 'RECOMMEND'} | 162 | selected = {props.fdbType === 'RECOMMEND'} | ... | ... |
| ... | @@ -33,7 +33,7 @@ const MainContainer = (props : MainProps) => { | ... | @@ -33,7 +33,7 @@ const MainContainer = (props : MainProps) => { |
| 33 | userTypeCd === 'MANAGER' ? | 33 | userTypeCd === 'MANAGER' ? |
| 34 | <ManagerMenuContainer {...props}/> : null | 34 | <ManagerMenuContainer {...props}/> : null |
| 35 | } | 35 | } |
| 36 | - <Footer/> | 36 | + <Footer {...props}/> |
| 37 | </> | 37 | </> |
| 38 | ); | 38 | ); |
| 39 | }; | 39 | }; | ... | ... |
-
Please register or login to post a comment