Skip to content

Commit

Permalink
Merge branch 'main' into sett/landing-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
sett committed Jan 12, 2024
2 parents 8dc5b7d + b113d2b commit eb4959b
Show file tree
Hide file tree
Showing 16 changed files with 351 additions and 22 deletions.
Binary file added public/images/allocation-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/chart-pie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/images/unlock-chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions src/modules/Whitelist/steps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const Steps = () => {
const shareUrl = getLink('');
let content = '';

content = `I've recently discover the future of Bitcoin @bvmnetwork\n\nBVM is the first modular blockchain meta protocol\n\nPublic sale starting soon. Join the allowlist now\n\n#${res?.public_code}\n\n`;
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`;

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 recently discover the future of Bitcoin @bvmnetwork\n\nBVM is the first modular blockchain meta protocol\n\nPublic sale starting soon. Join the allowlist now\n\n`;
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`;

window.open(
`https://twitter.com/intent/tweet?url=${shareUrl}&text=${encodeURIComponent(
Expand Down Expand Up @@ -125,7 +125,7 @@ const Steps = () => {
[
{
title: 'Share posts on X',
desc: 'Follow @bvmnetwork, share valuable content, and tag @bvmnetwork on X to upgrade your multiplier.',
desc: 'Follow @bvmnetwork, share valuable content, and tag @bvmnetwork on X to unlock your starting multiplier.',
actionText: 'Share',
actionHandle: handleShareTw,
},
Expand Down
28 changes: 28 additions & 0 deletions src/modules/bvm_v2/Allocation/Allocation.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.wrapper {
width: 100%;
text-align: center;

.heading {
font-size: 48px;
line-height: 120%; /* 57.6px */
margin-bottom: 20px;
}

.desc {
font-size: 24px;
line-height: 36px; /* 150% */
margin-bottom: 40px;
}

@include is-mobile {
.heading {
font-size: 40px;
margin-bottom: 12px;
}
.desc {
font-size: 18px;
line-height: 140%; /* 25.2px */
margin-bottom: 24px;
}
}
}
72 changes: 72 additions & 0 deletions src/modules/bvm_v2/Allocation/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import React from 'react';
import s from './Allocation.module.scss';
import { Box, Flex, Image, Text } from '@chakra-ui/react';

type Props = {};

const ALLOCATION_DATA = [
{ title: 'Team (20%)', desc: 'For core team and project copntributors' },
{ title: 'Advisors (5%)', desc: 'For advisors and partners' },
{ title: 'Investor (15%)', desc: 'For private sale and public sale' },
{
title: 'Community (60%)',
desc: 'For builders, partnerships, marketing, liquidity, etc.',
},
];

const Allocation = (props: Props) => {
return (
<Box
className={s.wrapper}
py={{ base: '40px', md: '100px' }}
position={'relative'}
>
<Box
bgColor={'#007659'}
w="100vw"
position={'absolute'}
top={0}
left={'calc(-50vw + 50%)'}
h="100%"
zIndex={0}
></Box>
<Box zIndex={1} position={'relative'}>
<Text as="h4" className={s.heading}>
BVM Allocation
</Text>
<Text className={s.desc}>
The total supply of BVM is permanently fixed at 100M tokens.
</Text>
<Box className={s.mobile} display={{ base: 'block', sm: 'none' }}>
<Image
src={'/images/chart-pie.png'}
alt={'Allocation chart'}
maxW={'100%'}
mx="auto"
></Image>
<Flex flexDir={'column'} gap="24px" alignItems={'center'}>
{ALLOCATION_DATA.map((item, index) => (
<Box key={index}>
<Text fontSize={'18px'} lineHeight={'110%'} mb="8px">
{item.title}
</Text>
<Text fontSize={'14px'} lineHeight={'20px'}>
{item.desc}
</Text>
</Box>
))}
</Flex>
</Box>
<Image
src={'/images/allocation-chart.png'}
alt={'Allocation chart'}
maxW={{ base: '100%', md: '70%' }}
mx="auto"
display={{ base: 'none', sm: 'block' }}
></Image>
</Box>
</Box>
);
};

export default Allocation;
15 changes: 15 additions & 0 deletions src/modules/bvm_v2/Schedule/Schedule.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.wrapper {
.heading {
color: #000;
font-size: 40px;
line-height: 120%; /* 48px */
margin-bottom: 40px;
}

@include is-mobile {
.heading {
font-size: 24px;
margin-bottom: 12px;
}
}
}
45 changes: 45 additions & 0 deletions src/modules/bvm_v2/Schedule/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import { Box, Image, Text } from '@chakra-ui/react';
import React from 'react';
import s from './Schedule.module.scss';
import { DOMAIN_URL } from '@/config';

type Props = {};

const Schedule = (props: Props) => {
const handleViewImage = () => {
window.open(`${DOMAIN_URL}/images/unlock-chart.png`, '_blank');
};

return (
<Box
className={s.wrapper}
py={{ base: '40px', md: '100px' }}
position={'relative'}
>
<Box
bgColor={'#fff'}
w="100vw"
position={'absolute'}
top={0}
left={'calc(-50vw + 50%)'}
h="100%"
zIndex={0}
></Box>
<Box zIndex={1} position={'relative'}>
<Text as="h3" className={s.heading} textAlign={'center'}>
BVM Unlock Schedule
</Text>
<Box onClick={handleViewImage}>
<Image
src={'/images/unlock-chart.png'}
alt={'Unlock chart'}
maxW={['100%']}
mx="auto"
></Image>
</Box>
</Box>
</Box>
);
};

export default Schedule;
19 changes: 10 additions & 9 deletions src/modules/bvm_v2/Section_1/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,26 +9,27 @@ const Section_1 = () => {
w={'100%'}
flexDir={'column'}
bgColor={'transparent'}
gap={['16px']}
alignItems={'flex-start'}
gap={{ base: '12px', md: '16px' }}
alignItems={'center'}
>
<Text
fontSize={['16px', '40px']}
lineHeight={'48px'}
fontSize={['28px', '40px']}
lineHeight={{ base: '140%', md: '120%' }}
fontWeight={400}
color={'#000'}
>
What is BVM?
$BVM
</Text>
<Text
fontSize={['14px', '20px']}
lineHeight={'36px'}
fontSize={['16px', '20px']}
lineHeight={['24px', '36px']}
textAlign={'center'}
fontWeight={400}
color={'#000'}
maxW={'709px'}
>
Whatever your vision — a dapp, a fully onchain game, a DEX, or an
ecosystem — there are many benefits of running your own blockchain.
BVM is the native cryptocurrency used within the BVM ecosystem to
empower building the future of Bitcoin.
</Text>
{/* <Button
bgColor={'#FA4E0E'}
Expand Down
12 changes: 6 additions & 6 deletions src/modules/bvm_v2/Section_2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ export interface IContent {

const Contents: Array<IContent> = [
{
title: 'The lifeblood of Bitcoin dapps',
desc: 'BVM fuels Bitcoin dapps, facilitating the payment of transaction fees for all dapp activities on Bitcoin.',
title: 'The lifeblood of Bitcoin L2s',
desc: 'BVM fuels Bitcoin L2s, facilitating the payment of block production fees for all Bitcoin L2s.',
img: `/images/bvm_image1.png`,
bgColor: '#007659',
},
{
title: 'Uses for BVM grow every day',
desc: 'As Bitcoin Virtual Machine enables programmability on Bitcoin, developers have the free to utilize BVM in numerous ways, such as DeFi, GameFi, DEX, DAO, and more.',
title: 'Uses for $BVM grow every day',
desc: 'As BVM enables programmability and scalability on Bitcoin, developers can utilize the BVM network to create various applications — DeFi, GameFi, AI, and more.',
img: `/images/bvm_image2.png`,
bgColor: '#0B5509',
},
{
title: 'Scale Bitcoin and earn BVM',
desc: 'Bitcoin Virtual Machines aid in scaling Bitcoin with high throughput and low latency, while also enabling new utilities beyond simple money transfers. In return, they receive the transaction fees collected in BVM.',
title: 'Co-own and co-run the network',
desc: 'BVM is the BVM ecosystem’s governance token, allowing BVM holders to participate in key governance votes and shape the future of the BVM ecosystem.',
img: `/images/bvm_image3.png`,
bgColor: '#A05700',
},
Expand Down
92 changes: 92 additions & 0 deletions src/modules/bvm_v2/Vesting/Vesting.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
.wrapper {
width: 100%;
text-align: center;

.header {
width: 100%;
}

.heading {
font-size: 48px;
line-height: 120%; /* 57.6px */
margin-bottom: 20px;
}

.desc {
font-size: 24px;
line-height: 36px; /* 150% */
margin-bottom: 60px;
}

.vesting_table {
width: 100%;
position: relative;
z-index: 1;

th,
td {
color: white;
text-align: left;
white-space: nowrap;
}

th {
color: #fa4e0e;
font-size: 18px;
font-weight: 500;
line-height: 140%; /* 25.2px */
letter-spacing: 0.18px;
height: 60px;
border-right: 1px solid #000;
background: rgba(255, 255, 255, 0.15);
padding: 0 32px;

&:first-child {
border-left: 1px solid #3d3d3d;
}
&:last-child {
border-right: 1px solid #3d3d3d;
}
}

td {
padding: 32px;
font-size: 24px;
line-height: 140%; /* 33.6px */
border-right: 1px solid #3d3d3d;
border-bottom: 1px solid #3d3d3d;
border-left: 1px solid #3d3d3d;
}
}

@include is-mobile {
// overflow-y: scroll;

.heading {
font-size: 40px;
margin-bottom: 12px;
}
.desc {
font-size: 18px;
margin-bottom: 40px;
line-height: 140%; /* 25.2px */
}

.table_wrapper {
overflow-y: scroll;

.vesting_table {
th {
font-size: 16px;
padding: 0 20px;
padding-right: 32px;
}
td {
font-size: 20px;
padding: 20px;
padding-right: 32px;
}
}
}
}
}
Loading

0 comments on commit eb4959b

Please sign in to comment.