feat: create title with logo for dashboard

This commit is contained in:
RadoslavDimchev 2023-09-16 00:49:50 +03:00
parent 14a0ecd0cb
commit 4c2206c663
2 changed files with 25 additions and 3 deletions

View File

@ -3,21 +3,23 @@ import { XStack, YStack } from 'tamagui'
import BasicInfoCards from './BasicInfoCards/BasicInfoCards'
import AddCardsContainer from '../../components/General/AddCards/AddCardsContainer'
import SyncStatusCard from './SyncStatusCard/SyncStatusCard'
import BalanceChardCard from './BalanceLineChart/BalanceChardCard'
import BalanceChartCard from './BalanceChartCard/BalanceChartCard'
import CPUCard from './CPULoad/CPUCard'
import ConsensusUptimeCard from './ConsensusUptime/ConsensusUptimeCard'
import ExecutionUptime from './ExecutionUptime/ExecutionUptime'
import TitleLogo from './TitleLogo'
const Dashboard = () => {
return (
<YStack space={'$4'} alignItems="start">
<TitleLogo />
<XStack space={'$4'} style={{ width: '100%' }}>
<XStack space={'$4'}>
<AddCardsContainer />
<SyncStatusCard />
</XStack>
<BalanceChardCard />
<CPUCard load={[12, 31, 3, 2, 24,]} />
<BalanceChartCard />
<CPUCard load={[12, 31, 3, 2, 24]} />
</XStack>
<BasicInfoCards />
<ConsensusUptimeCard />

View File

@ -0,0 +1,20 @@
import { Text } from '@status-im/components'
import { XStack, YStack } from 'tamagui'
const TitleLogo = () => {
return (
<XStack>
{/* <Avatar type="icon" size={80} icon={<img src={'/icons/dashboard-logo.png'} />} /> */}
<YStack>
<Text size={27} color="#09101C" weight={'semibold'}>
Nimbus
</Text>
<Text size={19} color="#647084">
Node Management Dashboard
</Text>
</YStack>
</XStack>
)
}
export default TitleLogo