forked from nervosnetwork/ckb-explorer-frontend
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(holder-allocation): xudt holder-allocation
- Loading branch information
Showing
8 changed files
with
315 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
@import '../../styles/variables.module'; | ||
|
||
.holderAllocationContainer { | ||
background-color: #fff; | ||
margin: 15% auto; | ||
padding: 20px 40px; | ||
width: 497px; | ||
border-radius: 4px; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
gap: 24px; | ||
|
||
@media (max-width: $mobileBreakPoint) { | ||
width: 90%; | ||
margin-top: 40%; | ||
padding: 24px 16px; | ||
align-items: flex-start; | ||
|
||
p { | ||
line-height: 24px; | ||
} | ||
} | ||
|
||
h2 { | ||
color: #333; | ||
font-size: 16px; | ||
font-style: normal; | ||
font-weight: 700; | ||
margin: 0; | ||
} | ||
|
||
p { | ||
margin: 0; | ||
color: #333; | ||
font-size: 14px; | ||
font-style: normal; | ||
font-weight: 400; | ||
width: 100%; | ||
word-wrap: break-word; | ||
} | ||
|
||
.table { | ||
border-radius: 4px; | ||
border: 1px solid #e5e5e5; | ||
padding: 1px; | ||
|
||
table { | ||
thead { | ||
background: #fafafa; | ||
|
||
tr { | ||
div { | ||
color: #666; | ||
font-size: 14px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
text-transform: capitalize; | ||
} | ||
} | ||
} | ||
|
||
tbody { | ||
tr { | ||
div { | ||
color: #333; | ||
font-size: 14px; | ||
font-style: normal; | ||
font-weight: 400; | ||
line-height: normal; | ||
} | ||
} | ||
} | ||
|
||
thead, | ||
tbody { | ||
tr { | ||
border-radius: 4px; | ||
|
||
div { | ||
font-size: 14px; | ||
padding: 12px 16px; | ||
} | ||
} | ||
} | ||
|
||
width: 312px; | ||
background: #fff; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
import { useTranslation } from 'react-i18next' | ||
import styles from './HolderAllocation.module.scss' | ||
|
||
const HolderAllocation = ({ typeHash }: { typeHash: string }) => { | ||
const [t] = useTranslation() | ||
return ( | ||
<div className={styles.holderAllocationContainer}> | ||
<h2>{t('xudt.holder_allocation')}</h2> | ||
<p> | ||
{t('xudt.holder_allocation_description', { | ||
ckb: '1,000', | ||
btc: '200', | ||
})} | ||
{typeHash} | ||
</p> | ||
<div className={styles.table}> | ||
<table> | ||
<thead> | ||
<tr> | ||
<td> | ||
<div>{t('xudt.lock_hash')}</div> | ||
</td> | ||
<td> | ||
<div>{t('xudt.count')}</div> | ||
</td> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td> | ||
<div>secp256k1</div> | ||
</td> | ||
<td> | ||
<div>200</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<div>omnilock</div> | ||
</td> | ||
<td> | ||
<div>400</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<div>joyid</div> | ||
</td> | ||
<td> | ||
<div>100</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<div>RGB++</div> | ||
</td> | ||
<td> | ||
<div>400</div> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<div>other</div> | ||
</td> | ||
<td> | ||
<div>300</div> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default HolderAllocation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.