提交 9ebbee8a authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 05606e8e
...@@ -75,23 +75,21 @@ textarea { ...@@ -75,23 +75,21 @@ textarea {
textarea:focus { textarea:focus {
outline: 0; outline: 0;
} }
:root {
--main-color: #ba143e;
}
html, html,
body, body,
#root { #root {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
:root {
--main-color: #ba143e;
}
.app-card { .app-card {
--ant-color-text-heading: var(--main-color); --ant-color-text-heading: var(--main-color);
--ant-border-radius-lg: 20px; --ant-border-radius-lg: 20px;
} }
/* .app-card .ant-card-head {
padding: 0;
margin: 0 20px;
} */
.app-steps { .app-steps {
.ant-steps-item-title { .ant-steps-item-title {
......
...@@ -19,6 +19,7 @@ const antdTheme = { ...@@ -19,6 +19,7 @@ const antdTheme = {
hashed: false, hashed: false,
token: { token: {
colorPrimary: '#ba143e', colorPrimary: '#ba143e',
borderRadiusLG: 12,
}, },
} }
......
.banner { .dashboard {
padding: 30px 40px 50px; width: 1240px;
h2 { margin: 0 auto;
font-size: 20px;
font-weight: 700;
line-height: 28px;
}
p {
margin-top: 20px;
font-size: 18px;
line-height: 25px;
}
} }
.carousel-banner { .carousel-banner {
.slick-dots { margin-bottom: 40px;
li { .banner {
button { display: flex;
&::after { align-items: center;
background-color: #bbb !important; justify-content: center;
}
}
&.slick-active {
&::after {
background: var(--main-color) !important;
}
}
}
} }
} }
.card-item { .card-item {
display: flex; h3 {
&__left { display: flex;
flex: 1; align-items: center;
h3 { justify-content: space-between;
font-size: 20px; font-size: 20px;
} .lucide {
p { color: var(--main-color);
font-size: 16px;
margin-top: 10px;
} }
} }
&__right { p {
font-size: 20px; margin: 10px 0 30px;
color: var(--main-color); font-size: 16px;
} }
} }
...@@ -8,6 +8,7 @@ type CardItem = { ...@@ -8,6 +8,7 @@ type CardItem = {
title: string title: string
description: string description: string
path: string path: string
span?: number
} }
export default function DataDashboard() { export default function DataDashboard() {
...@@ -37,18 +38,21 @@ export default function DataDashboard() { ...@@ -37,18 +38,21 @@ export default function DataDashboard() {
path: '/data/process', path: '/data/process',
}, },
{ {
span: 8,
icon: <Cone size={40} />, icon: <Cone size={40} />,
title: '数据挖掘', title: '数据挖掘',
description: '智能数据解析与知识图谱构建‌‌', description: '智能数据解析与知识图谱构建‌‌',
path: '/data/digging', path: '/data/digging',
}, },
{ {
span: 8,
icon: <ChartArea size={40} />, icon: <ChartArea size={40} />,
title: '可视化组件', title: '可视化组件',
description: '‌智能可视化组件', description: '‌智能可视化组件',
path: '/data/chart', path: '/data/chart',
}, },
{ {
span: 8,
icon: <Wallpaper size={40} />, icon: <Wallpaper size={40} />,
title: '可视化大屏', title: '可视化大屏',
description: '‌智能可视化大屏', description: '‌智能可视化大屏',
...@@ -60,41 +64,31 @@ export default function DataDashboard() { ...@@ -60,41 +64,31 @@ export default function DataDashboard() {
return ( return (
<Card> <Card>
<div className="card-item"> <div className="card-item">
<div className="card-item__left"> <h3>
<h3>{item.title}</h3> {item.title} {item.icon}
<p>{item.description}</p> </h3>
<br /> <p>{item.description}</p>
<Link to={item.path}> <Link to={item.path}>
<Button shape="round">点击进入</Button> <Button shape="round">点击进入</Button>
</Link> </Link>
</div>
<div className="card-item__right">{item.icon}</div>
</div> </div>
</Card> </Card>
) )
} }
return ( return (
<div style={{ margin: '0 80px' }}> <div className="dashboard">
<Card style={{ marginBottom: 40 }}> <Carousel className="carousel-banner">
<Carousel className="carousel-banner"> <div className="banner">
<div className="banner"> <img src="/images/banner_1.png" />
<h2>AI驱动的数据分析实验室</h2> </div>
<p> <div className="banner">
以AI技术为核心驱动力,深度挖掘数据价值,为各领域提供精准、高效的数据分析解决方案,助力决策智能化与业务创新。 <img src="/images/banner_2.png" />
</p> </div>
</div> </Carousel>
<div className="banner"> <Row gutter={[20, 40]}>
<h2>AI驱动的数据分析实验室</h2>
<p>
以AI技术为核心驱动力,深度挖掘数据价值,为各领域提供精准、高效的数据分析解决方案,助力决策智能化与业务创新。
</p>
</div>
</Carousel>
</Card>
<Row gutter={[40, 40]}>
{items.map((item) => ( {items.map((item) => (
<Col span={6} key={item.path}> <Col span={item.span || 6} key={item.path}>
{CardCardItem(item)} {CardCardItem(item)}
</Col> </Col>
))} ))}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论