diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..0a2cd98 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v16.15.1 \ No newline at end of file diff --git a/src/components/svgCard.tsx b/src/components/svgCard.tsx index 2052de7..f7585fd 100644 --- a/src/components/svgCard.tsx +++ b/src/components/svgCard.tsx @@ -13,6 +13,7 @@ import CustomLink from "@/common/link"; const SVGCard = (props: SVGCardProps) => { const bg = useColorModeValue("bg.light", "bg.dark"); + const color = useColorModeValue("rgb(0,0,0, .1)", "rgb(255,255,255, .1)"); return ( <> @@ -25,10 +26,10 @@ const SVGCard = (props: SVGCardProps) => { borderWidth="1px" mb="2" _hover={{ - shadow: "md", + border:`1px solid ${color}`, + transform: "scale(0.98)", }} - transition="all 0.2s" - > + transition="all 0.2s" >
{props.title}
diff --git a/src/layout/header/categories.tsx b/src/layout/header/categories.tsx index 859b83f..b8f62fc 100644 --- a/src/layout/header/categories.tsx +++ b/src/layout/header/categories.tsx @@ -2,27 +2,35 @@ import React from "react"; import useSWR from "swr"; import { getCategorySvgs } from "@/services"; import CustomLink from "@/common/link"; -import { Box } from "@chakra-ui/react"; +import { Box, useColorModeValue } from "@chakra-ui/react"; import { RaceBy } from "@uiball/loaders"; import Tap from "@/animations/tap"; const Categories = () => { const { data, error } = useSWR(getCategorySvgs); + const color = useColorModeValue("rgb(0,0,0, .1)", "rgb(255,255,255, .1)"); if (error) return
failed to load
; if (!data) return ; - return ( <> {data.map((category: string) => ( - - - - {category} - - - + + + + {category} + + + ))} ); diff --git a/src/layout/header/index.tsx b/src/layout/header/index.tsx index 708f376..b256930 100644 --- a/src/layout/header/index.tsx +++ b/src/layout/header/index.tsx @@ -104,7 +104,8 @@ const Header = () => {