This commit is contained in:
myf 2022-04-18 18:34:40 +08:00
parent d45b82cb9c
commit 2ef06fee91
3 changed files with 45 additions and 4 deletions

View File

@ -6,6 +6,7 @@ import TextFlex from './TextFlex'
import FlexCom from './FlexCom' import FlexCom from './FlexCom'
const ModalDiv = styled(Modal)` const ModalDiv = styled(Modal)`
width: 80%;
& > .jCXCIB { & > .jCXCIB {
border-bottom: none; border-bottom: none;
text-align: center; text-align: center;
@ -13,6 +14,9 @@ const ModalDiv = styled(Modal)`
justify-content: center; justify-content: center;
} }
} }
${({ theme }) => theme.mediaQueries.xs} {
}
` `
const InfoDiv = styled.div` const InfoDiv = styled.div`
@ -23,13 +27,25 @@ const InfoDiv = styled.div`
box-shadow: 0px 1px 8px rgba(15, 161, 146, 0.28); box-shadow: 0px 1px 8px rgba(15, 161, 146, 0.28);
` `
const UpBtn = styled(Button)` const UpBtn = styled(Button)`
width: 40%; width: 50%;
margin: 20px auto 0px auto; margin: 20px auto 0px auto;
border-radius: 50px; border-radius: 50px;
/* background: ${({ theme }) => theme.colors.gradients.violet}; */ /* background: ${({ theme }) => theme.colors.gradients.violet}; */
background: linear-gradient(180deg, #7be0fc 0%, #ac7bf1 100%); background: linear-gradient(180deg, #7be0fc 0%, #ac7bf1 100%);
border: none; border: none;
` `
const ImageDiv = styled(Image)`
width: 300px;
height: 300px;
margin-bottom: 20px;
${({ theme }) => theme.mediaQueries.sm} {
}
${({ theme }) => theme.mediaQueries.lg} {
}
${({ theme }) => theme.mediaQueries.xs} {
}
`
export default function BuyNftModal() { export default function BuyNftModal() {
const { t } = useTranslation() const { t } = useTranslation()
@ -38,9 +54,10 @@ export default function BuyNftModal() {
console.log('aaa') console.log('aaa')
} }
return ( return (
<ModalDiv title={t('Buy commander NFT')} onDismiss={onDismiss} style={{ width: '50rem' }}> <ModalDiv title={t('Buy commander NFT')} onDismiss={onDismiss}>
<Flex alignItems="center" flexWrap="wrap" justifyContent="center"> <Flex alignItems="center" flexWrap="wrap" justifyContent="center">
<Image src="/images/recommend/logo.svg" width={300} height={300} marginBottom="20px" /> {/* <ImageDiv src="/images/recommend/logo.svg" alt="" width={300} height={300}></ImageDiv> */}
<Image src="/images/recommend/logo.svg" width={250} height={250} marginBottom="20px" />
<InfoDiv> <InfoDiv>
<TextFlex <TextFlex
text={t('Upgrade recommendation rights, can enjoy the share of secondary recommendation')} text={t('Upgrade recommendation rights, can enjoy the share of secondary recommendation')}

View File

@ -75,6 +75,19 @@ const ContengDiv = styled.div`
background: rgba(255, 255, 255, 0.39); background: rgba(255, 255, 255, 0.39);
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.16); box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.16);
border-radius: 40px; border-radius: 40px;
${({ theme }) => theme.mediaQueries.sm} {
width: 60%;
}
${({ theme }) => theme.mediaQueries.lg} {
width: 60%;
}
${({ theme }) => theme.mediaQueries.xs} {
width: 90%;
height: 80vh;
overflow-y: auto;
}
` `
const MainDiv = styled.div` const MainDiv = styled.div`

View File

@ -21,11 +21,22 @@ const ContengDiv = styled.div`
background: rgba(255, 255, 255, 0.39); background: rgba(255, 255, 255, 0.39);
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.16); box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.16);
border-radius: 40px; border-radius: 40px;
${({ theme }) => theme.mediaQueries.sm} {
width: 60%;
}
${({ theme }) => theme.mediaQueries.lg} {
width: 60%;
}
${({ theme }) => theme.mediaQueries.xs} {
width: 90%;
}
` `
const Nft: React.FC = () => { const Nft: React.FC = () => {
// 邀请false普通邀请 true军团长邀请 // 邀请false普通邀请 true军团长邀请
const [type, typeState] = useState(false) const [type, typeState] = useState(true)
// 是否连接钱包 // 是否连接钱包
const [status, statusState] = useState(true) const [status, statusState] = useState(true)