mirror of
https://github.com/alrayyes/wiki.git
synced 2025-06-12 08:23:39 +00:00
add config to components
This commit is contained in:
parent
352075ae81
commit
2bfe90b7e6
13 changed files with 53 additions and 26 deletions
quartz/components
|
@ -3,8 +3,9 @@
|
|||
// see: https://v8.dev/features/modules#defer
|
||||
import darkmodeScript from "./scripts/darkmode.inline"
|
||||
import styles from './styles/darkmode.scss'
|
||||
import { QuartzComponentConstructor } from "./types"
|
||||
|
||||
export default function Darkmode() {
|
||||
function Darkmode() {
|
||||
return <div class="darkmode">
|
||||
<input class="toggle" id="darkmode-toggle" type="checkbox" tabIndex={-1} />
|
||||
<label id="toggle-label-light" for="darkmode-toggle" tabIndex={-1}>
|
||||
|
@ -48,3 +49,5 @@ export default function Darkmode() {
|
|||
|
||||
Darkmode.beforeDOMLoaded = darkmodeScript
|
||||
Darkmode.css = styles
|
||||
|
||||
export default (() => Darkmode) satisfies QuartzComponentConstructor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue