Skip to content

Commit

Permalink
feat: add stat card count
Browse files Browse the repository at this point in the history
  • Loading branch information
theodorusclarence committed Jan 13, 2022
1 parent 47e6322 commit 2cc5a66
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/pages/statistics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -236,22 +236,25 @@ export default function StatisticsPage() {
'border border-gray-300 dark:border-gray-600'
)}
>
<h3>
{stat.title}{' '}
<span className='h4 text-gray-800 dark:text-gray-200'>
({stat.count ?? 0})
</span>
</h3>
<h3>{stat.title}</h3>
<div className='space-y-1'>
<p className='text-gray-800 dark:text-gray-200'>
<span className='h4 font-semibold'>
{stat.count ?? 0}
</span>{' '}
<span className='text-xs font-medium tracking-wider uppercase'>
posts
</span>
</p>
<p className='text-gray-800 dark:text-gray-200'>
<span className='h4 font-semibold'>{stat.views}</span>{' '}
<span className='text-xs font-medium uppercase'>
<span className='text-xs font-medium tracking-wider uppercase'>
views
</span>
</p>
<p className='text-gray-800 dark:text-gray-200'>
<span className='h4 font-semibold'>{stat.likes}</span>{' '}
<span className='text-xs font-medium uppercase'>
<span className='text-xs font-medium tracking-wider uppercase'>
likes
</span>
</p>
Expand Down

1 comment on commit 2cc5a66

@vercel
Copy link

@vercel vercel bot commented on 2cc5a66 Jan 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.