Skip to content

Commit

Permalink
feat: make the info link in banner more intuitive
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Nov 30, 2024
1 parent e740389 commit f5f9013
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 2 additions & 0 deletions src/pages/Home/Banner/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ $backgroundColor: #232323;
gap: 8px;
}

cursor: default;

@media screen and (width <= 500px) {
font-size: 30px;
}
Expand Down
17 changes: 10 additions & 7 deletions src/pages/Home/Banner/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { useQuery } from '@tanstack/react-query'
import { InfoCircledIcon } from '@radix-ui/react-icons'
import config from '../../../config'
import styles from './index.module.scss'
import { getKnowledgeSize } from './utils'
Expand All @@ -24,19 +25,21 @@ export default () => {
)
return (
<div className={styles.root}>
<a
className={styles.knowledgeBase}
target="_blank"
rel="noopener noreferrer"
href="https://talk.nervos.org/t/how-to-get-the-average-occupied-bytes-per-live-cell-in-ckb/7138/2?u=keith"
>
<div className={styles.knowledgeBase}>
<span>Knowledge Size</span>
<br />
<div className={styles.ticker}>
<NumberTicker value={size ? +size : null} />
<span>CKBytes</span>
<a
target="_blank"
rel="noopener noreferrer"
href="https://talk.nervos.org/t/how-to-get-the-average-occupied-bytes-per-live-cell-in-ckb/7138/2?u=keith"
>
<InfoCircledIcon color="white" />
</a>
</div>
</a>
</div>
</div>
)
}

0 comments on commit f5f9013

Please sign in to comment.