Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
codeisneverodd opened this issue Mar 21, 2023 · 0 comments
Closed

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

codeisneverodd opened this issue Mar 21, 2023 · 0 comments
Assignees
Labels
확인중 👀 제출된 정답을 확인중입니다.

Comments

@codeisneverodd
Copy link
Owner

제출한 정답

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",
}
@codeisneverodd codeisneverodd added the 확인중 👀 제출된 정답을 확인중입니다. label Mar 21, 2023
@codeisneverodd codeisneverodd self-assigned this Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
확인중 👀 제출된 정답을 확인중입니다.
Projects
None yet
Development

No branches or pull requests

1 participant