Initial commit: Nuxt site

This commit is contained in:
Noro Studio
2026-06-30 00:46:55 +03:30
commit 7af8fbca2d
125 changed files with 20167 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
const themeInitScript = `(function(){try{var k='noro-theme';var t=localStorage.getItem(k);var d=t==='dark'||(t!=='light'&&window.matchMedia('(prefers-color-scheme: dark)').matches);document.documentElement.classList.toggle('dark',d);document.documentElement.style.colorScheme=d?'dark':'light'}catch(e){}})();`
export default defineNitroPlugin((nitroApp) => {
nitroApp.hooks.hook('render:html', (htmlContext) => {
htmlContext.head.unshift(
`<script id="noro-theme-init">${themeInitScript}</script>`
)
})
})