Skip to content

Commit

Permalink
remove open page
Browse files Browse the repository at this point in the history
  • Loading branch information
ky-zo committed Sep 5, 2024
1 parent b6da161 commit 7be1739
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions src/app/open/page.tsx
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
import Topbar from '@/components/top-bar'
import { getStatistics } from '@/drizzle/queries'
// import { getStatistics } from '@/drizzle/queries'
import { getMostVisited, getTraffic } from '@/lib/posthog'

import Authors from './authors'
import { CumulativeUsersChart, TrafficChart, UniqueUsersChart } from './charts'
import LastUpdate from './last-update'
// import { CumulativeUsersChart, UniqueUsersChart } from './charts'
import { TrafficChart } from './charts'
// import LastUpdate from './last-update'
import MostVisited from './most-visited'

export const maxDuration = 180

const Page = async () => {
const { chartData, timestamp } = await getStatistics()
// const { chartData, timestamp } = await getStatistics()
const { trafficData } = await getTraffic()
const { mostVisited } = await getMostVisited()

Expand All @@ -20,7 +21,7 @@ const Page = async () => {
<div className="w-full max-w-4xl space-y-6">
<div className="space-y-4">
<h1 className="text-start text-4xl font-bold">Open Project</h1>
<LastUpdate timestamp={timestamp} />
{/* <LastUpdate timestamp={timestamp} /> */}
<p>
Twitter Personality by Wordware is a fully Open Project, which not only the code is open source, but we&apos;re also happy to share all the critical
metrics and statistics.
Expand All @@ -32,22 +33,22 @@ const Page = async () => {
<Authors />
</div>

<div className="space-y-4">
{/* <div className="space-y-4">
<h2 className="text-start text-2xl font-bold">Cumulative users</h2>
<p>
Our project launched on Product Hunt and Twitter simultaneously. While it initially gained little traction on Product Hunt, it unexpectedly went
viral on Twitter. This chart shows the rapid user growth that followed as the app gained popularity.
</p>
<CumulativeUsersChart chartData={chartData} />
</div>
<div className="space-y-4">
</div> */}
{/* <div className="space-y-4">
<h2 className="text-start text-2xl font-bold">User growth hour-by-hour</h2>
<p>
This chart illustrates the influx of users hour-by-hour. As the project blew up, it caught us off guard and we had to throttle the service multiple
times.
</p>
<UniqueUsersChart chartData={chartData} />
</div>
</div> */}
<div className="space-y-4">
<h2 className="text-start text-2xl font-bold">Website traffic</h2>
<p>Data provided by Posthog</p>
Expand Down

0 comments on commit 7be1739

Please sign in to comment.