Skip to content

Commit 2a8b099

Browse files
authored
Feature/hacktoberfest 2025 (#1402)
* Add new hacktoberfest badge * Add emoji option * Add emoji to example
1 parent 749c652 commit 2a8b099

File tree

5 files changed

+77
-2
lines changed

5 files changed

+77
-2
lines changed

src/components/MemberCards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default function MemberCards({ data }: { data: MemberList }) {
7070
</div>
7171

7272
<div className="membercard-header">
73-
<h3 className="membercard-name">{member.name}</h3>
73+
<h3 className="membercard-name">{`${member.emoji ? `${member.emoji} ` : ''}${member.name}`}</h3>
7474

7575
{member?.teams && member.teams.length > 0 && (
7676
<div className="membercard-teams">

src/content/members/members/_EXAMPLE.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export const _EXAMPLE: MemberObject = {
1010
//
1111
// Name - If not defined here, it will default to your display name on GitHub. If that's not defined, then your GitHub username.
1212
// name: 'Your Name',
13+
// Emoji - If you want an emoji to appear next to your name, you can add it here. Please only use standard unicode emojis - maintainers will reject PRs otherwise.
14+
// emoji: '👩‍💻',
1315
//
1416
// Main URL - If not defined here, it will default to the website displayed on your GitHub profile. If that's not defined, then a link to your GitHub profile will be displayed.
1517
// mainUrl: 'https://virtualcoffee.io',

src/content/members/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@ export type Account =
3838
export type Badge =
3939
| 'Hacktoberfest2022'
4040
| 'Hacktoberfest2023'
41-
| 'Hacktoberfest2024';
41+
| 'Hacktoberfest2024'
42+
| 'Hacktoberfest2025';
4243
export type Flare = {
4344
profileMask?: string;
4445
};
@@ -58,6 +59,7 @@ export type MemberObject = {
5859
badges?: Badge[];
5960
flare?: Flare;
6061
location?: Location;
62+
emoji?: string;
6163
};
6264

6365
export type GithubSearchUser = {
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
export function Hacktoberfest2025({
2+
ariaHidden,
3+
title = 'Hacktoberfest 2025 Contributor',
4+
}: {
5+
ariaHidden?: boolean;
6+
title?: string;
7+
}) {
8+
return (
9+
<svg
10+
width="24"
11+
height="24"
12+
viewBox="0 0 24 24"
13+
version="1.1"
14+
xmlns="http://www.w3.org/2000/svg"
15+
xmlnsXlink="http://www.w3.org/1999/xlink"
16+
xmlSpace="preserve"
17+
fillRule="evenodd"
18+
clipRule="evenodd"
19+
strokeLinejoin="round"
20+
strokeMiterlimit="2"
21+
{...(ariaHidden
22+
? {
23+
'aria-hidden': 'true',
24+
}
25+
: {
26+
role: 'img',
27+
'aria-labelledby': 'Hacktoberfest2025SvgTitle',
28+
})}
29+
>
30+
{!ariaHidden && <title id="Hacktoberfest2025SvgTitle">{title}</title>}
31+
32+
<g>
33+
<path
34+
d="M3.833,20.574c-1.054,-0 -1.73,-0.716 -1.73,-1.79l-0,-4.456c-0,-1.112 -0.757,-1.725 -1.809,-1.768c-0.067,-0.003 -0.121,-0.056 -0.121,-0.123l0,-1.609c0,-0.067 0.054,-0.12 0.121,-0.123c1.052,-0.043 1.809,-0.655 1.809,-1.748l-0,-4.455c-0,-1.074 0.676,-1.791 1.73,-1.791l1.747,0c0.068,0 0.123,0.056 0.123,0.124l0,1.364c0,0.068 -0.055,0.124 -0.123,0.124l-1.404,-0c-0.069,-0 -0.124,0.055 -0.124,0.123l0,4.551c0,1.217 -0.806,2.265 -1.873,2.525c-0.056,0.014 -0.096,0.062 -0.096,0.12l-0,0.001c-0,0.058 0.04,0.107 0.096,0.12c1.067,0.26 1.873,1.308 1.873,2.525l0,4.551c0,0.068 0.055,0.124 0.124,0.124l1.404,-0c0.068,-0 0.123,0.055 0.123,0.123l0,1.364c0,0.068 -0.055,0.124 -0.123,0.124l-1.747,-0Z"
35+
fill="#2a2a2a"
36+
fillRule="nonzero"
37+
/>
38+
<path
39+
d="M20.106,2.711c1.054,0 1.77,0.717 1.77,1.791l-0,4.455c-0,1.093 0.757,1.705 1.809,1.748c0.067,0.003 0.12,0.056 0.12,0.123l0,1.609c0,0.067 -0.053,0.12 -0.12,0.123c-1.052,0.043 -1.809,0.656 -1.809,1.768l-0,4.456c-0,1.074 -0.716,1.79 -1.77,1.79l-1.747,-0c-0.068,-0 -0.123,-0.056 -0.123,-0.124l-0,-1.364c-0,-0.068 0.055,-0.123 0.123,-0.123l1.444,-0c0.068,-0 0.124,-0.056 0.124,-0.124l-0,-4.551c-0,-1.217 0.769,-2.266 1.871,-2.525c0.057,-0.014 0.098,-0.062 0.098,-0.12c-0,-0.058 -0.041,-0.107 -0.098,-0.121c-1.102,-0.259 -1.871,-1.307 -1.871,-2.525l-0,-4.551c-0,-0.068 -0.056,-0.123 -0.124,-0.123l-1.444,-0c-0.068,-0 -0.123,-0.056 -0.123,-0.124l-0,-1.364c-0,-0.068 0.055,-0.124 0.123,-0.124l1.747,0Z"
40+
fill="#2a2a2a"
41+
fillRule="nonzero"
42+
/>
43+
</g>
44+
<g>
45+
<path
46+
d="M8.261,15.147l-2.718,1.835l1.864,0.485c3.19,0.828 6.552,0.717 9.68,-0.319l1.37,-0.456l-2.549,-1.545"
47+
fill="#2a2a2a"
48+
fillRule="nonzero"
49+
/>
50+
<path
51+
d="M11.766,5.269l-3.633,10.197l7.632,-0l-2.489,-7.329l2.231,0l-3.741,-2.868Z"
52+
fill="#2a2a2a"
53+
fillRule="nonzero"
54+
/>
55+
<rect
56+
x="7.942"
57+
y="13.872"
58+
width="8.284"
59+
height="1.593"
60+
fill="#f45d00"
61+
/>
62+
<path
63+
d="M13.359,14.345c-0,-0.612 -0.497,-1.11 -1.11,-1.11l-0.329,0c-0.613,0 -1.11,0.498 -1.11,1.11l-0,0.329c-0,0.613 0.497,1.11 1.11,1.11l0.329,0c0.613,0 1.11,-0.497 1.11,-1.11l-0,-0.329Z"
64+
fill="#f45d00"
65+
/>
66+
<rect x="11.766" y="14.191" width="0.637" height="0.637" />
67+
</g>
68+
</svg>
69+
);
70+
}

src/svg/badges/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
export * from './hacktoberfest-2022';
22
export * from './hacktoberfest-2023';
33
export * from './hacktoberfest-2024';
4+
export * from './hacktoberfest-2025';

0 commit comments

Comments
 (0)