-
-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy pathindex.tsx
More file actions
162 lines (154 loc) · 4.54 KB
/
index.tsx
File metadata and controls
162 lines (154 loc) · 4.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
import React, { type ReactNode } from "react";
import Translate from "@docusaurus/Translate";
import Link from "@docusaurus/Link";
import Heading from "@theme/Heading";
import "./teamcards.css";
function WebsiteLink({ to, children }: { to: string; children?: ReactNode }) {
return (
<Link to={to}>
{children ?? (
<Translate id="team.profile.websiteLinkLabel">website</Translate>
)}
</Link>
);
}
// function CompanyLink({ to, children }: { to: string; children?: ReactNode }) {
// return (
// <Link to={to}>
// {children ?? (
// <Translate id="team.profile.CompanyLinkLabel">company</Translate>
// )}
// </Link>
// );
// }
type ProfileProps = {
className?: string;
name: string;
children: ReactNode;
githubUrl: string;
twitterUrl?: string;
linkedInUrl?: string;
};
function TeamProfileCard({
className,
name,
children,
githubUrl,
twitterUrl,
linkedInUrl
}: ProfileProps) {
return (
<div className={`team-profile-card ${className}`}>
<div className="card card--full-height">
<div className="card__header">
<div className="avatar avatar--vertical">
<img
className="avatar__photo avatar__photo--xl"
src={`${githubUrl}.png`}
alt={`${name}'s avatar`}
/>
<br />
<div className="avatar__intro">
<Heading as="h3" className="avatar__name">
{name}
</Heading>
</div>
</div>
</div>
<div className="card__body">{children}</div>
<div className="card__footer">
<div className="button-group button-group--block">
{githubUrl && (
<Link className="button button--secondary" href={githubUrl}>
GitHub
</Link>
)}
{linkedInUrl && (
<Link className="button button--secondary" href={linkedInUrl}>
LinkedIn
</Link>
)}
{twitterUrl && (
<Link className="button button--secondary" href={twitterUrl}>
Twitter
</Link>
)}
</div>
</div>
</div>
</div>
);
}
function TeamProfileCardCol(props: ProfileProps) {
return (
<TeamProfileCard {...props} className="col col--6 margin-bottom--lg" />
);
}
export function ActiveTeamRow(): JSX.Element {
return (
<div className="row">
<TeamProfileCardCol
name="Ajay Dhangar"
githubUrl="https://github.com/ajay-dhangar"
linkedInUrl="https://www.linkedin.com/in/ajay-dhangar"
twitterUrl="https://twitter.com/CodesWithAjay"
>
<Translate
id="team.profile.Sebastien Lorber.body"
values={{
website: <WebsiteLink to="https://ajay-dhangar.github.io/" />,
devto: <Link to="https://dev.to/ajaydhangar49">Dev.to</Link>,
optimumAi: <Link to="https://www.optimumai.in/community">OptimumAI</Link>,
}}
>
{
"Founder, Lead Developer and Maintainer of CodeHarborHub. We are passionate about contributing to open source and regularly write articles on our {website} and {devto}. Currently working at {optimumAi}."
}
</Translate>
</TeamProfileCardCol>
{/* other team members */}
</div>
);
}
export function HonoraryAlumniTeamRow(): JSX.Element {
return (
<div className="row">
<TeamProfileCardCol
name="Shivay"
githubUrl="https://github.com/shivay-coding"
>
<Translate id="team.profile.Shivay.body">
A passionate developer who loves to contribute to open source and
write articles on his blog.
</Translate>
</TeamProfileCardCol>
</div>
);
}
export function StudentFellowsTeamRow(): JSX.Element {
return (
<div className="row">
<TeamProfileCardCol
name="Narendra Dhangar"
githubUrl="https://github.com/Narendra-Dhangar"
>
<Translate
id="team.profile.Anshul Goyal.body"
values={{
websiteLink: (
<Link href="/">
<Translate id="team.profile.Narendra Dhangar.body.websiteLink.label">
website
</Translate>
</Link>
),
}}
>
{
"B.Tech student, open source enthusiast, and tech blogger. He loves to contribute to open source and write articles on his {websiteLink}."
}
</Translate>
</TeamProfileCardCol>
</div>
);
}