Skip to content

Commit 27fbd2a

Browse files
committed
feat: add sections
1 parent b4b87f0 commit 27fbd2a

File tree

1 file changed

+48
-20
lines changed
  • apps/docs/app/(home)/contributors

1 file changed

+48
-20
lines changed

apps/docs/app/(home)/contributors/page.tsx

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type { Metadata } from 'next';
22
import { Footer } from '@/components/footer';
3+
import Section from '@/components/landing/section';
34
import { Spotlight } from '@/components/landing/spotlight';
45
import ActivityStats from './activity-stats';
56
import CommitActivityChart from './commit-activity-chart';
@@ -246,35 +247,62 @@ export default async function ContributorsPage() {
246247
const data = await fetchGitHubData();
247248

248249
return (
249-
<div className="relative flex min-h-screen w-full flex-col overflow-hidden">
250+
<div className="overflow-hidden">
250251
<Spotlight transform="translateX(-60%) translateY(-50%)" />
251252

252253
{/* Hero Section */}
253-
<ContributorsHero
254-
contributors={data.stats.totalContributors}
255-
forks={data.repo.forks_count}
256-
issues={data.repo.open_issues_count}
257-
stars={data.repo.stargazers_count}
258-
/>
259-
260-
{/* Main Content */}
261-
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8">
262-
{/* Contributors Grid */}
263-
<section className="py-16 sm:py-20 lg:py-24">
254+
<Section
255+
className="overflow-hidden"
256+
customPaddings
257+
id="contributors-hero"
258+
>
259+
<ContributorsHero
260+
contributors={data.stats.totalContributors}
261+
forks={data.repo.forks_count}
262+
issues={data.repo.open_issues_count}
263+
stars={data.repo.stargazers_count}
264+
/>
265+
</Section>
266+
267+
{/* Contributors Grid Section */}
268+
<Section
269+
className="border-border border-t border-b bg-background/50"
270+
id="contributors-grid"
271+
>
272+
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8">
264273
<ContributorsGrid contributors={data.contributors} />
265-
</section>
266-
267-
{/* Commit Activity Chart */}
268-
<section className="py-16 sm:py-20 lg:py-24">
274+
</div>
275+
</Section>
276+
277+
{/* Commit Activity Section */}
278+
<Section
279+
className="border-border border-b bg-background/30"
280+
id="commit-activity"
281+
>
282+
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8">
269283
<CommitActivityChart data={data.commitActivity} />
270-
</section>
284+
</div>
285+
</Section>
271286

272-
{/* Activity Stats */}
273-
<section className="py-16 sm:py-20 lg:py-24">
287+
{/* Activity Stats Section */}
288+
<Section className="bg-background/50" id="activity-stats">
289+
<div className="mx-auto w-full max-w-7xl px-4 sm:px-6 lg:px-8">
274290
<ActivityStats languages={data.languages} stats={data.stats} />
275-
</section>
291+
</div>
292+
</Section>
293+
294+
{/* Gradient Divider */}
295+
<div className="w-full">
296+
<div className="mx-auto h-px max-w-6xl bg-gradient-to-r from-transparent via-border/30 to-transparent" />
276297
</div>
298+
299+
{/* Footer Section */}
277300
<Footer />
301+
302+
{/* Final Gradient Divider */}
303+
<div className="w-full">
304+
<div className="mx-auto h-px max-w-6xl bg-gradient-to-r from-transparent via-border/30 to-transparent" />
305+
</div>
278306
</div>
279307
);
280308
}

0 commit comments

Comments
 (0)