Skip to content

Commit dbfd3d5

Browse files
committed
feat: 同步最新内容
1 parent 5ba1a77 commit dbfd3d5

File tree

513 files changed

+292
-13382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

513 files changed

+292
-13382
lines changed

.dumi/theme/slots/AutomatedTesting/index.less

Lines changed: 5 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,14 @@
2020
margin-left: 57px;
2121
padding-top: 41px;
2222

23-
.generationTitle {
24-
margin: 0 auto;
25-
text-align: left;
26-
font-size: 40px;
27-
color: #ffffff;
28-
letter-spacing: 1.35px;
29-
font-weight: 600;
30-
background-image: linear-gradient(90deg, #d8d8d8 0%, #545eff 100%);
31-
display: inline-block;
32-
background-clip: text;
33-
-webkit-background-clip: text;
34-
-webkit-text-fill-color: transparent;
35-
36-
.line {
37-
margin-top: 19px;
38-
background-image: linear-gradient(90deg, #e5b2ca 0%, #7546f3 100%);
39-
height: 4px;
40-
width: 323px;
41-
}
42-
}
43-
4423
.desc {
4524
width: 542px;
4625
margin-top: 48px;
4726
font-size: 16px;
4827
color: #ffffff;
4928
letter-spacing: 1px;
5029
opacity: 0.8;
51-
30+
5231
@{dark-selector} & {
5332
font-size: 16px;
5433
color: #171616;
@@ -90,6 +69,10 @@
9069
background-size: contain;
9170
background-position: center;
9271
color: #fff;
72+
73+
@{dark-selector} & {
74+
color: #7031FD;
75+
}
9376
}
9477
}
9578
}

.dumi/theme/slots/AutomatedTesting/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useRouteMeta, useLocale, usePrefersColor } from 'dumi';
22
import './index.less';
33
import React, { type FC } from 'react';
44
import { SwapRightOutlined } from '@ant-design/icons';
5+
import HomeTitle from '../HomeTitle';
56

67
const AutomatedTesting: FC = () => {
78
const { frontmatter } = useRouteMeta();
@@ -13,10 +14,7 @@ const AutomatedTesting: FC = () => {
1314
<div className="automatedTesting-center">
1415
<img src={color === 'dark' ? frontmatter.AutomatedTesting.imageColor : frontmatter.AutomatedTesting.image} alt="" />
1516
<div className="automatedTestingContent">
16-
<div className="generationTitle">
17-
{frontmatter.AutomatedTesting.title}
18-
<div className="line" />
19-
</div>
17+
< HomeTitle title={frontmatter.AutomatedTesting.title} />
2018
<div className="desc">
2119
{frontmatter.AutomatedTesting.description}
2220
</div>

.dumi/theme/slots/Blogs/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type MyTabName = {
1111
const SortList = (list: any, seq: string) => {
1212
if (list?.length > 0) {
1313
return seq === 'correct' ? list?.sort((a: any, b: any) => new Date(b?.time).getTime() - new Date(a?.time)?.getTime()) : list?.sort((a: any, b: any) => new Date(b?.time).getTime() - new Date(a?.time)?.getTime());
14-
}else {
14+
} else {
1515
return '';
1616
}
1717
}
@@ -83,7 +83,6 @@ const Blogs: FC = () => {
8383
</List.Item>
8484
)}
8585
pagination={{
86-
// hideOnSinglePage: true,
8786
defaultCurrent: 1,
8887
pageSize: 10,
8988
align: 'center'
@@ -180,7 +179,7 @@ const Blogs: FC = () => {
180179
},
181180
{
182181
key: 'Event Consultation',
183-
label: locale.id === 'zh-CN' ? '活动咨询' : 'Event Consultation',
182+
label: locale.id === 'zh-CN' ? '活动资讯' : 'Event Consultation',
184183
children: (<List
185184
className='list'
186185
itemLayout="horizontal"

.dumi/theme/slots/CodeAnalysis/index.less

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@
3838
height: 4px;
3939
width: 323px;
4040
}
41+
42+
@{dark-selector} & {
43+
background-image: linear-gradient(90deg, #e5b2ca 0%, #545eff 100%);
44+
}
4145
}
4246

4347
.desc {
@@ -52,6 +56,7 @@
5256
color: #171616;
5357
}
5458
}
59+
5560
.buttom {
5661
cursor: pointer;
5762
width: 150px;
@@ -75,6 +80,7 @@
7580
position: absolute;
7681
bottom: 5px;
7782
}
83+
7884
margin-left: 8px;
7985
width: 25px;
8086
height: 25px;
@@ -86,6 +92,10 @@
8692
background-size: contain;
8793
background-position: center;
8894
color: #fff;
95+
96+
@{dark-selector} & {
97+
color: #7031FD;
98+
}
8999
}
90100
}
91101
}

.dumi/theme/slots/CodeAnalysis/index.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useLocale, usePrefersColor, useRouteMeta } from 'dumi';
22
import './index.less';
33
import React, { type FC } from 'react';
44
import { SwapRightOutlined } from '@ant-design/icons';
5+
import HomeTitle from '../HomeTitle';
56

67
const CodeAnalysis: FC = () => {
78
const { frontmatter } = useRouteMeta();
@@ -15,15 +16,11 @@ const CodeAnalysis: FC = () => {
1516
alt=""
1617
/>
1718
<div className="codeAnalysisContent">
18-
<div className="codeAnalysisTitle">
19-
{frontmatter.CodeAnalysis.title}
20-
<div className="line" />
21-
</div>
19+
<HomeTitle title={frontmatter.CodeAnalysis.title} textAlign={'left'} />
2220
<div className="desc">
2321
{frontmatter.CodeAnalysis.description}
2422
</div>
2523
<div className="buttom" onClick={() => { window.open(frontmatter.CodeAnalysis.link) }}>
26-
2724
{locale.id === 'zh-CN' ? '了解更多' : 'Learn more'}
2825
<SwapRightOutlined />
2926
</div>

.dumi/theme/slots/CodeGeneration/index.less

Lines changed: 34 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,32 @@
1010
flex-direction: column;
1111
min-width: 1200px;
1212

13-
.generationTitle {
14-
margin: 0 auto;
15-
text-align: center;
16-
min-width: 343px;
17-
font-size: 40px;
18-
color: #ffffff;
19-
letter-spacing: 1.35px;
20-
font-weight: 600;
21-
background-image: linear-gradient(90deg, #d8d8d8 0%, #545eff 100%);
22-
display: inline-block;
23-
background-clip: text;
24-
-webkit-background-clip: text;
25-
-webkit-text-fill-color: transparent;
26-
27-
.line {
28-
margin: 0 auto;
29-
margin-top: 19px;
30-
background-image: linear-gradient(90deg, #e5b2ca 0%, #7546f3 100%);
31-
height: 4px;
32-
width: 323px;
33-
}
34-
}
35-
13+
// .generationTitle {
14+
// margin: 0 auto;
15+
// text-align: center;
16+
// min-width: 343px;
17+
// font-size: 40px;
18+
// color: #ffffff;
19+
// letter-spacing: 1.35px;
20+
// font-weight: 600;
21+
// background-image: linear-gradient(90deg, #d8d8d8 0%, #545eff 100%);
22+
// display: inline-block;
23+
// background-clip: text;
24+
// -webkit-background-clip: text;
25+
// -webkit-text-fill-color: transparent;
26+
27+
// .line {
28+
// margin: 0 auto;
29+
// margin-top: 19px;
30+
// background-image: linear-gradient(90deg, #e5b2ca 0%, #7546f3 100%);
31+
// height: 4px;
32+
// width: 323px;
33+
// }
34+
35+
// @{dark-selector} & {
36+
// background-image: linear-gradient(90deg, #e5b2ca 0%, #545eff 100%);
37+
// }
38+
// }
3639

3740
.generationContent {
3841
margin-top: 190px;
@@ -67,6 +70,10 @@
6770
background-clip: text;
6871
-webkit-background-clip: text;
6972
-webkit-text-fill-color: transparent;
73+
74+
@{dark-selector} & {
75+
background-image: linear-gradient(90deg, #545eff 0%, #9466ff 100%);
76+
}
7077
}
7178

7279
.desc {
@@ -122,6 +129,10 @@
122129
background-size: contain;
123130
background-position: center;
124131
color: #fff;
132+
133+
@{dark-selector} & {
134+
color: #7031FD;
135+
}
125136
}
126137
}
127138
}

.dumi/theme/slots/CodeGeneration/index.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import React, { type FC } from 'react';
44
import "slick-carousel/slick/slick.css";
55
import "slick-carousel/slick/slick-theme.css";
66
import Slider from "react-slick";
7+
import HomeTitle from '../HomeTitle';
78
import { SwapRightOutlined } from '@ant-design/icons';
89

910
const CodeGeneration: FC = () => {
@@ -47,10 +48,7 @@ const CodeGeneration: FC = () => {
4748
};
4849
return <div className="code-Generation">
4950
<div className="code-Generation-center">
50-
<div className="generationTitle">
51-
{frontmatter?.CodeGenerationTitle.title}
52-
<div className="line" />
53-
</div>
51+
<HomeTitle title={frontmatter?.CodeGenerationTitle.title} line={'19px auto 0'} />
5452
<div className="generationContent">
5553
<Slider {...settings}>
5654
{

.dumi/theme/slots/DevOps/index.less

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,29 +9,6 @@
99
flex-direction: column;
1010
width: 1200px;
1111

12-
.devOpsTitle {
13-
margin: 0 auto;
14-
text-align: center;
15-
min-width: 343px;
16-
font-size: 40px;
17-
color: #ffffff;
18-
letter-spacing: 1.35px;
19-
font-weight: 600;
20-
background-image: linear-gradient(90deg, #d8d8d8 0%, #545eff 100%);
21-
display: inline-block;
22-
background-clip: text;
23-
-webkit-background-clip: text;
24-
-webkit-text-fill-color: transparent;
25-
26-
.line {
27-
margin: 0 auto;
28-
margin-top: 19px;
29-
background-image: linear-gradient(90deg, #e5b2ca 0%, #7546f3 100%);
30-
height: 4px;
31-
width: 323px;
32-
}
33-
}
34-
3512
.DevOpsContent {
3613
width: 100%;
3714

@@ -106,6 +83,12 @@
10683
}
10784

10885
&:hover {
86+
@{dark-selector} & {
87+
background-image: linear-gradient(138deg, #5aefff -10%, #6646f9 42%, #ffcf8a 99%);
88+
border-radius: 33px;
89+
90+
}
91+
10992
background-image: linear-gradient(138deg, #5aefff -10%, #502fe6 42%, #92764d 99%);
11093
border-radius: 33px;
11194

.dumi/theme/slots/DevOps/index.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { useLocale, useRouteMeta, usePrefersColor } from 'dumi';
22
import './index.less';
33
import React, { type FC } from 'react';
44
import { SwapRightOutlined } from '@ant-design/icons';
5+
import HomeTitle from '../HomeTitle';
6+
57

68
const DevOps: FC = () => {
79
const { frontmatter } = useRouteMeta();
@@ -10,10 +12,7 @@ const DevOps: FC = () => {
1012
if (!('DevOps' in frontmatter)) return null;
1113
return <div className="devOps">
1214
<div className="devOps-center">
13-
<div className="devOpsTitle">
14-
{frontmatter.DevOpsTitle.title}
15-
<div className="line" />
16-
</div>
15+
<HomeTitle title={frontmatter.DevOpsTitle.title} />
1716
<div className="DevOpsContent">
1817
<ul className="DevOpsUl">
1918
{frontmatter.DevOps.map((item: any) => {

.dumi/theme/slots/Hero/index.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Link, useRouteMeta } from 'dumi';
1+
import { Link, useRouteMeta, usePrefersColor } from 'dumi';
22
import HeroTitle from 'dumi/theme/slots/HeroTitle';
33
import CodeGeneration from '../CodeGeneration';
44
import React, { type FC } from 'react';
@@ -11,12 +11,14 @@ import PerformanceEvaluation from '../PerformanceEvaluation';
1111

1212
const Hero: FC = () => {
1313
const { frontmatter } = useRouteMeta();
14+
const [color] = usePrefersColor();
15+
1416
if (!('hero' in frontmatter)) return null;
1517
return (
1618
<div className="dumi-default-hero">
1719
<div className="banner">
1820
{frontmatter.hero!.title && (
19-
<HeroTitle>{frontmatter.hero!.title}</HeroTitle>
21+
<HeroTitle>{color === 'dark' ? frontmatter.hero!.titleLight : frontmatter.hero!.title}</HeroTitle>
2022
)}
2123
{frontmatter.hero!.description && (
2224
<p
@@ -25,12 +27,12 @@ const Hero: FC = () => {
2527
/>
2628
)}
2729
</div>
28-
<CodeGeneration/>
29-
<DevOps/>
30-
<CodeAnalysis/>
31-
<IntelligentInference/>
32-
<AutomatedTesting/>
33-
<PerformanceEvaluation/>
30+
<CodeGeneration />
31+
<DevOps />
32+
<CodeAnalysis />
33+
<IntelligentInference />
34+
<AutomatedTesting />
35+
<PerformanceEvaluation />
3436
</div>
3537
);
3638
};

0 commit comments

Comments
 (0)