@@ -3,7 +3,6 @@ import React from 'react';
3
3
import styled from 'styled-components' ;
4
4
import Layout from '@theme/Layout' ;
5
5
import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
6
-
7
6
import Translate , { translate } from '@docusaurus/Translate' ;
8
7
9
8
import GitHubLogo from '../assets/icons/github-logo.svg' ;
@@ -41,6 +40,7 @@ const MembersContainer = styled.div`
41
40
grid-template-columns: repeat(2, 1fr);
42
41
}
43
42
` ;
43
+
44
44
const MemberCard = styled . a `
45
45
border-radius: 0.75rem;
46
46
border: 1px solid #eee;
@@ -54,9 +54,12 @@ const MemberCard = styled.a`
54
54
min-width: calc(108px + 2rem);
55
55
cursor: pointer;
56
56
height: 100%;
57
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
57
58
&:hover {
58
- color: inherit;
59
+ transform: translateY(-5px);
60
+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
59
61
text-decoration: none;
62
+ color: inherit;
60
63
}
61
64
` ;
62
65
@@ -65,13 +68,15 @@ const Avatar = styled.img`
65
68
width: 108px;
66
69
border-radius: 50%;
67
70
` ;
71
+
68
72
const MemberName = styled . div `
69
73
font-size: 1rem;
70
74
font-weight: 600;
71
75
margin-top: 12px;
72
76
margin-bottom: -4px;
73
77
line-height: 1rem;
74
78
` ;
79
+
75
80
const Username = styled . div `
76
81
font-size: 0.8rem;
77
82
font-weight: 500;
@@ -82,6 +87,7 @@ const SectionTitle = styled.h2`
82
87
margin-bottom: 24px;
83
88
margin-top: 84px;
84
89
` ;
90
+
85
91
const SectionSubtitle = styled . p `
86
92
opacity: 0.68;
87
93
margin-top: -12px;
@@ -92,6 +98,7 @@ const RepoCardsContainer = styled.div`
92
98
flex-wrap: wrap;
93
99
margin-left: -8px;
94
100
` ;
101
+
95
102
const RepoCard = styled . a `
96
103
border-radius: 0.75rem;
97
104
border: 1px solid #eee;
@@ -102,13 +109,13 @@ const RepoCard = styled.a`
102
109
padding: 1rem;
103
110
margin: 8px;
104
111
cursor: pointer;
105
- transition: all 0.3s;
106
-
112
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
107
113
&:hover {
114
+ transform: translateY(-5px);
115
+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
108
116
opacity: 0.98;
109
117
text-decoration: none;
110
118
}
111
-
112
119
svg {
113
120
margin-right: 8px;
114
121
transition: all 0.3s;
@@ -124,15 +131,18 @@ const ContributeCard = styled.div`
124
131
color: white;
125
132
padding: 2rem 2.4rem;
126
133
` ;
134
+
127
135
const ContributeCardTitle = styled . div `
128
136
font-size: 2.4rem;
129
137
font-weight: 700;
130
138
` ;
139
+
131
140
const ContributeCardSubtitle = styled . div `
132
141
opacity: 0.78;
133
142
font-size: 14px;
134
143
margin-top: 1rem;
135
144
` ;
145
+
136
146
const ContributeCardButton = styled . a `
137
147
padding: 12px 24px;
138
148
font-size: 20px;
@@ -258,8 +268,7 @@ const Team: FC = () => {
258
268
< Avatar src = { member . avatarUrl } />
259
269
< MemberName > { member . name } </ MemberName >
260
270
< Username >
261
- @
262
- { member . username }
271
+ @{ member . username }
263
272
</ Username >
264
273
</ MemberCard >
265
274
</ div >
@@ -273,6 +282,7 @@ const Team: FC = () => {
273
282
</ div >
274
283
) ;
275
284
} ) ;
285
+
276
286
const repoComponents = allRepos . map ( ( repo ) => (
277
287
< RepoCard
278
288
className = "team-repocard"
@@ -285,13 +295,20 @@ const Team: FC = () => {
285
295
{ repo }
286
296
</ RepoCard >
287
297
) ) ;
298
+
288
299
return (
289
300
< Layout title = { translate ( { message : 'Team' } ) } >
290
301
< Page >
291
302
< PageTitle > < Translate id = "team.webpage.title.Team" > Team</ Translate > </ PageTitle >
292
- < PageSubtitle > < Translate id = "team.webpage.title.DocumentSubtitle" > We love open source.</ Translate > </ PageSubtitle >
303
+ < PageSubtitle >
304
+ < Translate id = "team.webpage.title.DocumentSubtitle" >
305
+ We love open source.
306
+ </ Translate >
307
+ </ PageSubtitle >
293
308
{ memberSections }
294
- < SectionTitle > < Translate id = "team.webpage.content.Contributors" > Contributors</ Translate > </ SectionTitle >
309
+ < SectionTitle >
310
+ < Translate id = "team.webpage.content.Contributors" > Contributors</ Translate >
311
+ </ SectionTitle >
295
312
< SectionSubtitle >
296
313
< Translate id = "team.webpage.content.ContributorsSub" >
297
314
You can find all contributors of Apache APISIX from GitHub contribution
@@ -300,14 +317,19 @@ const Team: FC = () => {
300
317
</ SectionSubtitle >
301
318
< RepoCardsContainer > { repoComponents } </ RepoCardsContainer >
302
319
< SectionTitle >
303
- < Translate id = "team.webpage.content.ContributorOverTime" > Contributor Over Time</ Translate >
320
+ < Translate id = "team.webpage.content.ContributorOverTime" >
321
+ Contributor Over Time
322
+ </ Translate >
304
323
</ SectionTitle >
305
324
< SectionSubtitle >
306
325
< Translate id = "team.webpage.content.ContributorOverTimeNote" >
307
326
Note: This graph contains contributors from all repos under Apache APISIX
308
327
</ Translate >
309
328
</ SectionSubtitle >
310
- < img src = "https://contributor-graph-api.apiseven.com/contributors-svg?repo=apache/apisix& merge = true " alt = "Contributor Over Time" />
329
+ < img
330
+ src = "https://contributor-graph-api.apiseven.com/contributors-svg?repo=apache/apisix& merge = true "
331
+ alt = "Contributor Over Time"
332
+ />
311
333
< ContributeCard >
312
334
< ContributeCardLeftSide >
313
335
< ContributeCardTitle >
@@ -345,4 +367,4 @@ const Team: FC = () => {
345
367
) ;
346
368
} ;
347
369
348
- export default Team ;
370
+ export default Team ;
0 commit comments