Browse Source

修改NFT图片

master
mac 6 months ago
parent
commit
cdcc115c3d
  1. BIN
      src/assets/NFT-black.png
  2. BIN
      src/assets/NFT.jpg
  3. BIN
      src/assets/NFT.png
  4. BIN
      src/assets/contract.png
  5. BIN
      src/assets/fil.png
  6. BIN
      src/assets/pledge.png
  7. BIN
      src/assets/recommend.png
  8. 16
      src/components/ConnectWalletButton.tsx
  9. 2
      src/pages/invitation-detail/index.tsx
  10. 2
      src/pages/invitation/index.tsx
  11. 2
      src/pages/my-pledge/index.tsx
  12. 2
      src/pages/nft-detail/index.tsx
  13. 23
      src/styles/layout.scss
  14. 34
      src/utils/share.ts

BIN
src/assets/NFT-black.png

Before

Width: 132  |  Height: 132  |  Size: 2.2 KiB

After

Width: 500  |  Height: 500  |  Size: 61 KiB

BIN
src/assets/NFT.jpg

After

Width: 1080  |  Height: 1080  |  Size: 92 KiB

BIN
src/assets/NFT.png

Before

Width: 132  |  Height: 132  |  Size: 2.2 KiB

BIN
src/assets/contract.png

Before

Width: 34  |  Height: 34  |  Size: 1.1 KiB

After

Width: 243  |  Height: 375  |  Size: 10 KiB

BIN
src/assets/fil.png

Before

Width: 34  |  Height: 34  |  Size: 517 B

After

Width: 188  |  Height: 188  |  Size: 9.6 KiB

BIN
src/assets/pledge.png

Before

Width: 50  |  Height: 50  |  Size: 1.2 KiB

After

Width: 111  |  Height: 112  |  Size: 12 KiB

BIN
src/assets/recommend.png

Before

Width: 30  |  Height: 30  |  Size: 629 B

After

Width: 113  |  Height: 111  |  Size: 10 KiB

16
src/components/ConnectWalletButton.tsx

@ -22,9 +22,9 @@ const ConnectWalletButton = (props: ConnectWalletButtonProps) => {
const [visible, setVisible] = useState(false)
const { copyVal } = useCopyLink()
const [contractCount,setContractCount] = useState(0)
const [contractCount, setContractCount] = useState(0)
const {t} = useTranslation()
const { t } = useTranslation()
const connectWallet = async () => {
setLoading(true);
@ -49,9 +49,9 @@ const ConnectWalletButton = (props: ConnectWalletButtonProps) => {
setContractCount(_record.length)
}
useEffect(()=>{
useEffect(() => {
walletAddress && visible && getData()
},[walletAddress,visible])
}, [walletAddress, visible])
return (
<div className="connect-button">
@ -87,7 +87,7 @@ const ConnectWalletButton = (props: ConnectWalletButtonProps) => {
<div>
<img src={require('~/assets/fil.png')} className='header-fil' alt="" />
</div>
<div className='ml-2'>
<div className='ml-1'>
<div>Filecoin(FIL)</div>
<div className='mt-5px'>{t('Balance')}{filBalance}FIL</div>
</div>
@ -96,7 +96,7 @@ const ConnectWalletButton = (props: ConnectWalletButtonProps) => {
<div>
<img src={require('~/assets/contract.png')} className='header-fil' alt="" />
</div>
<div className='ml-2'>
<div className='ml-1'>
<div>{t('SOFIL Staking Contract')}</div>
<div className='mt-5px'>{t('Staking Amount')}{contractCount}</div>
</div>
@ -104,12 +104,12 @@ const ConnectWalletButton = (props: ConnectWalletButtonProps) => {
<div className='header-divider mt-3'></div>
<div className='row-center mt-2' onClick={() => toPath('/myPledge')}>
<img src={require('~/assets/pledge.png')} className='header-pledge-img' alt="" />
<div className=''>{t('My Staking')}</div>
<div className='ml-1'>{t('My Staking')}</div>
</div>
<div className='header-divider mt-2'></div>
<div className='row-center mt-2' onClick={() => toPath('/invitation')}>
<img src={require('~/assets/recommend.png')} className='header-recommend-img' alt="" />
<div className='' >{t('My Referral')}</div>
<div className='ml-1' >{t('My Referral')}</div>
</div>
<div className='header-divider mt-2'></div>
<div className='mt-3 tac header-logout' onClick={logout}>{t('Log out')}</div>

2
src/pages/invitation-detail/index.tsx

@ -85,7 +85,7 @@ const InvitationDetail = () => {
<div className='plr-3 mt-2'>
<div className='box p-2'>
<div className='row-center'>
<img src={require('~/assets/NFT.png')} className="img" alt="" />
<img src={require('~/assets/NFT.jpg')} className="img" alt="" />
</div>
<div className='fz-18 fz-wb-550 mt-3'>{t('NFT Details')}</div>
<div className='mt-1 row-between'>

2
src/pages/invitation/index.tsx

@ -281,7 +281,7 @@ const ContractRecord = (props: ContractRecordProps) => {
}}>
<div className='flex-2 row-center'>
<div className='row-items'>
<img src={require('~/assets/NFT.png')} className='nft-img' alt="" />
<img src={require('~/assets/NFT.jpg')} className='nft-img' alt="" />
<div className='ml-5px'>
<div style={{ textAlign: 'start' }} className='fz-wb-550'># {item.tokenId}</div>
<div>{item.pledgeDay} {t('Days')}</div>

2
src/pages/my-pledge/index.tsx

@ -249,7 +249,7 @@ const PledgeContract = (props: PledgeContractProps) => {
}}>
<div className='flex-2 row-center'>
<div className='row-items'>
<img src={require('~/assets/NFT.png')} className='nft-img' alt="" />
<img src={require('~/assets/NFT.jpg')} className='nft-img' alt="" />
<div className='ml-5px'>
<div style={{ textAlign: 'start' }} className='fz-wb-550'># {item.tokenId}</div>
<div>{item.pledgeDay} {t('Days')}</div>

2
src/pages/nft-detail/index.tsx

@ -135,7 +135,7 @@ const NFTDetail = () => {
data.isBlack ? (
<img src={require('~/assets/NFT-black.png')} className="img" alt="" />
) : (
<img src={require('~/assets/NFT.png')} className="img" alt="" />
<img src={require('~/assets/NFT.jpg')} className="img" alt="" />
)
}
</div>

23
src/styles/layout.scss

@ -151,6 +151,7 @@
.box {
height: 50px;
}
.box-1 {
height: 40px;
}
@ -163,6 +164,7 @@
opacity: 1;
background: #313131;
box-shadow: 0px 6px 6px 0px rgba(0, 0, 0, 0.1608);
&:active {
opacity: 0.8;
}
@ -174,7 +176,8 @@
.text-divider {
border-bottom: 1px solid $white;
&:active{
&:active {
opacity: 0.8;
}
}
@ -204,9 +207,9 @@
.rv-popup {
.header-fil {
width: 40px;
height: 40px;
object-fit: cover;
width: 50px;
height: 50px;
object-fit: contain;
}
.header-divider {
@ -216,20 +219,18 @@
}
.header-pledge-img {
width: 50px;
height: 50px;
width: 40px;
height: 40px;
object-fit: cover;
}
.header-recommend-img {
width: 30px;
height: 30px;
width: 40px;
height: 40px;
object-fit: cover;
margin-left: 15px;
margin-right: 10px;
}
.header-logout {
color: #4ee1f9;
}
}
}

34
src/utils/share.ts

@ -25,39 +25,11 @@ export const shareLK = async (language: LanguageType, address: string) => {
const shareText = (language: LanguageType, address: string) => {
const ts = {
'en': `
Join me to stake $FIL on SOFIL with my referral code to earn up to 16.23% APY !
SOFIL is a DeFi platform offering stake-to-earn opportunities to crypto holders.
My referral code: ${address}
You can insert my referral code before you stake.
Come and explore more with me on SOFIL by scanning the following QR code or directly visit app.sofil.io on your MetaMask
SOFIL Official Website: https://sofil.io
`,
'en': `Stake $FIL on SOFIL with my referral code to earn up to 16.23% APY!\n \nMy referral code: ${address} \n \nInsert my code before you stake!\n \nScan the following QR code or directly visit https://app.sofil.io on your MetaMask`,
'hk':
`
使 SOFIL $FIL 16.23% \n
SOFIL \n
${address} \n
\n
MetaMask app.sofil.io SOFIL \n
SOFIL官方網站https://sofil.io
`,
'hk': `使用我的推薦碼在 SOFIL 上質押 $FIL,即可賺取高達 16.23% 年利率!\n \n我的推薦碼:${address} \n \n您可以在質押前輸入我的推薦碼。\n \n掃描以下二維碼或直接在 MetaMask 上瀏覽 app.sofil.io,與我一起探索 SOFIL 的更多內容!`,
'zh': `
使 SOFIL $FIL 16.23%
SOFIL
${address}
MetaMask app.sofil.io SOFIL
SOFIL官方网站https://sofil.io
`
'zh': `使用我的推荐码在 SOFIL 上质押 $FIL,即可赚取高达 16.23% 年利率!\n \n我的推荐码:${address} \n \n您可以在质押前输入我的推荐码。\n \n扫描以下二维码或直接在 MetaMask 上浏览 app.sofil.io,与我一起探索 SOFIL 的更多内容!`
} as { [key: string]: string }
return ts[language]
}
Loading…
Cancel
Save