Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/config/orgStats.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export const orgStats = {
activeProjects: 34,
totalContributors: 500,
communityCount: 3800,
};
7 changes: 4 additions & 3 deletions src/pages/about.jsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -154,15 +155,15 @@ export default function About() {
</p>
<div style={styles.stats}>
<div className="text-green-600 dark:text-zinc-400 text-lg font-mono leading-7 font-bold">
<h2 style={styles.statNumber}>34+</h2>
<h2 style={styles.statNumber}>{orgStats.activeProjects}+</h2>
<p style={styles.statLabel}>Active Projects</p>
</div>
<div className="text-green-600 dark:text-zinc-400 text-lg font-mono leading-7 font-bold">
<h2 style={styles.statNumber}>500+</h2>
<h2 style={styles.statNumber}>{orgStats.totalContributors}+</h2>
<p style={styles.statLabel}>Total Contributors</p>
</div>
<div className="text-green-600 dark:text-zinc-400 text-lg font-mono leading-7 font-bold">
<h2 style={styles.statNumber}>3800+</h2>
<h2 style={styles.statNumber}>{orgStats.communityCount}+</h2>
<p style={styles.statLabel}>Community Count</p>
</div>
</div>
Expand Down
7 changes: 4 additions & 3 deletions src/pages/index.jsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down Expand Up @@ -126,15 +127,15 @@ export default function Home() {
<div className="hidden bg-[#3C982C] relative dark:text-black sm:flex flex-col md:flex-row justify-between p-4 sm:p-8 px-4 sm:px-16 text-center border border-white text-white dark:bg-yellow-400 z-20">
<div className="mb-4 sm:mb-0">
<h6 className="text-xl">Active Projects</h6>
<p className="font-semibold text-2xl">34+</p>
<p className="font-semibold text-2xl">{orgStats.activeProjects}+</p>
</div>
<div className="mb-4 sm:mb-0">
<h6 className="text-xl">Total Contributors</h6>
<p className="font-semibold text-2xl">500+</p>
<p className="font-semibold text-2xl">{orgStats.totalContributors}+</p>
</div>
<div className="mb-4 sm:mb-0">
<h6 className="text-xl">Community Count</h6>
<p className="font-semibold text-2xl">2000+</p>
<p className="font-semibold text-2xl">{orgStats.communityCount}+</p>
</div>
</div>

Expand Down