feat: create new css-only ThemeSwitcher
This commit is contained in:
parent
c74defd696
commit
a74b7619d0
2 changed files with 65 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
import '../styles/global.css';
|
||||
import Search from '../components/Search.astro';
|
||||
import ThemeSwitcher from '../components/ThemeSwitcher.astro';
|
||||
import ThemeSwitcher_CSSOnly from '../components/ThemeSwitcher@CSSOnly.astro';
|
||||
import BackToTop from "../components/BackToTop.astro";
|
||||
import Meta from "../components/helper/head/Meta.astro";
|
||||
|
||||
|
@ -66,7 +67,7 @@ const { title = pageTitle, description = siteConfig.description, ogImage = "" }
|
|||
<footer class="footer">
|
||||
<div class="floating">
|
||||
<BackToTop/>
|
||||
<ThemeSwitcher/>
|
||||
{noscript ? <ThemeSwitcher_CSSOnly/> : <ThemeSwitcher/>}
|
||||
</div>
|
||||
<div class="container">
|
||||
<Fragment set:html={customFooter} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue