1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-11-20 22:20:51 -05:00

add real /stats page

This commit is contained in:
2022-04-25 00:04:12 -04:00
parent 07562f625e
commit 7e4f6f1443
5 changed files with 100 additions and 47 deletions

53
pages/stats.tsx Normal file
View File

@@ -0,0 +1,53 @@
import { NextSeo } from "next-seo";
import Content from "../components/Content";
import PageTitle from "../components/PageTitle";
import Link from "../components/Link";
import IFrame from "../components/IFrame";
import { FathomLogo } from "../components/Icons";
import { styled } from "../lib/styles/stitches.config";
import { fathomSiteId, siteDomain } from "../lib/config";
const PoweredBy = styled("p", {
textAlign: "center",
marginBottom: 0,
fontWeight: 475,
});
const FathomIcon = styled(FathomLogo, {
width: "1.2em",
height: "1.2em",
verticalAlign: "-0.2em",
margin: "0 0.15em",
fill: "$text",
});
const Stats = () => (
<>
<NextSeo
title="Stats"
openGraph={{
title: "Stats",
}}
/>
<PageTitle>📈 Stats</PageTitle>
<Content>
<PoweredBy>
Powered by{" "}
<Link href="https://usefathom.com/ref/ZEYG0O" fancy={false}>
<FathomIcon /> Fathom Analytics
</Link>
</PoweredBy>
<IFrame
src={`https://app.usefathom.com/share/${fathomSiteId}/${siteDomain}`}
title="Fathom Analytics dashboard"
height={600}
allowScripts
/>
</Content>
</>
);
export default Stats;