| | |
| | | // 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}> |
| | |
| | | |
| | | Darkmode.beforeDOMLoaded = darkmodeScript |
| | | Darkmode.css = styles |
| | | |
| | | export default (() => Darkmode) satisfies QuartzComponentConstructor |