Skip to content

Commit e7ecca7

Browse files
committed
update home page content
1 parent 7b74270 commit e7ecca7

File tree

10 files changed

+41
-93
lines changed

10 files changed

+41
-93
lines changed

Diff for: logo.svg

+8-84
Loading

Diff for: src/assets/image/debugger.png

-8.88 KB
Loading

Diff for: src/assets/image/inspect.png

51.4 KB
Loading

Diff for: src/pages/Home/components/Footer/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const Footer = () => {
66
<div className="text-center">
77
<p>Open-source MIT Licensed.</p>
88
<p>
9-
Copyright &copy; 2023-present <a href="#">Huolala-Tech</a>
9+
Copyright &copy; 2023 <a href="#">Huolala-Tech</a>
1010
</p>
1111
</div>
1212
</div>

Diff for: src/pages/Home/components/Introduction/components/Block-1/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { Row, Col, Typography } from 'antd';
2-
import debugImg from '@/assets/image/debugger.png';
2+
import debugImg from '@/assets/image/inspect.png';
33

44
const { Title } = Typography;
55

66
export const IntroBlock1 = () => {
77
return (
8-
<Row gutter={60}>
8+
<Row gutter={80} justify="center">
99
<Col>
10-
<img width="500" src={debugImg} alt="" />
10+
<img width="400" src={debugImg} alt="" />
1111
</Col>
1212
<Col style={{ textAlign: 'right' }}>
1313
<p className="small-title">What PageSpy do</p>

Diff for: src/pages/Home/components/Introduction/components/Block-2/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const SDKPanel = () => {
6363
const ClientPanel = () => {
6464
return (
6565
<div className="client-panle">
66-
<img width={500} src={debugImg} alt="" />
66+
<img width={400} src={debugImg} alt="" />
6767
</div>
6868
);
6969
};
@@ -73,7 +73,7 @@ export const IntroBlock2 = () => {
7373
const [activeKey, setActiveKey] = useState('sdk');
7474

7575
return (
76-
<Row gutter={120} justify="center">
76+
<Row justify="center" gutter={80}>
7777
<Col>
7878
<p className="small-title">What we provide</p>
7979
<Title level={1} className="big-title">
@@ -101,7 +101,7 @@ export const IntroBlock2 = () => {
101101
classNames="fade"
102102
timeout={300}
103103
>
104-
<div ref={nodeRef} style={{ width: 500, height: 500 }}>
104+
<div ref={nodeRef} style={{ width: 400, height: 400 }}>
105105
{activeKey === 'sdk' ? <SDKPanel /> : <ClientPanel />}
106106
</div>
107107
</CSSTransition>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.welcome-use {
2+
display: flex;
3+
gap: 12px;
4+
flex-direction: column;
5+
align-items: center;
6+
justify-content: center;
7+
background-color: rgba(@primary-color, 0.06);
8+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import { Row, Col, Button, Typography } from 'antd';
2+
import logoImg from '@/assets/image/logo.svg';
3+
import './index.less';
4+
5+
export const IntroBlock3 = () => {
6+
return (
7+
<div className="welcome-use">
8+
<img src={logoImg} width="70" alt="LOGO" />
9+
<Typography.Title level={2}>Welcome to use PageSpy</Typography.Title>
10+
<Button type="primary" shape="round" size="large">
11+
Get Started
12+
</Button>
13+
</div>
14+
);
15+
};

Diff for: src/pages/Home/components/Introduction/index.less

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
.introduction {
2-
padding-inline: 12vw;
2+
// padding-inline: 12vw;
33
background-color: #fff;
44
> div {
55
padding-block: 80px;
6-
// margin-block: 12px;
76
}
87
.small-title {
98
margin-top: 100px;

Diff for: src/pages/Home/components/Introduction/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
import { IntroBlock1 } from './components/Block-1';
22
import { IntroBlock2 } from './components/Block-2';
3+
import { IntroBlock3 } from './components/Block-3';
34
import './index.less';
45

56
export const Introduction = () => {
67
return (
78
<div className="introduction">
89
<IntroBlock1 />
910
<IntroBlock2 />
11+
<IntroBlock3 />
1012
</div>
1113
);
1214
};

0 commit comments

Comments
 (0)