From 15038e8ed661db452717130cd735555ea17ec095 Mon Sep 17 00:00:00 2001 From: SWADHIN300 Date: Wed, 25 Feb 2026 04:03:40 +0530 Subject: [PATCH] solve the statistics count of active project and contributors --- src/config/orgStats.ts | 5 +++++ src/pages/about.jsx | 7 ++++--- src/pages/index.jsx | 7 ++++--- 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 src/config/orgStats.ts diff --git a/src/config/orgStats.ts b/src/config/orgStats.ts new file mode 100644 index 00000000..bcf8eb06 --- /dev/null +++ b/src/config/orgStats.ts @@ -0,0 +1,5 @@ +export const orgStats = { + activeProjects: 34, + totalContributors: 500, + communityCount: 3800, +}; diff --git a/src/pages/about.jsx b/src/pages/about.jsx index 88c1768c..a3ad1310 100644 --- a/src/pages/about.jsx +++ b/src/pages/about.jsx @@ -1,4 +1,5 @@ import { useState, useEffect } from 'react'; +import { orgStats } from '../config/orgStats'; import Image from 'next/image'; import Head from 'next/head'; import { Container } from '@/components/Container'; @@ -154,15 +155,15 @@ export default function About() {

-

34+

+

{orgStats.activeProjects}+

Active Projects

-

500+

+

{orgStats.totalContributors}+

Total Contributors

-

3800+

+

{orgStats.communityCount}+

Community Count

diff --git a/src/pages/index.jsx b/src/pages/index.jsx index c111a6f8..f8292fad 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -1,4 +1,5 @@ import Head from 'next/head' +import { orgStats } from '../config/orgStats' import Link from 'next/link' import Image from 'next/image' import { useState, useEffect } from 'react' @@ -126,15 +127,15 @@ export default function Home() {
Active Projects
-

34+

+

{orgStats.activeProjects}+

Total Contributors
-

500+

+

{orgStats.totalContributors}+

Community Count
-

2000+

+

{orgStats.communityCount}+