diff --git a/package.json b/package.json index 9d20b4e..67154f9 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "react-infinite-scroll-component": "^6.1.0", "react-no-ssr": "^1.1.0", "react-ogp": "^0.0.3", - "sass": "^1.58.1", + "sass": "^1.58.2", "usehooks-ts": "^2.9.1", "zod": "^3.20.2" }, diff --git a/src/components/render/DisplayIconSingle.tsx b/src/components/render/DisplayIconSingle.tsx index bdad492..4753761 100644 --- a/src/components/render/DisplayIconSingle.tsx +++ b/src/components/render/DisplayIconSingle.tsx @@ -23,7 +23,7 @@ const IconInternal: FunctionComponent = ({label, children, on onClick={onClick}> {children ?? } + className="text-black dark:text-zinc-200 px-1 mt-1 text-[10px]"> {label} @@ -32,14 +32,17 @@ const IconInternal: FunctionComponent = ({label, children, on const DisplayIconSingle: FunctionComponent = ({setId, id}) => { // eslint-disable-next-line const IconSet = loadable.lib(() => getIcons(setId)); + const iconClass = "text-slate-700 dark:text-slate-200 group-hover:text-slate-900 group-hover:scale-125 transition-transform w-8 h-8"; - return }> + return + + }> {(module) => { const Icon: IconType | undefined = (module as { [icon: string]: IconType })[id] ?? BiError; return { void navigator.clipboard.writeText(`import {${id}} from "react-icons/${setId}";`) }}> - + }} diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index adea8e0..9f96bb5 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -1,9 +1,12 @@ -import { type AppType } from "next/dist/shared/lib/utils"; +import {type AppType} from "next/dist/shared/lib/utils"; -import "../styles/globals.css"; +import "@styles/globals.scss"; -const MyApp: AppType = ({ Component, pageProps }) => { - return ; +const MyApp: AppType = ({Component, pageProps}) => { + + return
+ +
}; export default MyApp; diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 0b9f180..86a9761 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -76,13 +76,13 @@ const Home: NextPage = () => { setQuery(value)} value={query} /> - + {showLoading ? : (query.length == 0 ? icons.length @@ -90,7 +90,7 @@ const Home: NextPage = () => { { timing !== 0 - ? {timing}ms + ? {timing}ms : null } diff --git a/src/styles/globals.css b/src/styles/globals.scss similarity index 92% rename from src/styles/globals.css rename to src/styles/globals.scss index 8a9c09e..4b71430 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.scss @@ -9,7 +9,6 @@ html { font-family: system-ui, sans-serif; - background-color: #F6F6F6; } code { diff --git a/yarn.lock b/yarn.lock index c510143..49b505c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2281,10 +2281,10 @@ safe-regex-test@^1.0.0: get-intrinsic "^1.1.3" is-regex "^1.1.4" -sass@^1.58.1: - version "1.58.1" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.58.1.tgz#17ab0390076a50578ed0733f1cc45429e03405f6" - integrity sha512-bnINi6nPXbP1XNRaranMFEBZWUfdW/AF16Ql5+ypRxfTvCRTTKrLsMIakyDcayUt2t/RZotmL4kgJwNH5xO+bg== +sass@^1.58.2: + version "1.58.2" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.58.2.tgz#ef3c5098a02dd006f09a2350b114f1ac445e38ce" + integrity sha512-2mbyOWOv/lhEXD6nVrQZQ4KT2DlwcODbTskM42EyqBAFUWOhiiYtAXZqjZz1ygzapYf+N+2GwfIH9M5FM4GUMg== dependencies: chokidar ">=3.0.0 <4.0.0" immutable "^4.0.0"