Skip to content

Commit

Permalink
Merge pull request #19 from TrustlessComputer/feat/whitelist
Browse files Browse the repository at this point in the history
Feat/whitelist
  • Loading branch information
0xmegalodon authored Jan 12, 2024
2 parents d7fef7b + 25de4b2 commit 69e59ec
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
4 changes: 2 additions & 2 deletions src/modules/Whitelist/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const Whitelist = () => {

return (
<Flex className={s.container} id={CONTAINER_ID}>
<p className={s.title}>BVM Allowlist Dashboard</p>
<p className={s.desc}>You’re almost there!<br/>Complete the tasks below to upgrade your multiplier!</p>
<p className={s.title}>Get a bigger multiplier</p>
{/*<p className={s.desc}>Get a bigger multiplier.</p>*/}
<div className={s.tokenSection}>
<Steps />
<LeaderBoard />
Expand Down
13 changes: 4 additions & 9 deletions src/modules/Whitelist/leaderBoard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,16 @@ import ScrollWrapper from '@/components/ScrollWrapper/ScrollWrapper';
import { ILeaderBoardPoint } from '@/interfaces/leader-board-point';
import { getTopLeaderBoards } from '@/services/leaderboard';
import { formatCurrency, formatName } from '@/utils/format';
import { compareString } from '@/utils/string';
import { Box, Flex, Text } from '@chakra-ui/react';
import remove from 'lodash/remove';
import { Box, Flex, Text, Tooltip } from '@chakra-ui/react';
import React, { useEffect, useMemo, useRef, useState } from 'react';
import styles from './styles.module.scss';
import clsx from 'classnames';
import AppLoading from '@/components/AppLoading';
import { Tooltip } from '@chakra-ui/react';
import { CDN_URL_ICONS } from '@/config';
import { getUrlAvatarTwitter } from '@/utils/twitter';
import cs from 'clsx';
import { useAppSelector } from '@/stores/hooks';
import { commonSelector } from '@/stores/states/common/selector';
// import Countdown from 'react-countdown';
// import dayjs from 'dayjs';

const valueToClassName: any = {
'10': 'boost_10',
Expand Down Expand Up @@ -249,7 +244,7 @@ const LeaderBoard = () => {
label={
<Flex direction="column" color="black" opacity={0.7}>
<p>Content Points are calculated based on the performance of your posts on X, including Views, Likes, Reposts, and Quotes.
Note: To be qualified, you must tag: <br/><strong>@bvmnetwork</strong></p>
Note: To be qualified, you must tag: <strong>@bvmnetwork</strong></p>
</Flex>
}
>
Expand Down Expand Up @@ -471,7 +466,7 @@ const LeaderBoard = () => {
</div>
</div>
</div> */}
<Box className={styles.timeLine}>
{/*<Box className={styles.timeLine}>
<Box>
{renderTimeLine({
content: <p>Public sale starting soon</p>
Expand All @@ -483,7 +478,7 @@ const LeaderBoard = () => {
)}
</Box>
</Box>
</Box>*/}
<Box w="100%" bg="rgba(255, 255, 255, 0.30)" height="76dvh" p="8px">
<ScrollWrapper
onFetch={() => {
Expand Down
18 changes: 9 additions & 9 deletions src/modules/Whitelist/steps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ const Steps = () => {
const res: any = await requestAuthenByShareCode();
setAuthenCode(res);

const shareUrl = getLink('');
const shareUrl = " https://bvm.network";//getLink('');
let content = '';

content = `I've discover the future of Bitcoin: @bvmnetwork\n\nBVM is the 1st modular blockchain meta protocol. And its public sale is starting soon.\n\nJoin the allowlist today!\n\n#${res?.public_code}\n\n`;
content = `Welcome to the future of Bitcoin with @bvmnetwork\n\nBitcoin Virtual Machine is the first modular blockchain metaprotocol that lets you launch your Bitcoin L2 blockchain protocol in a few clicks.\n\n$BVM public sale starting soon\n\n#${res?.public_code}\n\nJoin the allowlist`;

window.open(
`https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodeURIComponent(
Expand All @@ -49,7 +49,7 @@ const Steps = () => {
const shareUrl = getLink('');
let content = '';

content = `I've discover the future of Bitcoin: @bvmnetwork\n\nBVM is the 1st modular blockchain meta protocol. And its public sale is starting soon.\n\nJoin the allowlist today!\n\n`;
content = `Welcome to the future of Bitcoin with @bvmnetwork.\n\nBitcoin Virtual Machine is the first modular blockchain metaprotocol that lets you launch your Bitcoin L2 blockchain protocol in a few clicks.\n\n$BVM public sale starting soon.\n\nJoin the allowlist:`;

window.open(
`https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodeURIComponent(
Expand Down Expand Up @@ -124,15 +124,15 @@ const Steps = () => {
return (
[
{
title: 'Share posts on X',
desc: 'Follow @bvmnetwork, share valuable content, and tag @bvmnetwork on X to unlock your starting multiplier.',
actionText: 'Share',
title: 'Get your initial multiplier',
desc: 'Post anything on X and tag @bvmnetwork',
actionText: 'Post',
actionHandle: handleShareTw,
},
{
title: 'The more you post, the more points you earn.',
desc: 'The number of posts is unlimited. All you need to do is create a post on X, tag @bvmnetwork, earn more points with higher post engagement to upgrade your multiplier.',
actionText: 'Share More',
title: 'Level up your multiplier',
desc: 'The more you post, the bigger multiplier you’ll get.',
actionText: 'Post',
actionHandle: handleShareTwMore,
},
// {
Expand Down

0 comments on commit 69e59ec

Please sign in to comment.