Skip to content

Commit de38e03

Browse files
committed
fix: 贡献者部分调整
fix: footer部分调整
1 parent 3a6120d commit de38e03

File tree

6 files changed

+72
-48
lines changed

6 files changed

+72
-48
lines changed

components/footer/index.tsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ import publicLogo from "@/public/public_logo.png";
44
import styles from "./styles.module.scss";
55
import cName from "classnames";
66
import {isEmpty} from "lodash";
7+
import logoText from "@/public/logo-text.svg";
78
import QRCode from "@/public/code.jpg";
9+
import logoIcon from "@/public/logo-icon.svg";
810
interface ILink {
911
label: string;
1012
link?: string;
@@ -26,7 +28,7 @@ const Footer: FC<IFooterProps> = ({}) => {
2628
const data = {
2729
"title": "IoTSharp",
2830
"qr_code": "",
29-
"copy_right": "Copyright © 2023 The IoTSharp Authors",
31+
"copy_right": "© 2018 - 2023 The IoTSharp Authors. All rights reserved.",
3032
"site_number": "",
3133
"public_number": "冀ICP备18039206号",
3234
"qr_code_image": {
@@ -120,7 +122,10 @@ const Footer: FC<IFooterProps> = ({}) => {
120122
return (
121123
<div className={styles.footer}>
122124
<div className={styles.topArea}>
123-
<h1 className={styles.footerTitle}>{title}</h1>
125+
<h1 className={styles.footerTitle}>
126+
<Image src={logoIcon} alt="" width={35} height={35}/>
127+
<Image src={logoText} alt="" width={135} height={40}/>
128+
</h1>
124129
<div className={styles.linkListArea}>
125130
{footerData?.linkList?.map((item, index) => {
126131
return (

components/footer/styles.module.scss

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@
1111
flex-wrap: wrap;
1212

1313
.footerTitle {
14-
font-weight: 500;
15-
font-size: 2.25rem;
16-
line-height: 2.25rem;
17-
color: #ffffff;
1814
margin: 0;
15+
display: flex;
16+
17+
img:nth-of-type(1) {
18+
margin-right: 10px;
19+
}
1920
}
2021

2122
.linkListArea {
Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
11
import {FC} from "react";
2-
import {Col, Row} from '@douyinfe/semi-ui';
2+
import {Row, Col, Descriptions} from '@douyinfe/semi-ui';
33
import styles from "./styles.module.scss";
4+
import Image from "next/image";
5+
import ContributorForQQ from '@/public/contributor_1.png';
6+
import ContributorForWechat from '@/public/contributor_2.png';
47

58
export interface IContributorsProps {
69
}
710

811
const Contributors: FC<IContributorsProps> = ({}) => {
912
return (
1013
<div className={styles.contributorsContainer}>
11-
<Row className={styles.row} type="flex" align="middle">
12-
<Col span={7}>
13-
<div className={styles.title}>参与建设</div>
14-
<div className={styles.description}>很多小伙伴在和我们一同建设 IoTSharp,如果你有兴趣,欢迎加入我们 。</div>
14+
<p className={styles.title}>与用户共同成长</p>
15+
<p className={styles.subTitle}>IoTSharp 重视我们的用户,加入并助力我们不断完善</p>
16+
<Descriptions align="center" size="large" row>
17+
<Descriptions.Item itemKey="Stars">795+</Descriptions.Item>
18+
<Descriptions.Item itemKey="Fork">1100+</Descriptions.Item>
19+
<Descriptions.Item itemKey="Download">1000+</Descriptions.Item>
20+
<Descriptions.Item itemKey="Contributors">30+</Descriptions.Item>
21+
</Descriptions>
22+
<Row gutter={80}>
23+
<Col xs={24} sm={24} md={12} lg={12} xl={12}>
24+
<Image src={ContributorForQQ} alt="" width={90} height={90}/>
1525
</Col>
16-
<Col span={10} offset={2}>
17-
<a href="https://github.com/iotsharp/iotsharp/graphs/contributors">
18-
<img src="https://contrib.rocks/image?repo=iotsharp/iotsharp" />
19-
</a>
20-
<a href="https://github.com/iotsharp/ClientAppWithVue3/graphs/contributors">
21-
<img src="https://contrib.rocks/image?repo=iotsharp/ClientAppWithVue3" />
22-
</a>
26+
<Col xs={24} sm={24} md={12} lg={12} xl={12}>
27+
<Image src={ContributorForWechat} alt="" width={90} height={90}/>
2328
</Col>
2429
</Row>
2530
</div>
2631
);
2732
};
2833

29-
export default Contributors;
34+
export default Contributors;
Lines changed: 42 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,53 @@
11
.contributorsContainer {
22
display: flex;
3-
-ms-flex-pack: justify;
43
justify-content: space-between;
54
align-items: center;
6-
width: 60%;
7-
margin-bottom: 5rem;
8-
padding-top: 3.125rem;
9-
padding-bottom: 3.125rem;
10-
background: var(--yellow-color);
11-
border-radius: 0 126px 126px 0;
12-
position: relative;
13-
&:before {
14-
display: block;
15-
content: "";
16-
height: 100%;
17-
width: 800px;
18-
position: absolute;
19-
left: -800px;
20-
top: 0;
21-
background: var(--yellow-color);
22-
}
23-
.row {
24-
margin-left: -100px;
25-
}
5+
flex-direction: column;
6+
width: 100%;
7+
padding: 10rem 8rem;
268
.title {
27-
font-size: 1.25rem;
28-
font-weight: 700;
29-
line-height: 3.5rem;
30-
letter-spacing: .5px;
9+
font-size: 2rem;
10+
color: var(--semi-color-text-0);
11+
font-weight: 600;
12+
margin-top: 0;
13+
text-align: center;
14+
vertical-align: middle;
15+
}
16+
.subTitle {
17+
font-size: 1.125rem;
18+
color: var(--semi-color-text-0);
19+
text-align: left;
20+
vertical-align: top;
21+
font-weight: 400;
22+
margin-bottom: 3rem;
23+
margin-top: 0;
3124
}
3225
img {
3326
width: 100%;
27+
height: 23rem;
28+
border-radius: 8px;
3429
}
35-
.description {
36-
font-size: 1rem;
37-
line-height: 1.56rem;
38-
letter-spacing: .15px;
30+
:global {
31+
.semi-descriptions {
32+
display: flex;
33+
width: 100%;
34+
align-items: center;
35+
padding: 0 20px;
36+
}
37+
.semi-row {
38+
width: 100%;
39+
margin-top: 3rem;
40+
}
41+
.semi-descriptions table {
42+
width: 100%;
43+
padding: 20px;
44+
}
45+
.semi-descriptions-double tbody {
46+
width: 100%;
47+
justify-content: space-between;
48+
}
49+
.semi-descriptions-value {
50+
color: rgb(var(--semi-purple-5));
51+
}
3952
}
4053
}

public/contributor_1.png

380 KB
Loading

public/contributor_2.png

531 KB
Loading

0 commit comments

Comments
 (0)