Skip to content

Commit be16380

Browse files
committed
update badge section on the main page
1 parent 7b99220 commit be16380

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

app/components/badge-section.tsx

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import { Link } from '@/components/link/link';
2+
import { BadgeMeta, BadgeRanking, BadgeType } from '@/types/badge.types';
3+
4+
import BadgeExample from '../badge/gallery/components/badge-example';
25

36
export const BadgeSection = () => {
47
return (
@@ -8,8 +11,30 @@ export const BadgeSection = () => {
811
Show off your coding achievements with a dynamic GitHub badge. Let the world see exactly where you stand among
912
millions of developers.
1013
</div>
14+
<div className="flex gap-3">
15+
<BadgeExample label="Stars Rank" />
16+
<BadgeExample
17+
label="Contribution Score"
18+
ranking={BadgeRanking.c}
19+
type={BadgeType.Score}
20+
valueBgColor="#1e3a8a"
21+
/>
22+
<BadgeExample
23+
label="Contributor Rank"
24+
ranking={BadgeRanking.c}
25+
type={BadgeType.Percentile}
26+
valueBgColor="#7f5539"
27+
/>
28+
<BadgeExample label="Stars Rank" meta={BadgeMeta.MonthlyChange} />
29+
<BadgeExample
30+
label="Total Followers"
31+
ranking={BadgeRanking.f}
32+
meta={BadgeMeta.Percentile}
33+
valueBgColor="#1e3a8a"
34+
/>
35+
</div>
1136
<div>
12-
<Link href="/badge/gallery">Create a badge</Link>
37+
<Link href="/badge/gallery">View Badge Gallery</Link>
1338
</div>
1439
</div>
1540
);

0 commit comments

Comments
 (0)