fix: replace statistics with real ones

This commit is contained in:
Dorian Niemiec 2024-09-07 11:28:16 +02:00
parent 37cf30272b
commit 33fe5bcb37
3 changed files with 12 additions and 10 deletions

View file

@ -8,7 +8,7 @@ const Statistics = () => {
{stats.map(({ title, count }) => ( {stats.map(({ title, count }) => (
<div key={title} className="space-y-2 text-center"> <div key={title} className="space-y-2 text-center">
<h2 className="text-3xl sm:text-4xl font-bold"> <h2 className="text-3xl sm:text-4xl font-bold">
<NumberTicker value={count} /> <NumberTicker value={count} />+
</h2> </h2>
<p className="text-xl text-muted-foreground">{title}</p> <p className="text-xl text-muted-foreground">{title}</p>
</div> </div>

View file

@ -50,6 +50,8 @@ export default function NumberTicker({
className className
)} )}
ref={ref} ref={ref}
/> >
0
</span>
); );
} }

View file

@ -48,20 +48,20 @@ export const NAVBAR = {
// About section Stats // About section Stats
export const stats = [ export const stats = [
{ {
title: "Downloads", title: "Docker pulls",
count: 69 count: 18
}, },
{ {
title: "Users", title: "GitHub stars",
count: 42 count: 8
}, },
{ {
title: "Stars", title: "Powered servers",
count: 6 count: 1
}, },
{ {
title: "Products", title: "Contributors",
count: 2 count: 1
} }
]; ];