parent
38be5e037e
commit
79f626ef34
@ -0,0 +1,6 @@ |
|||||||
|
export const lexics = [ |
||||||
|
18081, |
||||||
|
18082, |
||||||
|
18083, |
||||||
|
18084, |
||||||
|
] |
||||||
@ -0,0 +1,38 @@ |
|||||||
|
import { T9n } from 'features/T9n' |
||||||
|
import { useLexicsConfig } from 'features/LexicsStore' |
||||||
|
|
||||||
|
import { |
||||||
|
CompanyInfoText, |
||||||
|
CompanyInfoWrapper, |
||||||
|
CompanyName, |
||||||
|
} from './styled' |
||||||
|
import { lexics } from './config' |
||||||
|
|
||||||
|
export type TCompanyInfo = { |
||||||
|
textAlign?: 'center' | 'left', |
||||||
|
width?: string, |
||||||
|
} |
||||||
|
|
||||||
|
export const CompanyInfo = ({ |
||||||
|
textAlign = 'left', |
||||||
|
width = '100%', |
||||||
|
}: TCompanyInfo) => { |
||||||
|
useLexicsConfig(lexics) |
||||||
|
|
||||||
|
return ( |
||||||
|
<CompanyInfoWrapper style={{ maxWidth: width, textAlign }}> |
||||||
|
<CompanyName> |
||||||
|
<T9n t='18081' /> |
||||||
|
</CompanyName> |
||||||
|
<CompanyInfoText> |
||||||
|
<T9n t='18082' /> |
||||||
|
</CompanyInfoText> |
||||||
|
<CompanyInfoText> |
||||||
|
<T9n t='18083' /> |
||||||
|
</CompanyInfoText> |
||||||
|
<CompanyInfoText> |
||||||
|
<T9n t='18084' /> |
||||||
|
</CompanyInfoText> |
||||||
|
</CompanyInfoWrapper> |
||||||
|
) |
||||||
|
} |
||||||
@ -0,0 +1,21 @@ |
|||||||
|
import styled, { css } from 'styled-components/macro' |
||||||
|
|
||||||
|
import { isMobileDevice } from 'config/userAgent' |
||||||
|
|
||||||
|
export const CompanyInfoWrapper = styled.div` |
||||||
|
margin-top: auto; |
||||||
|
font-family: 'Montserrat', sans-serif; |
||||||
|
font-weight: 400; |
||||||
|
font-size: 12px; |
||||||
|
line-height: 15px; |
||||||
|
color: rgba(255, 255, 255, 0.6); |
||||||
|
|
||||||
|
${isMobileDevice ? css` |
||||||
|
margin-top: 20px; |
||||||
|
` : ''}
|
||||||
|
` |
||||||
|
|
||||||
|
export const CompanyName = styled.div` |
||||||
|
color: rgba(255, 255, 255, 0.8); |
||||||
|
` |
||||||
|
export const CompanyInfoText = styled.div`` |
||||||
Loading…
Reference in new issue