diff --git a/packages/extension-koni-ui/src/Popup/Home/Mint/index.tsx b/packages/extension-koni-ui/src/Popup/Home/Mint/index.tsx index 6f67f836f1..b9c79064ae 100644 --- a/packages/extension-koni-ui/src/Popup/Home/Mint/index.tsx +++ b/packages/extension-koni-ui/src/Popup/Home/Mint/index.tsx @@ -6,6 +6,7 @@ import { BookaSdk } from '@subwallet/extension-koni-ui/connector/booka/sdk'; import { IAirdropNftMinting } from '@subwallet/extension-koni-ui/connector/booka/types'; import { useSetCurrentPage } from '@subwallet/extension-koni-ui/hooks'; import { ThemeProps } from '@subwallet/extension-koni-ui/types'; +import CN from 'classnames'; import React, { useCallback, useEffect, useMemo, useState } from 'react'; import styled from 'styled-components'; @@ -41,7 +42,11 @@ const Component = ({ className }: Props): React.ReactElement => { } return ( -
+
{ mintSuccess @@ -64,7 +69,16 @@ const Leaderboard = styled(Component)(({ theme: { extendToken, token display: 'flex', flexDirection: 'column', gap: token.sizeSM, - padding: `0 ${token.paddingXS}px` + padding: `0 ${token.paddingXS}px`, + paddingBottom: 24, + + '&.-minted': { + + }, + + '&.-not-minted': { + height: '100%' + } }; }); diff --git a/packages/extension-koni-ui/src/components/Mint/MintNftDetail/index.tsx b/packages/extension-koni-ui/src/components/Mint/MintNftDetail/index.tsx index c062a46dfb..a292e2015a 100644 --- a/packages/extension-koni-ui/src/components/Mint/MintNftDetail/index.tsx +++ b/packages/extension-koni-ui/src/components/Mint/MintNftDetail/index.tsx @@ -423,12 +423,13 @@ const Component: React.FC = (props: Props) => { const MintNftDetail = styled(Component)(({ theme: { extendToken, token } }: ThemeProps) => { return ({ backgroundColor: extendToken.colorBgSecondary1, - marginBottom: token.margin, borderRadius: 20, - maxHeight: 350, display: 'flex', flexDirection: 'column', justifyContent: 'space-between', + flex: 1, + overflow: 'hidden', + '.ant-sw-screen-layout-body-inner': { paddingLeft: token.paddingXS, paddingRight: token.paddingXS, diff --git a/packages/extension-koni-ui/src/components/Mint/MintNftSuccess/index.tsx b/packages/extension-koni-ui/src/components/Mint/MintNftSuccess/index.tsx index 772ee807c6..0d040e9e21 100644 --- a/packages/extension-koni-ui/src/components/Mint/MintNftSuccess/index.tsx +++ b/packages/extension-koni-ui/src/components/Mint/MintNftSuccess/index.tsx @@ -7,7 +7,6 @@ import { useTranslation } from '@subwallet/extension-koni-ui/hooks'; import { RootState } from '@subwallet/extension-koni-ui/stores'; import { ThemeProps } from '@subwallet/extension-koni-ui/types'; import { toShort } from '@subwallet/extension-koni-ui/utils'; -import { Image } from '@subwallet/react-ui'; import CN from 'classnames'; import React from 'react'; import { Trans } from 'react-i18next'; @@ -28,8 +27,12 @@ const Component = ({ airdropNftInfo, className }: Props) => {
{t('Yay! You minted {{nft}} badge', { replace: { nft: name } })}
-
- +
+ badge
{ const MintNftSuccessItem = styled(Component)(({ theme: { extendToken, token } }: Props) => ({ backgroundColor: extendToken.colorBgSecondary1, backgroundImage: "url('/images/paper-firework-left.png'), url('/images/paper-firework-right.png')", - backgroundPosition: 'calc(16px) calc(16px), calc(100% - 16px) calc(16px)', + backgroundPosition: '12px 28px, right 20px top 28px', backgroundRepeat: 'no-repeat, no-repeat', borderRadius: 20, - height: 350, display: 'flex', flexDirection: 'column', justifyContent: 'space-between', alignItems: 'center', - padding: token.padding, + paddingLeft: 32, + paddingRight: 32, + paddingBottom: 32, + paddingTop: 28, '.__mint-nft-success-header': { - maxWidth: 300, + paddingLeft: 8, + paddingRight: 8, + marginBottom: 40, fontSize: token.fontSizeHeading4, fontFamily: token.fontFamily, fontWeight: 600, lineHeight: token.lineHeightHeading4, - textAlign: 'center' + textAlign: 'center', + position: 'relative', + zIndex: 2 + }, + + '.__mint-badge-wrapper': { + marginBottom: token.size, + position: 'relative' }, - '.__mint-nft-success-content': { - borderRadius: '50%', - background: extendToken.colorBgGradient + '.__mint-badge-wrapper:before': { + content: '""', + display: 'block', + width: 230, + height: 230, + position: 'absolute', + left: '50%', + top: '50%', + marginLeft: -115, + marginTop: -115, + zIndex: 1, + borderRadius: '100%', + backgroundImage: extendToken.colorBgGradient, + filter: 'blur(32px)' + }, + + '.__mint-badge-image': { + position: 'relative', + zIndex: 2 + }, '.__mint-nft-success-footer': { + position: 'relative', + zIndex: 2, textAlign: 'center', fontSize: token.fontSizeHeading6, color: token.colorTextDark3,