@@ -3,7 +3,6 @@ import React from 'react';
33import styled from 'styled-components' ;
44import Layout from '@theme/Layout' ;
55import useDocusaurusContext from '@docusaurus/useDocusaurusContext' ;
6-
76import Translate , { translate } from '@docusaurus/Translate' ;
87
98import GitHubLogo from '../assets/icons/github-logo.svg' ;
@@ -41,6 +40,7 @@ const MembersContainer = styled.div`
4140 grid-template-columns: repeat(2, 1fr);
4241 }
4342` ;
43+
4444const MemberCard = styled . a `
4545 border-radius: 0.75rem;
4646 border: 1px solid #eee;
@@ -54,9 +54,12 @@ const MemberCard = styled.a`
5454 min-width: calc(108px + 2rem);
5555 cursor: pointer;
5656 height: 100%;
57+ transition: transform 0.2s ease, box-shadow 0.2s ease;
5758 &:hover {
58- color: inherit;
59+ transform: translateY(-5px);
60+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
5961 text-decoration: none;
62+ color: inherit;
6063 }
6164` ;
6265
@@ -65,13 +68,15 @@ const Avatar = styled.img`
6568 width: 108px;
6669 border-radius: 50%;
6770` ;
71+
6872const MemberName = styled . div `
6973 font-size: 1rem;
7074 font-weight: 600;
7175 margin-top: 12px;
7276 margin-bottom: -4px;
7377 line-height: 1rem;
7478` ;
79+
7580const Username = styled . div `
7681 font-size: 0.8rem;
7782 font-weight: 500;
@@ -82,6 +87,7 @@ const SectionTitle = styled.h2`
8287 margin-bottom: 24px;
8388 margin-top: 84px;
8489` ;
90+
8591const SectionSubtitle = styled . p `
8692 opacity: 0.68;
8793 margin-top: -12px;
@@ -92,6 +98,7 @@ const RepoCardsContainer = styled.div`
9298 flex-wrap: wrap;
9399 margin-left: -8px;
94100` ;
101+
95102const RepoCard = styled . a `
96103 border-radius: 0.75rem;
97104 border: 1px solid #eee;
@@ -102,13 +109,13 @@ const RepoCard = styled.a`
102109 padding: 1rem;
103110 margin: 8px;
104111 cursor: pointer;
105- transition: all 0.3s;
106-
112+ transition: transform 0.2s ease, box-shadow 0.2s ease;
107113 &:hover {
114+ transform: translateY(-5px);
115+ box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
108116 opacity: 0.98;
109117 text-decoration: none;
110118 }
111-
112119 svg {
113120 margin-right: 8px;
114121 transition: all 0.3s;
@@ -124,15 +131,18 @@ const ContributeCard = styled.div`
124131 color: white;
125132 padding: 2rem 2.4rem;
126133` ;
134+
127135const ContributeCardTitle = styled . div `
128136 font-size: 2.4rem;
129137 font-weight: 700;
130138` ;
139+
131140const ContributeCardSubtitle = styled . div `
132141 opacity: 0.78;
133142 font-size: 14px;
134143 margin-top: 1rem;
135144` ;
145+
136146const ContributeCardButton = styled . a `
137147 padding: 12px 24px;
138148 font-size: 20px;
@@ -258,8 +268,7 @@ const Team: FC = () => {
258268 < Avatar src = { member . avatarUrl } />
259269 < MemberName > { member . name } </ MemberName >
260270 < Username >
261- @
262- { member . username }
271+ @{ member . username }
263272 </ Username >
264273 </ MemberCard >
265274 </ div >
@@ -273,6 +282,7 @@ const Team: FC = () => {
273282 </ div >
274283 ) ;
275284 } ) ;
285+
276286 const repoComponents = allRepos . map ( ( repo ) => (
277287 < RepoCard
278288 className = "team-repocard"
@@ -285,13 +295,20 @@ const Team: FC = () => {
285295 { repo }
286296 </ RepoCard >
287297 ) ) ;
298+
288299 return (
289300 < Layout title = { translate ( { message : 'Team' } ) } >
290301 < Page >
291302 < 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 >
293308 { 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 >
295312 < SectionSubtitle >
296313 < Translate id = "team.webpage.content.ContributorsSub" >
297314 You can find all contributors of Apache APISIX from GitHub contribution
@@ -300,14 +317,19 @@ const Team: FC = () => {
300317 </ SectionSubtitle >
301318 < RepoCardsContainer > { repoComponents } </ RepoCardsContainer >
302319 < 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 >
304323 </ SectionTitle >
305324 < SectionSubtitle >
306325 < Translate id = "team.webpage.content.ContributorOverTimeNote" >
307326 Note: This graph contains contributors from all repos under Apache APISIX
308327 </ Translate >
309328 </ 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+ />
311333 < ContributeCard >
312334 < ContributeCardLeftSide >
313335 < ContributeCardTitle >
@@ -345,4 +367,4 @@ const Team: FC = () => {
345367 ) ;
346368} ;
347369
348- export default Team ;
370+ export default Team ;
0 commit comments