diff --git a/theme/components/LogoHeader.tsx b/theme/components/LogoHeader.tsx
index 1d9c3b7..69c510c 100644
--- a/theme/components/LogoHeader.tsx
+++ b/theme/components/LogoHeader.tsx
@@ -1,16 +1,13 @@
import MainIcon from "@Components/icon/MainIcon";
-import { ThemeContext, usePageData } from "rspress/runtime";
-import { FC, useContext } from "react";
+import { usePageData } from "rspress/runtime";
+import { FC } from "react";
import { Link } from "rspress/theme";
+import classes from "@Styles/Icon.module.scss";
export const LogoHeader: FC = () => {
- const { theme } = useContext(ThemeContext);
const pageData = usePageData();
const defaultLang = pageData.siteData.lang ?? "";
const lang = pageData.page.lang;
- const lightMode = theme === "light";
- const color = lightMode ? "#414141" : "#fff";
- const highlightColor = lightMode ? "#02BFA5" : "#0AD7AF";
return (
@@ -19,8 +16,11 @@ export const LogoHeader: FC = () => {
className="flex items-center w-full h-full text-base font-semibold transition-opacity duration-300 hover:opacity-60"
>
-
- GZ::CTF
+
+ GZ::CTF
diff --git a/theme/components/icon/MainIcon.tsx b/theme/components/icon/MainIcon.tsx
index d4f3533..34f941e 100644
--- a/theme/components/icon/MainIcon.tsx
+++ b/theme/components/icon/MainIcon.tsx
@@ -1,5 +1,5 @@
-import { ThemeContext } from "rspress/runtime";
-import { SVGProps, FC, useContext } from "react";
+import classes from "@Styles/Icon.module.scss";
+import { SVGProps, FC } from "react";
interface MainIconProps extends SVGProps {
ignoreTheme?: boolean;
@@ -7,9 +7,6 @@ interface MainIconProps extends SVGProps {
const MainIcon: FC = (props: MainIconProps) => {
const { ignoreTheme, ...svgProps } = props;
- const { theme } = useContext(ThemeContext);
-
- const color = theme === "light" ? "#414141" : "#fff";
return (