Skip to content

Commit 314a95f

Browse files
committed
docs: 添加贡献者感谢部分\n\n- 在网站和README中添加贡献者感谢部分\n- 感谢@mazp99提出的代码块复制功能建议\n- 完善中英文文档
1 parent dcf9b5f commit 314a95f

File tree

6 files changed

+122
-0
lines changed

6 files changed

+122
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ MIT License
9696

9797
本项目基于 [TypeScript UserScript Template](https://github.com/JSREI/typescript-userscript-template) 开发,感谢该模板提供的基础开发框架。
9898

99+
## 👨‍💻 贡献者
100+
101+
感谢以下用户报告问题与提出建议,帮助我们不断完善产品:
102+
103+
- [@mazp99](https://github.com/mazp99) - 提出代码块复制功能建议
99104

100105
## 💬 逆向技术交流群
101106

README_EN.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ MIT License
9696

9797
This project is based on [TypeScript UserScript Template](https://github.com/JSREI/typescript-userscript-template), thanks to the template for providing the basic development framework.
9898

99+
## 👨‍💻 Contributors
100+
101+
Thanks to the following users for reporting issues and suggesting improvements, helping us to continuously enhance the product:
102+
103+
- [@mazp99](https://github.com/mazp99) - Suggested the code block copy feature
104+
99105
## 💬 Reverse Engineering Community
100106

101107
### WeChat

office-website/public/locales/en/translation.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@
7171
"viewSource": "View Source Code"
7272
}
7373
},
74+
"contributors": {
75+
"title": "Contributors & Thanks",
76+
"description": "Thanks to the following users for reporting issues and suggesting improvements, helping us to continuously enhance our product:",
77+
"list": [
78+
{
79+
"name": "mazp99",
80+
"profile": "https://github.com/mazp99",
81+
"contribution": "Suggested the code block copy feature"
82+
}
83+
]
84+
},
7485
"community": {
7586
"title": "Reverse Engineering Community",
7687
"subtitle": "Join Our Community",

office-website/public/locales/zh/translation.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@
7171
"viewSource": "查看源码"
7272
}
7373
},
74+
"contributors": {
75+
"title": "贡献者与感谢",
76+
"description": "感谢以下用户报告问题与建议改进,帮助我们不断完善产品:",
77+
"list": [
78+
{
79+
"name": "mazp99",
80+
"profile": "https://github.com/mazp99",
81+
"contribution": "提出代码块复制功能建议"
82+
}
83+
]
84+
},
7485
"community": {
7586
"title": "逆向技术交流群",
7687
"subtitle": "加入我们的社区",

office-website/src/pages/Home/Home.module.css

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,4 +724,74 @@
724724
padding: 10px 12px;
725725
font-size: 13px;
726726
}
727+
}
728+
729+
/* 贡献者部分 */
730+
.contributors {
731+
padding: var(--section-spacing) 0;
732+
background: var(--bg-white);
733+
position: relative;
734+
}
735+
736+
.contributorsGrid {
737+
display: flex;
738+
flex-wrap: wrap;
739+
justify-content: center;
740+
gap: var(--space-6);
741+
margin-top: var(--space-6);
742+
max-width: var(--container-width);
743+
margin-left: auto;
744+
margin-right: auto;
745+
padding: 0 var(--space-4);
746+
}
747+
748+
.contributorItem {
749+
background-color: var(--bg-light);
750+
border-radius: var(--radius-lg);
751+
padding: var(--space-5);
752+
text-align: center;
753+
border: 1px solid var(--border-color);
754+
transition: all 0.3s ease;
755+
width: 280px;
756+
}
757+
758+
.contributorItem:hover {
759+
transform: translateY(-4px);
760+
box-shadow: var(--shadow-hover);
761+
border-color: var(--primary);
762+
}
763+
764+
.contributorItem h3 {
765+
color: var(--text-primary);
766+
font-size: 1.4rem;
767+
font-weight: 600;
768+
margin-bottom: var(--space-3);
769+
}
770+
771+
.contributorItem h3 a {
772+
color: var(--primary);
773+
text-decoration: none;
774+
transition: color 0.2s ease;
775+
}
776+
777+
.contributorItem h3 a:hover {
778+
color: var(--primary-dark);
779+
text-decoration: underline;
780+
}
781+
782+
.contributorItem p {
783+
color: var(--text-secondary);
784+
margin-bottom: 0;
785+
line-height: 1.5;
786+
}
787+
788+
@media (max-width: 768px) {
789+
.contributorsGrid {
790+
gap: var(--space-4);
791+
}
792+
793+
.contributorItem {
794+
width: 100%;
795+
max-width: 400px;
796+
}
727797
}

office-website/src/pages/Home/index.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,25 @@ const Home: React.FC = () => {
190190
</div>
191191
</section>
192192

193+
<section className={styles.contributors} id="contributors">
194+
<div className="container">
195+
<h2 className="text-center">{t('contributors.title')}</h2>
196+
<p className="text-center">{t('contributors.description')}</p>
197+
<div className={styles.contributorsGrid}>
198+
{(t('contributors.list', { returnObjects: true }) as Array<{name: string; profile: string; contribution: string}>).map((contributor, index) => (
199+
<div className={styles.contributorItem} key={index}>
200+
<h3>
201+
<a href={contributor.profile} target="_blank" rel="noopener noreferrer">
202+
{contributor.name}
203+
</a>
204+
</h3>
205+
<p>{contributor.contribution}</p>
206+
</div>
207+
))}
208+
</div>
209+
</div>
210+
</section>
211+
193212
<section className={styles.community} id="community">
194213
<div className="container">
195214
<h2 className="text-center">{t('community.title')}</h2>

0 commit comments

Comments
 (0)