add a basic landing page
This commit is contained in:
16
projects/website/src/components/home/statistic.tsx
Normal file
16
projects/website/src/components/home/statistic.tsx
Normal file
@ -0,0 +1,16 @@
|
||||
"use client";
|
||||
|
||||
import CountUp from "react-countup";
|
||||
|
||||
type Statistic = {
|
||||
title: string;
|
||||
value: number;
|
||||
};
|
||||
|
||||
export default function Statistic({ title, value }: Statistic) {
|
||||
return (
|
||||
<p className="text-center">
|
||||
{title}: <CountUp end={value} duration={0.75} />
|
||||
</p>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user