fake metrics

This commit is contained in:
m5r 2021-08-29 03:56:26 +08:00
parent 4bf7b108f3
commit 39e0b8ca03
2 changed files with 86 additions and 69 deletions

View File

@ -21,9 +21,19 @@ const OpenMetrics: BlitzPage = () => {
<Header /> <Header />
<main className="flex-grow"> <main className="flex-grow">
<section> <section className="max-w-6xl mx-auto px-4 sm:px-6">
<div className="max-w-6xl mx-auto px-4 sm:px-6"> <div className="pt-32 pb-10 md:pt-34 md:pb-16">
<div className="pt-32 pb-10 md:pt-34 md:pb-16">Open Metrics</div> <div className="max-w-5xl mx-auto">
<h1 className="h1 mb-16 font-extrabold font-mackinac">Open Metrics</h1>
</div>
<div className="max-w-3xl mx-auto text-lg xl:text-xl flow-root">
<dl className="mt-5 grid grid-cols-1 gap-5 sm:grid-cols-3">
<Card title="Phone Numbers Registered" value={41} />
<Card title="SMS Exchanged" value={4929} />
<Card title="Minutes on Call" value={1612} />
</dl>
</div>
</div> </div>
</section> </section>
</main> </main>
@ -33,6 +43,15 @@ const OpenMetrics: BlitzPage = () => {
); );
}; };
function Card({ title, value }: any) {
return (
<div className="px-4 py-5 bg-white shadow rounded-lg overflow-hidden sm:p-6">
<dt className="text-sm font-medium text-gray-500 truncate">{title}</dt>
<dd className="mt-1 text-3xl font-semibold text-gray-900">{value}</dd>
</div>
);
}
OpenMetrics.suppressFirstRenderFlicker = true; OpenMetrics.suppressFirstRenderFlicker = true;
export default OpenMetrics; export default OpenMetrics;

View File

@ -23,14 +23,13 @@ const Roadmap: BlitzPage = () => {
<Header /> <Header />
<main className="flex-grow"> <main className="flex-grow">
<section> <section className="max-w-6xl mx-auto px-4 sm:px-6">
<div className="max-w-6xl mx-auto px-4 sm:px-6">
<div className="pt-32 pb-10 md:pt-34 md:pb-16"> <div className="pt-32 pb-10 md:pt-34 md:pb-16">
<div className="max-w-5xl mx-auto"> <div className="max-w-5xl mx-auto">
<h1 className="h1 mb-16 font-extrabold font-mackinac">(Rough) Roadmap</h1> <h1 className="h1 mb-16 font-extrabold font-mackinac">(Rough) Roadmap</h1>
</div> </div>
<div className="max-w-2xl mx-auto text-lg xl:text-xl flow-root"> <div className="max-w-3xl mx-auto text-lg xl:text-xl flow-root">
<ul role="list" className="-mb-8"> <ul role="list" className="-mb-8">
{roadmap.map((feature, index) => { {roadmap.map((feature, index) => {
const isDone = feature.status === "done"; const isDone = feature.status === "done";
@ -96,7 +95,6 @@ const Roadmap: BlitzPage = () => {
</ul> </ul>
</div> </div>
</div> </div>
</div>
</section> </section>
</main> </main>
</section> </section>