hiCity-nft/src/views/Home/components/IntroduceCom.tsx

116 lines
2.4 KiB
TypeScript

import React from 'react'
import styled from 'styled-components'
import { Heading, Text, Box, Image } from '@pancakeswap/uikit'
import { useTranslation } from 'contexts/Localization'
const FirstPage = styled.div`
background: linear-gradient(270deg, #eff6ff 0%, #e9fdff 100%);
padding: 100px 0 50px 0;
`
const StyledPage = styled(Box)`
padding-top: 16px;
padding-bottom: 16px;
${({ theme }) => theme.mediaQueries.sm} {
padding-top: 24px;
padding-bottom: 24px;
width: 80%;
}
${({ theme }) => theme.mediaQueries.lg} {
padding-top: 32px;
padding-bottom: 32px;
width: 80%;
}
`
const BoxMain = styled(Box)`
background: #ffffff;
box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.15);
opacity: 1;
border-radius: 20px;
position: relative;
${({ theme }) => theme.mediaQueries.xs} {
padding: 94px 30px 37px 30px;
}
${({ theme }) => theme.mediaQueries.lg} {
padding: 94px 92px 37px 92px;
}
`
const MainDiv = styled.div`
position: absolute;
top: -76px;
left: 50%;
margin-left: -76px;
width: 152px;
height: 152px;
background: #ffffff;
box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.08);
border-radius: 50%;
opacity: 1;
box-sizing: border-box;
padding: 13px;
& > div {
width: 100%;
height: 100%;
border-radius: 50%;
background: #e0ffff;
padding: 25px;
}
`
const HeadingDiv = styled(Heading)`
width: 100%;
margin-top: 18px;
font-size: 36px;
color: #333333;
${({ theme }) => theme.mediaQueries.xs} {
margin-top: 10px;
}
${({ theme }) => theme.mediaQueries.lg} {
margin-top: 18px;
}
`
const TextCom = styled(Text)`
margin-top: 35px;
text-align: center;
line-height: 32px;
width: 100%;
${({ theme }) => theme.mediaQueries.xs} {
margin-top: 20px;
}
${({ theme }) => theme.mediaQueries.lg} {
margin-top: 35px;
}
`
const IntroduceCom: React.FC = () => {
const { t } = useTranslation()
return (
<>
<FirstPage>
<StyledPage px={['16px', '24px']} mx="auto">
<BoxMain>
<MainDiv>
<div>
<Image src="/images/home/intor.svg" alt="" width={75} height={75} />
</div>
</MainDiv>
<HeadingDiv textAlign="center">HighCitySwap</HeadingDiv>
<TextCom>{t('HighCitySwapInfo')}</TextCom>
</BoxMain>
</StyledPage>
</FirstPage>
</>
)
}
export default IntroduceCom