Skip to content

Commit 54facb2

Browse files
committed
feat: update 「sites/docs」更新官方文档
1 parent 6c3ef48 commit 54facb2

Some content is hidden

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

72 files changed

+608
-251
lines changed

pnpm-lock.yaml

+30-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sites/docs/.dumi/favicon.png

31.8 KB
Loading

sites/docs/.dumi/pages/enUS/components/Introduction/index.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,8 @@ export default function Introduction() {
2424
return (
2525
<div className="intro-container">
2626
<div className="title-part">
27-
<h1>Design language and development framework</h1>
28-
<div>
29-
upporting ecology that allows you to quickly build web applications
30-
</div>
27+
<h1>Design Process and Execution Engine</h1>
28+
<div>Supporting community to get your process built quickly</div>
3129
</div>
3230
<div className="dumi-default-features intro-inner" data-cols="3">
3331
{inner.map((domItem, domIdx) => {

sites/docs/.dumi/pages/enUS/index.tsx

+17-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,19 @@
11
import React from 'react';
22
import Introduction from './components/Introduction';
33
import Demo from '../index/components/demo';
4+
import MobileDemo from '../index/components/demo2/index';
45
import Animation from '../index/components/animation';
6+
import '../index/index.less';
57

68
const Homepage: React.FC = () => {
9+
const isMobile = () => {
10+
let flag =
11+
/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
12+
navigator.userAgent,
13+
);
14+
return flag;
15+
};
16+
717
return (
818
<section className="home-page">
919
<div className="home-title">
@@ -18,9 +28,13 @@ const Homepage: React.FC = () => {
1828
LogicFlow
1929
</span>
2030
</h1>
21-
<p>Visualize your logic and enhance your workflow</p>
31+
<p>
32+
Low-cost implementation for simpler,
33+
<br />
34+
more efficient logic management
35+
</p>
2236
<div className="dumi-default-hero-actions">
23-
<a href="/tutorial">Start</a>
37+
<a href="/tutorial">Get Started</a>
2438
<a href="https://github.com/didi/LogicFlow" target="_blank">
2539
Github
2640
</a>
@@ -29,7 +43,7 @@ const Homepage: React.FC = () => {
2943
<Animation />
3044
</div>
3145
{/* 首页 demo */}
32-
<Demo></Demo>
46+
{isMobile() ? <MobileDemo /> : <Demo />}
3347
{/* 介绍 */}
3448
<Introduction></Introduction>
3549
</section>

sites/docs/.dumi/pages/index/components/Introduction/index.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export default function Introduction() {
3232
return (
3333
<div className="intro-container">
3434
<div className="title-part">
35-
<h1>设计语言与研发框架</h1>
36-
<div>配套生态,让你快速搭建网站应用</div>
35+
<h1>设计流程与执行引擎</h1>
36+
<div>配套社区,让你快速完成流程搭建</div>
3737
</div>
3838
{/* TODO: 增加 Star 数、weekly Installs 以及 License,参考 [ReactFlow](https://reactflow.dev/) 官网样式 */}
3939

sites/docs/.dumi/pages/index/components/demo/index.less

+27-15
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
margin-bottom: 90px;
99
overflow: hidden;
1010
border-radius: 12px;
11-
box-shadow: -5px 5px 15px #0000001a;
11+
// box-shadow: -5px 5px 15px #0000001a;
1212

1313
.app-content {
1414
height: 440px;
@@ -21,38 +21,50 @@
2121
font-weight: bolder;
2222
font-size: 15px;
2323

24-
span {
24+
button {
2525
padding: 5px 20px;
26-
color: #fff;
26+
color: #3487fc;
2727
text-align: center;
28-
background: #3487fc;
28+
background: #fff;
2929
border: 1px solid #3487fc;
3030
border-radius: 26px;
3131
cursor: pointer;
32+
user-select: none;
3233
}
3334

34-
span:last-child {
35+
button:last-child {
3536
margin-left: 20px;
36-
padding: 5px 15px;
37-
color: #3487fc;
38-
background: #fff;
3937
}
40-
}
4138

42-
.run-btn > span:hover {
43-
opacity: 0.8;
39+
button:hover {
40+
opacity: 0.8;
41+
}
42+
43+
button.is-disabled {
44+
color: #c0c4cc;
45+
border-color: #ebeef5;
46+
cursor: not-allowed;
47+
opacity: 1;
48+
}
49+
50+
button.active {
51+
color: #fff;
52+
background: #a0cfff;
53+
border-color: #a0cfff;
54+
}
4455
}
4556

4657
// 元素
4758
.step-wrapper {
4859
position: relative;
4960
width: calc(100% - 4px);
5061
height: calc(100% - 4px);
51-
background: #fafafa;
62+
color: #747e92;
63+
background: #f9f9f9;
5264
// background: rgb(255 255 255 / 70%);
53-
border-radius: 1rem;
65+
border-radius: 8px;
5466

55-
box-shadow: inset 0 0 0 2px rgb(229 231 235);
67+
box-shadow: inset 0 0 0 2px #d4d5d6;
5668

5769
.text {
5870
width: 100%;
@@ -65,7 +77,7 @@
6577
box-sizing: inherit;
6678
width: calc(100% - 4px);
6779
height: calc(100% - 4px);
68-
border-radius: 1rem;
80+
border-radius: 8px;
6981
content: '';
7082
}
7183
}

0 commit comments

Comments
 (0)