-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add organization statistics (real final)
- Loading branch information
1 parent
1ed4ebc
commit 943612e
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
'use client' | ||
|
||
import { Text } from '@chakra-ui/react' | ||
import { Flex, Heading } from '@chakra-ui/react' | ||
import { Statistics } from '@/app/components/common/Statistics'; | ||
import { getOrganization } from '@/utils/api'; | ||
|
||
export default async () => { | ||
const org = await getOrganization() | ||
|
||
return ( | ||
<main> | ||
<Text>무슨 내용을 넣어야 좋을까요?</Text> | ||
<Heading size='lg'>숭실대학교의 문제해결 통계</Heading> | ||
|
||
<Flex flexWrap='wrap' direction={{ base: 'column', md: 'row' }} gap={4} mt={6}> | ||
<Statistics text="구성원 수 (BOJ)" value={org.bojUserCount} unit='명' diff={1234} /> | ||
<Statistics text="구성원 수 (solved.ac)" value={org.userCount} unit='명' /> | ||
<Statistics text="푼 문제" value={org.solvedCount} unit='문제' /> | ||
<Statistics text="기여한 문제" value={org.voteCount} unit='문제' /> | ||
<Statistics text="AC Rating" value={org.rating} /> | ||
</Flex> | ||
</main> | ||
); | ||
} |