Skip to content

Commit 848b4b8

Browse files
committed
Join page
1 parent b533efe commit 848b4b8

File tree

8 files changed

+107
-10
lines changed

8 files changed

+107
-10
lines changed

public/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
-->
1111
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
1212
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
13-
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
13+
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,500" rel="stylesheet">
1414
<!--
1515
Notice the use of %PUBLIC_URL% in the tags above.
1616
It will be replaced with the URL of the `public` folder during the build.

src/components/Home.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export default class Home extends React.Component {
4141
<p>我们提供了单项,组合动画,以及整套解决方案</p>
4242
</div>
4343
<div className="banner-button">
44-
<Button ghost>加入我们</Button>
44+
<Link to="/join"><Button ghost>加入我们</Button></Link>
4545
<Button ghost>查看教程</Button>
4646
</div>
4747
</div>

src/components/Join.scss

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
.join-banner p {
2+
margin-bottom: 4px;
3+
4+
&:last-child {
5+
margin-bottom: 12px;
6+
}
7+
}
8+
9+
.join-form {
10+
.ant-form-item {
11+
font-size: 14px;
12+
}
13+
14+
.ant-form-item-label label {
15+
font-size: 16px;
16+
font-weight: 500;
17+
line-height: normal;
18+
}
19+
20+
.form-action {
21+
display: flex;
22+
justify-content: flex-end;
23+
24+
.ant-btn {
25+
margin-left: 12px;
26+
}
27+
}
28+
29+
}

src/components/Join.tsx

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
import React from 'react';
2+
import './Join.scss';
3+
import { Button, Card, Col, Form, Icon, Input, Layout, Row } from 'antd';
4+
import { Link } from 'react-router-dom';
5+
import Sidebar from './Sidebar';
6+
7+
interface State {
8+
//
9+
}
10+
11+
export default class Article extends React.Component {
12+
state: State = {
13+
//
14+
};
15+
16+
onSubmit() {
17+
//
18+
}
19+
20+
render() {
21+
return (
22+
<div className="flex-spacer">
23+
<Layout.Content className="banner article-banner join-banner">
24+
<div className="container">
25+
<div className="banner-head">特工登记</div>
26+
<p>人类的自由,蓝色的地球。泛广州抵抗军欢迎你的参战!</p>
27+
<p>It time to move!</p>
28+
</div>
29+
</Layout.Content>
30+
31+
<Layout.Content className="container main">
32+
<Row>
33+
<Col span={16} className="news">
34+
<Card bordered={false}>
35+
<Form onSubmit={this.onSubmit} className="join-form">
36+
<p>请如实认真地填写该表格,这将有助于我们更好地组织和调配战争资源,为我们共同的目标赢得更大的优势!</p>
37+
<p>你填写的信息只会提供给审核人员查看,并保证不会在未得到你允许的情况下外传。</p>
38+
39+
<Form.Item label="特工代号">
40+
<Input prefix={<Icon type="user" />} placeholder="Agent Name" />
41+
</Form.Item>
42+
43+
<Form.Item label="Telegram 用户名">
44+
<p><i>(什么是 <a href="https://telegram.org" target="_blank">Telegram</a>?)</i></p>
45+
<p>请注意,Telegram 的 Name 与 Username 不是同一个概念,请填写 Username</p>
46+
<Input prefix={<Icon type="user" />} placeholder="Telegram Username (不带 @)" />
47+
</Form.Item>
48+
49+
// Map Here
50+
51+
<Form.Item label="其他说明">
52+
<p>可以在此简述一下你是怎么入坑的、你的入坑时间、是否认识其他特工等</p>
53+
<Input.TextArea autosize={{ minRows: 4, maxRows: 10 }} />
54+
</Form.Item>
55+
56+
<div className="form-action">
57+
<Link to="/"><Button size="large">取消</Button></Link>
58+
<Button size="large" type="primary">提交</Button>
59+
</div>
60+
</Form>
61+
</Card>
62+
</Col>
63+
64+
<Sidebar />
65+
</Row>
66+
</Layout.Content>
67+
</div>
68+
);
69+
}
70+
}

src/components/Layout.scss

+2-7
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,12 @@
5454
padding-left: 24px;
5555
margin-left: 24px;
5656
line-height: 30px;
57+
box-shadow: none;
58+
font-size: 13px;
5759

5860
@media (max-width: 1023px) {
5961
display: none;
6062
}
61-
62-
.ant-input {
63-
border: none;
64-
box-shadow: none;
65-
padding-left: 0;
66-
font-size: 13px;
67-
}
6863
}
6964
}
7065

src/components/Layout.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default class Home extends React.Component {
4646
<div className="name">CantonRES</div>
4747
</Link>
4848

49-
<Input.Search className="search" placeholder="搜索……" />
49+
<Input className="search" placeholder="搜索……" />
5050

5151
<div className="flex-spacer" />
5252

src/index.css

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ body {
99
}
1010

1111
p {
12+
line-height: normal;
1213
margin: 0 0 0.8em;
1314
}
1415

src/index.tsx

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import './index.css';
77
import Layout from './components/Layout';
88
import Home from './components/Home';
99
import Article from './components/Article';
10+
import Join from './components/Join';
1011

1112
ReactDOM.render(
1213
<Router>
@@ -15,6 +16,7 @@ ReactDOM.render(
1516
<Route exact path="/" component={Home} />
1617
<Route path="/page/:page" component={Home} />
1718
<Route path="/article/:id" component={Article} />
19+
<Route path="/join" component={Join} />
1820
<Route path="/form/:name" component={Home} />
1921
<Route path="/user/:id" component={Home} />
2022
<Route component={Home}/>

0 commit comments

Comments
 (0)