website
git clone https://git.pyrossh.dev/website
木 Personal website of pyrossh. Built with astrojs, shiki, vite.
b793805
— pyrossh
2026-07-04T14:51:50+05:30
refactor: migrate Header icons to unplugin-icons
src/components/Header.astro
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
|
+
import MdiSunnyRounded from "~icons/material-symbols/sunny-rounded";
|
|
2
|
-
import
|
|
3
|
+
import MdiMoonStars from "~icons/material-symbols/moon-stars";
|
|
3
4
|
import { ThemeSwitch } from "astro-color-scheme";
|
|
4
5
|
import HeaderLink from "./HeaderLink.astro";
|
|
5
6
|
import Wrapper from "./Wrapper.astro";
|
|
@@ -13,13 +14,11 @@ import Wrapper from "./Wrapper.astro";
|
|
|
13
14
|
<div class="links">
|
|
14
15
|
<ThemeSwitch strategy="button">
|
|
15
16
|
<button id="theme-change">
|
|
16
|
-
<
|
|
17
|
+
<MdiSunnyRounded
|
|
17
18
|
style="display: var(--btn-light);"
|
|
18
|
-
name="material-symbols:sunny-rounded"
|
|
19
19
|
/>
|
|
20
|
-
<
|
|
20
|
+
<MdiMoonStars
|
|
21
21
|
style="display: var(--btn-dark);"
|
|
22
|
-
name="material-symbols:moon-stars"
|
|
23
22
|
/>
|
|
24
23
|
</button>
|
|
25
24
|
</ThemeSwitch>
|