|
1 | 1 | import type { Metadata } from 'next'; |
2 | 2 | import { Footer } from '@/components/footer'; |
| 3 | +import Section from '@/components/landing/section'; |
3 | 4 | import { Spotlight } from '@/components/landing/spotlight'; |
4 | 5 | import ActivityStats from './activity-stats'; |
5 | 6 | import CommitActivityChart from './commit-activity-chart'; |
@@ -246,35 +247,62 @@ export default async function ContributorsPage() { |
246 | 247 | const data = await fetchGitHubData(); |
247 | 248 |
|
248 | 249 | return ( |
249 | | - <div className="relative flex min-h-screen w-full flex-col overflow-hidden"> |
| 250 | + <div className="overflow-hidden"> |
250 | 251 | <Spotlight transform="translateX(-60%) translateY(-50%)" /> |
251 | 252 |
|
252 | 253 | {/* 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"> |
264 | 273 | <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"> |
269 | 283 | <CommitActivityChart data={data.commitActivity} /> |
270 | | - </section> |
| 284 | + </div> |
| 285 | + </Section> |
271 | 286 |
|
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"> |
274 | 290 | <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" /> |
276 | 297 | </div> |
| 298 | + |
| 299 | + {/* Footer Section */} |
277 | 300 | <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> |
278 | 306 | </div> |
279 | 307 | ); |
280 | 308 | } |
0 commit comments