Skip to content

Commit b070a75

Browse files
committed
feat: Optimize website content
1 parent 89e1063 commit b070a75

File tree

9 files changed

+24
-25
lines changed

9 files changed

+24
-25
lines changed

.env

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
NEXT_PUBLIC_SITE_NAME=fCC-ChengDu
2-
NEXT_PUBLIC_SITE_SUMMARY=Lark project scaffold based on TypeScript, React, Next.js, Bootstrap & Workbox.
1+
NEXT_PUBLIC_SITE_NAME=fCC 成都社区
2+
NEXT_PUBLIC_SITE_SUMMARY=让更多人享受编程的乐趣
3+
NEXT_PUBLIC_LOGO = https://github.com/FreeCodeCamp-Chengdu.png
34

45
NEXT_PUBLIC_SENTRY_DSN =
56
SENTRY_ORG =

components/Home/CommunityStats.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,19 @@ export const CommunityStats = () => (
44
<Container className="my-5 text-center">
55
<h2 className="mb-4">
66
社区数据
7-
{/* <div className="mx-auto mt-2" style={{ width: '50px', height: '3px', backgroundColor: '#FFC107' }}></div> */}
87
</h2>
98
<Row className="justify-content-center">
109
{[
1110
{ number: '1000+', label: '社区成员' },
1211
{ number: '50+', label: '举办活动' },
1312
{ number: '200+', label: '技术文章' },
1413
{ number: '30+', label: '开源项目' },
15-
].map((stat, index) => (
16-
<Col key={index} xs={12} sm={6} md={3} className="mb-3">
14+
].map((label, number) => (
15+
<Col key={label} xs={12} sm={6} md={3} className="mb-3">
1716
<Card className="border-0 shadow-sm p-3">
1817
<Card.Body>
19-
<h3 className="fw-bold">{stat.number}</h3>
20-
<p className="mb-0">{stat.label}</p>
18+
<h3 className="fw-bold">{number}</h3>
19+
<p className="mb-0">{label}</p>
2120
</Card.Body>
2221
</Card>
2322
</Col>

components/Home/LatestBlogs.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,9 @@ export const LatestBlogs = () => (
3030
</Row>
3131

3232
<div className="text-center mt-4">
33-
<Link href="/blog" passHref>
34-
<Button variant="outline-primary" size="lg">
35-
查看全部文章 →
36-
</Button>
37-
</Link>
33+
<Button variant="outline-primary" size="lg" href="/article">
34+
查看全部文章
35+
</Button>
3836
</div>
3937
</Container>
4038
);

components/Home/Sponsors.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ export const Sponsors = () => (
2424
</Row>
2525

2626
<div className="text-center mt-4">
27-
<Link href="/partners" passHref>
28-
<Button variant="outline-primary" size="lg">
29-
成为赞助商 →
30-
</Button>
31-
</Link>
27+
<Button variant="outline-primary" size="lg">
28+
成为赞助商 →
29+
</Button>
3230
</div>
3331
</Container>
3432
);

components/Home/UpcomingEvents.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,9 @@ export const UpcomingEvents = () => (
3232
</Row>
3333

3434
<div className="text-center mt-4">
35-
<Link href="/events" passHref>
36-
<Button variant="outline-primary" size="lg">
37-
查看全部活动 →
38-
</Button>
39-
</Link>
35+
<Button variant="outline-primary" size="lg">
36+
查看全部活动
37+
</Button>
4038
</div>
4139
</Container>
4240
);

components/Layout/Footer.tsx

Whitespace-only changes.

components/Navigator/MainNavigator.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ export const MainNavigator: FC = observer(() => (
2727
<Nav.Link href="/about">{t('about')}</Nav.Link>
2828
</Nav>
2929

30+
<Nav.Link
31+
target="_blank"
32+
href="https://github.com/freecodecamp-chengdu/freecodecamp-chengdu.github.io"
33+
>
34+
{t('source_code')}
35+
</Nav.Link>
36+
3037
<LanguageMenu />
3138
</Navbar.Collapse>
3239
</Container>

pages/activity.tsx

Whitespace-only changes.

pages/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,14 @@ const HomePage = observer(() => (
2424
一个友好的技术社区,致力于交流、学习和互助,帮助成都的开发者和技术爱好者提升个人技术能力。
2525
</p>
2626
<div className="mt-4">
27-
<Button variant="primary" size="lg" className="me-3" href="#">
27+
<Button variant="primary" size="lg" className="me-3" href="https://open-source-bazaar.feishu.cn/share/base/form/shrcnUC1stOces9sfPbHbEseep8">
2828
加入社区
2929
</Button>
3030
<Button variant="outline-primary" size="lg" href="#">
3131
查看活动
3232
</Button>
3333
</div>
3434
</Col>
35-
36-
{/* <Col xs={12} md={5} className={styles.imageSection}></Col> */}
3735
</Row>
3836

3937
<UpcomingEvents />

0 commit comments

Comments
 (0)