Skip to content

Commit 81e1f52

Browse files
committed
Merge branch 'main' of github.com:gitranks/gitranks-ui
2 parents f0d90f7 + 593cd70 commit 81e1f52

File tree

4 files changed

+64
-6
lines changed

4 files changed

+64
-6
lines changed

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# GitRanks UI
1+
# GitRanks
22

33
[gitranks.com](https://gitranks.com/)
44

@@ -8,14 +8,23 @@ GitRanks turns public GitHub activity into an easy "developer scoreboard". See h
88

99
https://www.youtube.com/watch?v=CayzB5VQyPY
1010

11-
<img width="480" alt="1-profile-analytics" src="https://github.com/user-attachments/assets/6a8d1f48-14d0-4f92-a508-e4ece286753e" />
12-
<img width="480" alt="2-global-rankings" src="https://github.com/user-attachments/assets/496c3c06-aad6-4ea6-b64c-ba43881c3cad" />
13-
<img width="480" alt="3-country-rankings" src="https://github.com/user-attachments/assets/775cf261-7f4c-485a-8229-acdef202aa9a" />
14-
<img width="480" alt="4-chat-integrations" src="https://github.com/user-attachments/assets/9bb090b9-c5dc-4c4a-a4e3-b0094e374d73" />
11+
<img width="410" alt="1-profile-analytics" src="https://github.com/user-attachments/assets/6a8d1f48-14d0-4f92-a508-e4ece286753e" />
1512

13+
<img width="410" alt="2-global-rankings" src="https://github.com/user-attachments/assets/496c3c06-aad6-4ea6-b64c-ba43881c3cad" />
1614

15+
<img width="410" alt="3-country-rankings" src="https://github.com/user-attachments/assets/775cf261-7f4c-485a-8229-acdef202aa9a" />
1716

17+
<img width="410" alt="4-chat-integrations" src="https://github.com/user-attachments/assets/9bb090b9-c5dc-4c4a-a4e3-b0094e374d73" />
1818

19+
## 🥇 Profile Badges
20+
21+
<img src="https://gitranks.com/badges/s__global__position__none__rounded.svg" />
22+
<img src="https://gitranks.com/badges/c__global__score__none__rounded_vb-1e3a8a.svg" />
23+
<img src="https://gitranks.com/badges/c__global__percentile__none__rounded_vb-7f5539.svg" />
24+
<img src="https://gitranks.com/badges/s__global__position__monthly-change__rounded.svg" />
25+
<img src="https://gitranks.com/badges/f__global__position__percentile__rounded_vb-1e3a8a.svg" />
26+
27+
[View Badge Gallery](https://gitranks.com/badge/gallery)
1928

2029
## ✨ Key Features
2130

app/components/badge-section.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const BadgeSection = () => {
1313
Show off your coding achievements with a dynamic GitHub badge. Let the world see exactly where you stand among
1414
millions of developers.
1515
</div>
16-
<div className="flex gap-3">
16+
<div className="flex flex-wrap gap-3">
1717
<BadgeExample label={RANK_NAME.s} />
1818
<BadgeExample
1919
label="Contribution Score"

app/components/ph-announcement.tsx

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
import { FC } from 'react';
2+
3+
import { cn } from '@/lib/utils';
4+
5+
const CLIP_PATH =
6+
'polygon(74.8% 41.9%, 97.2% 73.2%, 100% 34.9%, 92.5% 0.4%, 87.5% 0%, 75% 28.6%, 58.5% 54.6%, 50.1% 56.8%, 46.9% 44%, 48.3% 17.4%, 24.7% 53.9%, 0% 27.9%, 11.9% 74.2%, 24.9% 54.1%, 68.6% 100%, 74.8% 41.9%)';
7+
8+
const BgHelper: FC<{ className?: string }> = ({ className }) => {
9+
return (
10+
<div aria-hidden="true" className={cn(`absolute top-1/2 -z-10 -translate-y-1/2 transform-gpu blur-2xl`, className)}>
11+
<div
12+
style={{ clipPath: CLIP_PATH }}
13+
className="aspect-577/310 w-144.25 bg-linear-to-r from-[#ff80b5] to-[#9089fc] opacity-40"
14+
/>
15+
</div>
16+
);
17+
};
18+
19+
export const PhAnnouncement = () => {
20+
return (
21+
<div className="relative isolate flex items-center justify-center flex-wrap gap-x-4 gap-y-1 overflow-hidden bg-gray-50 dark:bg-gray-800/50 px-2 py-2.5 after:pointer-events-none after:absolute after:inset-x-0 after:bottom-0 after:h-px after:bg-white/10">
22+
<BgHelper className="left-[max(-7rem,calc(50%-52rem))]" />
23+
<BgHelper className="left-[max(45rem,calc(50%+8rem))]" />
24+
<p className="text-sm/6 text-gray-900 dark:text-gray-100">
25+
<strong className="font-semibold">We are live on Product Hunt today - check it out</strong>
26+
</p>
27+
<a
28+
href="https://www.producthunt.com/products/gitranks?embed=true&utm_source=badge-featured&utm_medium=badge&utm_source=badge-gitranks"
29+
target="_blank"
30+
>
31+
<img
32+
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=988220&theme=light&t=1755193761436"
33+
alt="GitRanks - GitHub&#0032;Profile&#0032;Analytics&#0032;&#0038;&#0032;Rankings | Product Hunt"
34+
style={{ height: '36px' }}
35+
className="dark:hidden"
36+
/>
37+
<img
38+
src="https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=988220&theme=dark&t=1755193761436"
39+
alt="GitRanks - GitHub&#0032;Profile&#0032;Analytics&#0032;&#0038;&#0032;Rankings | Product Hunt"
40+
style={{ height: '36px' }}
41+
className="hidden dark:block"
42+
/>
43+
</a>
44+
</div>
45+
);
46+
};

app/page.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ import { CountryRankingSection } from './components/country-ranking-section';
66
import { GlobalRankingSection } from './components/global-ranking-section';
77
import InsightsCarousel from './components/insights-carousel';
88
import { MessengerIntegrationSection } from './components/messenger-integration-section';
9+
import { PhAnnouncement } from './components/ph-announcement';
910
import { SearchProfile } from './components/search-profiile';
1011

1112
export default function Home() {
1213
return (
1314
<>
15+
<PhAnnouncement />
1416
<div className="border-b bg-linear-45 from-background to-80% to-landing-page-gradient-start-color">
1517
<Header />
1618
<Page className="p-0">
@@ -31,6 +33,7 @@ export default function Home() {
3133
</div>
3234
</Page>
3335
</div>
36+
3437
<Page className="gap-4">
3538
<GlobalRankingSection />
3639
<CountryRankingSection />

0 commit comments

Comments
 (0)