feat(validator-management): move styles to module
This commit is contained in:
parent
a6afdfc835
commit
b625733d7b
|
@ -6,57 +6,27 @@ import DeviceUptime from '../Dashboard/DeviceUptime/DeviceUptime'
|
||||||
import ConsensusUptimeCard from '../Dashboard/ConsensusUptime/ConsensusUptimeCard'
|
import ConsensusUptimeCard from '../Dashboard/ConsensusUptime/ConsensusUptimeCard'
|
||||||
import ExecutionUptime from '../Dashboard/ExecutionUptime/ExecutionUptime'
|
import ExecutionUptime from '../Dashboard/ExecutionUptime/ExecutionUptime'
|
||||||
import BasicInfoCard from '../Dashboard/BasicInfoCards/BasicInfoCard'
|
import BasicInfoCard from '../Dashboard/BasicInfoCards/BasicInfoCard'
|
||||||
|
import styles from './validatorManagement.module.css'
|
||||||
|
import { useWindowSize } from '../../hooks/useWindowSize'
|
||||||
|
|
||||||
const ValidatorManagement = () => {
|
const ValidatorManagement = () => {
|
||||||
|
const { width } = useWindowSize()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SidebarsWrapper isNotBottomPadding={true}>
|
<SidebarsWrapper isNotBottomPadding={true}>
|
||||||
<div
|
<div className={`${styles['main-container']} transparent-scrollbar`}>
|
||||||
style={{
|
|
||||||
display: 'flex',
|
|
||||||
flexDirection: 'column',
|
|
||||||
gap: '12px',
|
|
||||||
width: '100%',
|
|
||||||
}}
|
|
||||||
className="transparent-scrollbar"
|
|
||||||
>
|
|
||||||
<ManagementHeader />
|
<ManagementHeader />
|
||||||
<div
|
<div className={styles['cards-container']}>
|
||||||
style={{
|
|
||||||
display: 'flex',
|
|
||||||
flexDirection: 'row',
|
|
||||||
gap: '12px',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<DeviceUptime
|
<DeviceUptime
|
||||||
style={{ flex: 1, minHeight: '100%' }}
|
style={{ flex: 1, minHeight: '100%' }}
|
||||||
chartHeight="78%"
|
chartHeight="78%"
|
||||||
/>
|
/>
|
||||||
<div
|
<div className={styles['right-cards-container']}>
|
||||||
style={{
|
<div className={styles['charts-container']}>
|
||||||
display: 'flex',
|
|
||||||
flexDirection: 'row',
|
|
||||||
gap: '12px',
|
|
||||||
flex: 1,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<div
|
|
||||||
style={{
|
|
||||||
display: 'flex',
|
|
||||||
flexDirection: 'column',
|
|
||||||
gap: '12px',
|
|
||||||
flex: 1,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<ConsensusUptimeCard />
|
<ConsensusUptimeCard />
|
||||||
<ExecutionUptime />
|
<ExecutionUptime />
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div className={styles['basic-info-cards-container']}>
|
||||||
style={{
|
|
||||||
display: 'flex',
|
|
||||||
flexDirection: 'column',
|
|
||||||
gap: '12px',
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
<BasicInfoCard
|
<BasicInfoCard
|
||||||
style={{ height: 'calc(50% - 8px)' }}
|
style={{ height: 'calc(50% - 8px)' }}
|
||||||
title="Network Validators"
|
title="Network Validators"
|
||||||
|
|
|
@ -1,3 +1,36 @@
|
||||||
|
.main-container {
|
||||||
|
display: flex;
|
||||||
|
gap: 12px;
|
||||||
|
flex-direction: column;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.cards-container {
|
||||||
|
display: flex;
|
||||||
|
gap: 12px;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right-cards-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
gap: 12px;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.charts-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
flex: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.basic-info-cards-container {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
gap: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
.tabs-container {
|
.tabs-container {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 1px solid #e7eaee;
|
border: 1px solid #e7eaee;
|
||||||
|
|
Loading…
Reference in New Issue