diff --git a/src/components/hooks/ThemeSwitch.tsx b/src/components/hooks/ThemeSwitch.tsx
index fd410ed..2bc106a 100644
--- a/src/components/hooks/ThemeSwitch.tsx
+++ b/src/components/hooks/ThemeSwitch.tsx
@@ -5,7 +5,9 @@ import {
onMount,
type VoidComponent,
} from "solid-js";
-import { Sun, Moon } from "@icons";
+
+import Sun from "@icons/sun.svg?raw";
+import Moon from "@icons/moon.svg?raw";
interface ThemeProps {
theme: "light" | "dark";
@@ -89,13 +91,10 @@ export const ThemeSelect: VoidComponent = () => {
});
return (
-
- {(mounted() && currentTheme().theme === "light") ||
- currentTheme().system === "light" ? (
-
- ) : (
-
- )}
-
+
);
};
diff --git a/src/components/icons.tsx b/src/components/icons.tsx
index 975c37d..8b26012 100644
--- a/src/components/icons.tsx
+++ b/src/components/icons.tsx
@@ -22,7 +22,7 @@ export const XToMenu: VoidComponent<{
@@ -30,7 +30,7 @@ export const XToMenu: VoidComponent<{
@@ -38,7 +38,7 @@ export const XToMenu: VoidComponent<{
@@ -69,7 +69,7 @@ export const MenuToX: VoidComponent<{
@@ -77,7 +77,7 @@ export const MenuToX: VoidComponent<{
@@ -85,7 +85,7 @@ export const MenuToX: VoidComponent<{
@@ -94,46 +94,6 @@ export const MenuToX: VoidComponent<{
);
};
-export const Sun: VoidComponent<{
- class?: string;
-}> = props => {
- return (
-
- );
-};
-
-export const Moon: VoidComponent<{
- class?: string;
-}> = props => {
- return (
-
- );
-};
-
export const ShevronSmallDown: VoidComponent<{
class?: string;
}> = props => {
@@ -150,18 +110,12 @@ export const ShevronSmallDown: VoidComponent<{
-
@@ -239,7 +193,6 @@ export const Tag: VoidComponent<{
viewBox="0 0 256 256"
class={props.class}
>
- Go to
- Go to
- Go to
- Go to
- Go to
- Go to
- Go to
magnifier,
- git: () => git,
- matrix: () => matrix,
- };
-
- return hashmap[name as keyof typeof hashmap]();
-}
-
-export { getHTMLIcon };
diff --git a/src/components/navigation/Search.astro b/src/components/navigation/Search.astro
index 8e27026..c04ee15 100644
--- a/src/components/navigation/Search.astro
+++ b/src/components/navigation/Search.astro
@@ -1,8 +1,6 @@
---
import "@pagefind/default-ui/css/ui.css";
-import { getHTMLIcon } from "../iconsModule";
-
-const magnifier = getHTMLIcon("magnifier");
+import magnifierIcon from "@icons/magnifier.svg?raw"
---
@@ -13,7 +11,7 @@ const magnifier = getHTMLIcon("magnifier");
aria-keyshortcuts="Control+K"
class="search-button"
>
-
+
Search
CtrlK
diff --git a/src/icons/magnifier.svg b/src/icons/magnifier.svg
new file mode 100644
index 0000000..b252510
--- /dev/null
+++ b/src/icons/magnifier.svg
@@ -0,0 +1,2 @@
+
+
diff --git a/src/icons/moon.svg b/src/icons/moon.svg
new file mode 100644
index 0000000..45b4cdd
--- /dev/null
+++ b/src/icons/moon.svg
@@ -0,0 +1 @@
+
diff --git a/src/icons/sun.svg b/src/icons/sun.svg
new file mode 100644
index 0000000..88d9a98
--- /dev/null
+++ b/src/icons/sun.svg
@@ -0,0 +1 @@
+