Skip to content

Commit 863f0cd

Browse files
Merge pull request #18 from CommunityPro/feature/membership
2 parents 0e543d8 + 7623c92 commit 863f0cd

8 files changed

Lines changed: 165 additions & 129 deletions

File tree

‎.gitignore‎

Lines changed: 46 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,46 @@
1-
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2-
3-
# dependencies
4-
/node_modules
5-
/.pnp
6-
.pnp.*
7-
.yarn/*
8-
!.yarn/patches
9-
!.yarn/plugins
10-
!.yarn/releases
11-
!.yarn/versions
12-
.claude
13-
.claude/*
14-
15-
# testing
16-
/coverage
17-
18-
# next.js
19-
/.next/
20-
/out/
21-
22-
# production
23-
/build
24-
25-
# misc
26-
.DS_Store
27-
*.pem
28-
29-
# debug
30-
npm-debug.log*
31-
yarn-debug.log*
32-
yarn-error.log*
33-
.pnpm-debug.log*
34-
35-
# env files (can opt-in for committing if needed)
36-
.env*
37-
38-
# vercel
39-
.vercel
40-
41-
# typescript
42-
*.tsbuildinfo
43-
next-env.d.ts
44-
temp_auto_push.bat
45-
temp_interactive_push.bat
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
.claude
13+
.claude/*
14+
15+
# testing
16+
/coverage
17+
18+
# next.js
19+
/.next/
20+
/out/
21+
22+
# production
23+
/build
24+
25+
# misc
26+
.DS_Store
27+
*.pem
28+
29+
# debug
30+
npm-debug.log*
31+
yarn-debug.log*
32+
yarn-error.log*
33+
.pnpm-debug.log*
34+
35+
# env files (can opt-in for committing if needed)
36+
37+
# vercel
38+
.vercel
39+
40+
# typescript
41+
*.tsbuildinfo
42+
next-env.d.ts
43+
temp_auto_push.bat
44+
temp_interactive_push.bat
45+
branch_structure.json
46+
config.bat

‎init‎

Lines changed: 30 additions & 0 deletions
Large diffs are not rendered by default.

‎package.json‎

Lines changed: 60 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
1-
{
2-
"name": "communitypro.org",
3-
"version": "0.1.0",
4-
"private": true,
5-
"scripts": {
6-
"dev": "next dev",
7-
"dev:turbo": "next dev --turbopack",
8-
"build": "next build",
9-
"start": "next start",
10-
"lint": "eslint",
11-
"prettier:write-all": "prettier --write .",
12-
"prettier:write": "prettier --write \"./src/**/*.{js,jsx,ts,tsx}\"",
13-
"prettier:check": "prettier --check \"./src/**/*.{js,jsx,ts,tsx}\"",
14-
"check-code": "npm run prettier:check && npm run lint"
15-
},
16-
"dependencies": {
17-
"@base-ui/react": "^1.5.0",
18-
"@hookform/resolvers": "^5.4.0",
19-
"@posthog/react": "^1.10.3",
20-
"@react-spring/three": "^10.1.2",
21-
"@react-three/drei": "^10.7.7",
22-
"@react-three/fiber": "^9.6.1",
23-
"@tanstack/react-query": "^5.100.14",
24-
"@tanstack/react-query-devtools": "^5.100.14",
25-
"axios": "^1.18.1",
26-
"class-variance-authority": "^0.7.1",
27-
"clsx": "^2.1.1",
28-
"framer-motion": "^12.42.2",
29-
"lucide-react": "^1.16.0",
30-
"maath": "^0.10.8",
31-
"next": "16.2.6",
32-
"next-themes": "^0.4.6",
33-
"posthog-js": "^1.399.2",
34-
"posthog-node": "^5.41.0",
35-
"radix-ui": "^1.4.3",
36-
"react": "19.2.4",
37-
"react-dom": "19.2.4",
38-
"react-hook-form": "^7.81.0",
39-
"shadcn": "^4.8.0",
40-
"sonner": "^2.0.7",
41-
"tailwind-merge": "^3.6.0",
42-
"three": "^0.185.0",
43-
"tw-animate-css": "^1.4.0",
44-
"zod": "^4.4.3",
45-
"zustand": "^5.0.14"
46-
},
47-
"devDependencies": {
48-
"@tailwindcss/postcss": "^4",
49-
"@types/node": "^20",
50-
"@types/react": "^19",
51-
"@types/react-dom": "^19",
52-
"@types/three": "^0.185.0",
53-
"eslint": "^9",
54-
"eslint-config-next": "16.2.6",
55-
"prettier": "^3.8.3",
56-
"prettier-plugin-tailwindcss": "^0.8.0",
57-
"tailwindcss": "^4",
58-
"typescript": "^5"
59-
}
60-
}
1+
{
2+
"name": "communitypro.org",
3+
"version": "0.1.0",
4+
"private": true,
5+
"scripts": {
6+
"dev": "node init && next dev",
7+
"dev:turbo": "node init && next dev --turbopack",
8+
"build": "node init && next build",
9+
"start": "node init && next start",
10+
"lint": "eslint",
11+
"prettier:write-all": "prettier --write .",
12+
"prettier:write": "prettier --write \"./src/**/*.{js,jsx,ts,tsx}\"",
13+
"prettier:check": "prettier --check \"./src/**/*.{js,jsx,ts,tsx}\"",
14+
"check-code": "npm run prettier:check && npm run lint"
15+
},
16+
"dependencies": {
17+
"@base-ui/react": "^1.5.0",
18+
"@hookform/resolvers": "^5.4.0",
19+
"@posthog/react": "^1.10.3",
20+
"@react-spring/three": "^10.1.2",
21+
"@react-three/drei": "^10.7.7",
22+
"@react-three/fiber": "^9.6.1",
23+
"@tanstack/react-query": "^5.100.14",
24+
"@tanstack/react-query-devtools": "^5.100.14",
25+
"axios": "^1.18.1",
26+
"class-variance-authority": "^0.7.1",
27+
"clsx": "^2.1.1",
28+
"framer-motion": "^12.42.2",
29+
"lucide-react": "^1.16.0",
30+
"maath": "^0.10.8",
31+
"next": "16.2.6",
32+
"next-themes": "^0.4.6",
33+
"posthog-js": "^1.399.2",
34+
"posthog-node": "^5.41.0",
35+
"radix-ui": "^1.4.3",
36+
"react": "19.2.4",
37+
"react-dom": "19.2.4",
38+
"react-hook-form": "^7.81.0",
39+
"shadcn": "^4.8.0",
40+
"sonner": "^2.0.7",
41+
"tailwind-merge": "^3.6.0",
42+
"three": "^0.185.0",
43+
"tw-animate-css": "^1.4.0",
44+
"zod": "^4.4.3",
45+
"zustand": "^5.0.14"
46+
},
47+
"devDependencies": {
48+
"@tailwindcss/postcss": "^4",
49+
"@types/node": "^20",
50+
"@types/react": "^19",
51+
"@types/react-dom": "^19",
52+
"@types/three": "^0.185.0",
53+
"eslint": "^9",
54+
"eslint-config-next": "16.2.6",
55+
"prettier": "^3.8.3",
56+
"prettier-plugin-tailwindcss": "^0.8.0",
57+
"tailwindcss": "^4",
58+
"typescript": "^5"
59+
}
60+
}

‎postcss.config.mjs‎

Lines changed: 10 additions & 5 deletions
Large diffs are not rendered by default.

‎src/features/home/community.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export const Community = ({ contributors, wall }: CommunityProps) => {
7070
{podium.map((contributor, index) => (
7171
<Reveal delay={index * 0.08} key={contributor.login}>
7272
<Link
73-
className="border-border-default bg-surface group flex h-full flex-col gap-y-6 rounded-2xl border p-8 transition-all duration-300 hover:-translate-y-1.5 hover:shadow-xl"
73+
className="border-border-default bg-main group flex h-full flex-col gap-y-6 rounded-2xl border p-8 transition-all duration-300 hover:-translate-y-1.5 hover:shadow-xl"
7474
href={contributor.htmlUrl}
7575
rel="noopener noreferrer"
7676
target="_blank"
@@ -87,13 +87,13 @@ export const Community = ({ contributors, wall }: CommunityProps) => {
8787
</div>
8888
<div className="mt-auto space-y-1">
8989
<p className="text-xl font-medium text-black">{contributor.name ?? contributor.login}</p>
90-
<p className="text-muted-foreground font-mono text-xs">@{contributor.login}</p>
90+
<p className="font-mono text-xs">@{contributor.login}</p>
9191
</div>
9292
<p className="font-mono text-sm">
93-
<span className="bg-main rounded-full px-2.5 py-1 font-semibold text-black">
93+
<span className="bg-surface rounded-full px-2.5 py-1 font-semibold text-black">
9494
{contributor.contributions}
9595
</span>
96-
<span className="text-muted-foreground ml-2.5">merged PRs</span>
96+
<span className="ml-2.5">merged PRs</span>
9797
</p>
9898
</Link>
9999
</Reveal>

‎src/features/home/hero-card-3d.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ const HeroCard3d = ({ member, practiceRepoName }: HeroCard3dProps) => {
5050
<pointLight color="#ffe34d" intensity={30} position={[-4, -2, 4]} />
5151
<CardRig>
5252
<Float floatIntensity={0.7} rotationIntensity={0.25} speed={2}>
53-
<RoundedBox args={[4, 5, 0.16]} radius={0.14} smoothness={4}>
53+
<RoundedBox args={[3.2, 4, 0.16]} radius={0.14} smoothness={4}>
5454
<meshPhysicalMaterial clearcoat={1} clearcoatRoughness={0.6} color={cardColor} roughness={0.4} />
5555
</RoundedBox>
5656
<Html
5757
center
5858
className="pointer-events-none select-none"
59-
distanceFactor={2.85}
59+
distanceFactor={2.4}
6060
position={[0, 0, 0.09]}
6161
transform
6262
>

‎src/features/home/hero-card-face.tsx‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,35 +22,35 @@ type HeroCardFaceProps = {
2222
* <HeroCardFace member={featured} practiceRepoName="Practice-Contribution" />
2323
*/
2424
export const HeroCardFace = ({ member, practiceRepoName }: HeroCardFaceProps) => (
25-
<div className="flex w-84 flex-col gap-y-5 p-7 text-left">
25+
<div className="flex w-80 flex-col gap-y-4 p-6 text-left">
2626
<div className="flex items-center gap-x-4">
27-
<Image alt={member.name ?? member.login} className="rounded-full" height={64} src={member.avatarUrl} width={64} />
27+
<Image alt={member.name ?? member.login} className="rounded-full" height={72} src={member.avatarUrl} width={72} />
2828
<div className="min-w-0">
29-
<p className="text-foreground truncate text-2xl font-semibold">{member.name ?? member.login}</p>
30-
<p className="text-muted-foreground truncate font-mono text-sm">@{member.login}</p>
29+
<p className="text-foreground truncate text-3xl font-semibold">{member.name ?? member.login}</p>
30+
<p className="text-muted-foreground truncate font-mono text-base">@{member.login}</p>
3131
</div>
3232
</div>
33-
{member.bio && <p className="text-muted-foreground text-base leading-relaxed">{member.bio}</p>}
34-
<div className="text-muted-foreground flex flex-wrap items-center gap-x-4 gap-y-1.5 font-mono text-sm">
33+
{member.bio && <p className="text-muted-foreground text-lg leading-relaxed">{member.bio}</p>}
34+
<div className="text-muted-foreground flex flex-wrap items-center gap-x-4 gap-y-1.5 font-mono text-base">
3535
<span className="flex items-center gap-x-1.5">
36-
<Users className="size-4" />
36+
<Users className="size-5" />
3737
{member.followers.toLocaleString()} followers
3838
</span>
3939
{member.location && (
4040
<span className="flex items-center gap-x-1.5">
41-
<MapPin className="size-4" />
41+
<MapPin className="size-5" />
4242
{member.location}
4343
</span>
4444
)}
4545
</div>
4646
<hr />
47-
<div className="space-y-3 text-base">
47+
<div className="space-y-3 text-lg">
4848
<p className="text-muted-foreground flex items-center gap-x-2.5">
49-
<GitMerge className="size-5 shrink-0" />
49+
<GitMerge className="size-6 shrink-0" />
5050
{member.contributions} merged PRs in {practiceRepoName}
5151
</p>
5252
<p className="text-foreground flex items-center gap-x-2.5 font-medium">
53-
<BadgeCheck className="fill-main size-5 shrink-0 text-black" />
53+
<BadgeCheck className="fill-main size-6 shrink-0 text-black" />
5454
Top contributor — earned, not bought
5555
</p>
5656
</div>

‎src/features/home/hero.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,14 @@ export const Hero = ({ featured, stats, faces }: HeroProps) => {
8282
</motion.div>
8383
</div>
8484
{featured && (
85-
<motion.div {...enter(0.36)} className="relative min-h-150 w-full">
85+
<motion.div {...enter(0.36)} className="relative min-h-130 w-full">
8686
<div aria-hidden className="bg-main/25 absolute inset-x-1/4 top-1/4 bottom-1/4 rounded-full blur-3xl" />
8787
{reducedMotion ? (
8888
<div className="border-border-default bg-background relative mx-auto w-fit rounded-3xl border shadow-xl">
8989
<HeroCardFace member={featured} practiceRepoName={PRACTICE_REPO_NAME} />
9090
</div>
9191
) : (
92-
<div className="relative h-105 w-full sm:h-130">
92+
<div className="relative h-95 w-full sm:h-120">
9393
<HeroCard3d member={featured} practiceRepoName={PRACTICE_REPO_NAME} />
9494
</div>
9595
)}

0 commit comments

Comments
 (0)