Skip to content

Commit acbf771

Browse files
stevending1stTechQuery
authored andcommitted
首页优化、添加参与页面
1 parent 527c54a commit acbf771

4 files changed

Lines changed: 79 additions & 60 deletions

File tree

pages/index.tsx

Lines changed: 42 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Link from 'next/link';
21
import ReactTyped from 'react-typed-component';
32
import { Row, Col, Card } from 'react-bootstrap';
43
import PageHead from '../components/PageHead';
@@ -34,38 +33,58 @@ const HomePage = () => (
3433
<section
3534
className={`flex-fill d-flex flex-column justify-content-center align-items-center pb-0 bg-warning bg-opacity-10 ${styles.main}`}
3635
>
37-
<h2 className="text-start mb-5 mt-5 fw-bolder">形式</h2>
36+
<h2 className="text-start mb-5 mt-5 fw-bolder">参与</h2>
3837
<Row className="flex-fill d-flex justify-content-around align-items-center w-100 px-3">
3938
<Col xs={8} sm={7} md={4} className="pb-5">
4039
<Card body className={`shadow ${styles.activeCard}`}>
41-
<Link href="/history">
42-
<a>
43-
<h5 className="fw-bold mb-3">开源市集</h5>
44-
</a>
45-
</Link>
46-
<p>
47-
一群来自科技、艺术、环保不同领域的有趣的朋友通过展示、交流,将“开源”和“开放式协作”的乐趣带给更多人,点亮更多有趣的灵魂,为社会带来正面影响。
48-
</p>
40+
<h5 className="fw-bold mb-3">代码工作</h5>
41+
<ul className="list-unstyled">
42+
<li className="mb-3">
43+
<a
44+
href="https://github.com/Open-Source-Bazaar/Open-Source-Bazaar.github.io"
45+
className="fw-bold"
46+
>
47+
官网开发
48+
</a>
49+
:研发官网,让更多人了解「开源市集」,了解「开放式协作」……
50+
</li>
51+
<li className="mb-3">
52+
<span className="fw-bold">……</span>
53+
</li>
54+
</ul>
4955
</Card>
5056
</Col>
5157
<Col xs={8} sm={7} md={4} className="pb-5">
52-
<Card body className={`shadow ${styles.activeCard}`}>
53-
<a href="/open-collaborator-award">
54-
<h5 className="fw-bold mb-3">开放协作人奖</h5>
55-
</a>
56-
<p>
57-
开放协作人,在过去的一年中,是否有人给你带来感动,带来惊喜?是否有人与你一起成长,一起进步?也许是长此以往,或者说那一瞬间,如果有这样令你难以忘怀的人,请把
58-
Ta 推荐给更多的人。
59-
</p>
58+
<Card body className={`shadow overflow-auto ${styles.activeCard}`}>
59+
<h5 className="fw-bold mb-3">非代码工作</h5>
60+
<ul className="list-unstyled">
61+
<li className="mb-3">
62+
<a href="/history" className="fw-bold">
63+
开放市集
64+
</a>
65+
:一群来自不同领域的有趣的朋友通过展示、交流,将“开源”和“开放式协作”的乐趣带给更多人……
66+
</li>
67+
<li className="mb-3">
68+
<a href="/open-collaborator-award" className="fw-bold">
69+
开放协作人奖
70+
</a>
71+
:在过去的一年中令你难以忘怀的人,请把 Ta 推荐给更多的人……
72+
</li>
73+
<li className="mb-3">
74+
<span className="fw-bold">……</span>
75+
</li>
76+
</ul>
6077
</Card>
6178
</Col>
6279
<Col xs={8} sm={7} md={4} className="pb-5">
6380
<Card body className={`shadow ${styles.activeCard}`}>
64-
欢迎
65-
<strong>
66-
<a href="/join-us">成为共创人/方</a>
67-
</strong>
68-
,更多内容/形式等你来共创……
81+
<p>
82+
欢迎
83+
<a href="/join-us" className="fw-bold">
84+
成为共创人/方
85+
</a>
86+
,更多内容/形式等你来共创……
87+
</p>
6988
</Card>
7089
</Col>
7190
</Row>

pages/join-us.mdx

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import PageHead from '../components/PageHead';
2+
import PageContent from '../components/PageContent/index';
3+
4+
<>
5+
<PageHead />
6+
<PageContent>
7+
# 参与开源市集
8+
9+
无论你是否具有代码能力,你都可以为「开源市集」贡献。并且,我们相信代码贡献和非代码贡献同样重要。
10+
11+
## 非代码贡献
12+
13+
- [参与开源市集的共创][1]。包括但不限于开拓活动形式、参与开源市集……
14+
15+
- 参与开源市集官网的设计。帮助我们从零到一设计官方网站。
16+
17+
- [参与开放协作人奖评选][3]
18+
19+
- ……
20+
21+
## 代码贡献
22+
23+
- [参与开源市集官网的开发][2]
24+
25+
- ……
26+
27+
除了上述工作外,你如果觉得有其他可贡献内容,可以直接参与讨论。
28+
29+
</PageContent>
30+
</>
31+
32+
[1]: https://open-source-bazaar.feishu.cn/docs/doccnGSsshgO4ojuAHVzWJMXWog "即兴三月,开源开放!"
33+
[2]: https://github.com/Open-Source-Bazaar/Open-Source-Bazaar.github.io "开源市集官网仓库"
34+
[3]: /open-collaborator-award "开放协作人奖"

styles/Home.module.scss

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -14,42 +14,9 @@
1414
}
1515
}
1616
}
17-
.description {
18-
margin: 4rem 0;
19-
line-height: 1.5;
20-
}
21-
22-
.code {
23-
padding: 0.75rem;
24-
font-size: 1.1rem;
25-
font-family: Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono,
26-
Bitstream Vera Sans Mono, Courier New, monospace;
27-
}
28-
29-
.grid {
30-
max-width: 50rem;
31-
@media (max-width: 575px) {
32-
width: 100%;
33-
}
34-
}
35-
.card {
36-
color: inherit;
37-
transition: color 0.15s ease, border-color 0.15s ease;
38-
max-width: 300px;
39-
&:hover,
40-
&:focus,
41-
&:active {
42-
color: #0070f3;
43-
border-color: #0070f3;
44-
}
45-
p {
46-
line-height: 1.5;
47-
}
48-
img {
49-
height: 18rem;
50-
}
51-
}
5217

5318
.activeCard {
54-
min-height: 50vh;
19+
max-height: 50vh;
20+
min-height: 300px;
21+
5522
}

styles/globals.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ body {
77
}
88

99
a {
10-
color: inherit;
1110
text-decoration: none;
1211
}
1312

0 commit comments

Comments
 (0)