style: dashboard style

This commit is contained in:
jialin
2024-06-19 18:58:49 +08:00
parent 9f34452c68
commit 8c402e88fb
24 changed files with 266 additions and 189 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
import { PageContainer } from '@ant-design/pro-components';
import ContentWrapper from '@/components/content-wrapper';
import { Card, Col, Row, Space } from 'antd';
import React from 'react';
import { overviewConfigs } from '../config';
@@ -55,7 +55,7 @@ const Overview: React.FC = (props) => {
return value;
}
return (
<Space className="value-box">
<Space className="value-box" size={20}>
<span className={'value-healthy'}>{value.healthy}</span>
<span className={'value-warning'}>{value.warning}</span>
<span className={'value-error'}>{value.error}</span>
@@ -63,8 +63,8 @@ const Overview: React.FC = (props) => {
);
};
return (
<PageContainer ghost title={false}>
<Row gutter={[20, 20]} className={styles.row}>
<ContentWrapper contentStyle={{ paddingBlockStart: '32px' }} title={false}>
<Row gutter={[24, 20]} className={styles.row}>
{overviewConfigs.map((config, index) => (
<Col span={5} key={config.key}>
{renderCardItem({
@@ -75,7 +75,7 @@ const Overview: React.FC = (props) => {
</Col>
))}
</Row>
</PageContainer>
</ContentWrapper>
);
};