Skip to content

Commit

Permalink
feat: remove Bg
Browse files Browse the repository at this point in the history
  • Loading branch information
fnkk committed Jul 29, 2024
1 parent 66b1b19 commit 615ae98
Showing 1 changed file with 6 additions and 29 deletions.
35 changes: 6 additions & 29 deletions ui/pages/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,44 +1,21 @@
import { Box, Heading, Flex, LightMode } from '@chakra-ui/react';
import { Box, Flex, LightMode } from '@chakra-ui/react';
import React from 'react';

import config from 'configs/app';
import ChainIndicators from 'ui/home/indicators/ChainIndicators';
import LatestBlocks from 'ui/home/LatestBlocks';
import Stats from 'ui/home/Stats';
import Transactions from 'ui/home/Transactions';
import AdBanner from 'ui/shared/ad/AdBanner';
import ProfileMenuDesktop from 'ui/snippets/profileMenu/ProfileMenuDesktop';
import SearchBar from 'ui/snippets/searchBar/SearchBar';

const Home = () => {
return (
<>
<Box
w="100%"
background={ config.UI.homepage.plate.background }
borderRadius="24px"
padding={{ base: '24px', lg: '48px' }}
minW={{ base: 'unset', lg: '900px' }}
data-label="hero plate"
>
<Flex mb={{ base: 6, lg: 8 }} justifyContent="space-between">
<Heading
as="h1"
size={{ base: 'md', lg: 'xl' }}
lineHeight={{ base: '32px', lg: '50px' }}
fontWeight={ 600 }
color={ config.UI.homepage.plate.textColor }
>
Welcome to { config.chain.name } explorer
</Heading>
<Box display={{ base: 'none', lg: 'block' }}>
{ config.features.account.isEnabled && <ProfileMenuDesktop/> }
</Box>
</Flex>
<LightMode>
<SearchBar isHomepage/>
</LightMode>
</Box>

<LightMode>
<SearchBar/>
</LightMode>

<Stats/>
<ChainIndicators/>
<AdBanner mt={{ base: 6, lg: 8 }} mx="auto" display="flex" justifyContent="center"/>
Expand Down

0 comments on commit 615ae98

Please sign in to comment.