Skip to content

Commit

Permalink
chore: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
camewell071 committed Jan 29, 2024
1 parent e0039e9 commit a6c0fee
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 29 deletions.
Binary file added public/images/pie-chart-4.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/wave-chart-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
55 changes: 26 additions & 29 deletions src/modules/bvm_v2/Allocation/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,47 +23,44 @@ const Allocation = (props: Props) => {
>
<Box
bgColor={'#007659'}
w="100vw"
w='100vw'
position={'absolute'}
top={0}
left={'calc(-50vw + 50%)'}
h="100%"
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/pie-chart-3.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
w="100%"
flexDir={{ base: "column", lg: "row" }}
gap={{ base: "32px", lg: "200px" }}
mt={{ base: "16px", lg: "60px" }}
px={{ base: '40px', lg: '100px' }}
>
<Flex flex={1}>
<Image
src={'/images/pie-chart-4.png'}
alt={'Allocation chart'}
flex={1}
mx="auto"
/>
</Flex>
</Box>
<Image
src={'/images/pie-chart-3.png'}
alt={'Allocation chart'}
maxW={{ base: '100%', md: '70%' }}
mx="auto"
display={{ base: 'none', sm: 'block' }}
></Image>
<Flex flex={1}>
<Image
src={'/images/wave-chart-2.png'}
alt={'Allocation chart'}
flex={1}
mx="auto"
/>
</Flex>
</Flex>
</Box>
</Box>
);
Expand Down

0 comments on commit a6c0fee

Please sign in to comment.