Skip to content

124 나라의 숫자 정답 | | codeisneverodd #129

Closed
@codeisneverodd

Description

@codeisneverodd

제출한 정답

import { useColorModeValue } from "@chakra-ui/react";

export default function useColor() {
  const bodyBg = useColorModeValue("white", "gray.800");
  const subtleBg = useColorModeValue("gray.100", "gray.700");
  const alphaBg = useColorModeValue("gray.100", "whiteAlpha.200");
  const accentBg = useColorModeValue("gray.200", "gray.900");

  const getCountColor = (solCount: number) => {
    if (solCount === 0) return "#ff6b18";
    if (solCount === 1) return "#47c84c";
    if (solCount <= 10) return "#1bbaff";
    return "#2189ff";
  };

  return { bodyBg, subtleBg, alphaBg, accentBg, getCountColor };
}

풀이 데이터

{
  "probId": "12899",
  "author": "codeisneverodd",
}

Metadata

Metadata

Labels

확인중 👀제출된 정답을 확인중입니다.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions