-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
344 additions
and
1,276 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import { Box, Flex, Progress } from "@chakra-ui/react"; | ||
|
||
interface ProgressMarkProps { | ||
value: number; | ||
} | ||
|
||
function ProgressMark({ value }: ProgressMarkProps) { | ||
const isMax = value >= 30; | ||
|
||
return ( | ||
<Box fontSize="12px"> | ||
{!isMax ? ( | ||
<Flex w="100%" color="var(--gray-500)"> | ||
<Box w="22px" ml="calc(33% - 22px)" h="100%"> | ||
경고 | ||
</Box> | ||
<Box ml="auto">추가 점수</Box> | ||
</Flex> | ||
) : ( | ||
<Box textAlign="end" color="var(--color-mint)"> | ||
<i className="fa-light fa-hundred-points fa-xl" /> | ||
</Box> | ||
)} | ||
|
||
<Flex w="100%" h="12px"> | ||
<Box | ||
ml="calc(33% - 0.75px)" | ||
h="100%" | ||
borderLeft="1.5px solid var(--gray-200)" | ||
w="1px" | ||
></Box> | ||
<Box ml="auto" h="100%" borderRight="1.5px solid var(--gray-200)" w="1px"></Box> | ||
</Flex> | ||
<Progress value={(value * 100) / 30} hasStripe={true} colorScheme="mintTheme" /> | ||
|
||
<Flex mt="4px" color="var(--gray-500)"> | ||
<Box>0</Box> | ||
<Box ml="calc(33% - 22px)">10</Box> | ||
<Box ml="auto">30</Box> | ||
</Flex> | ||
</Box> | ||
); | ||
} | ||
|
||
export default ProgressMark; |
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
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
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
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
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
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
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
Oops, something went wrong.