Spaces:
Running
Running
Download app/layout.tsx from Reubencf/Score-Studio: direct link, hf CLI and curl.
- Browser
- Download file 828 Bytes
-
https://huggingface.co/spaces/Reubencf/Score-Studio/resolve/main/app/layout.tsx
- Command line
-
hf download hf://spaces/Reubencf/Score-Studio/app/layout.tsx
-
curl -L -o layout.tsx https://huggingface.co/spaces/Reubencf/Score-Studio/resolve/main/app/layout.tsx
828 Bytes
| import type { Metadata } from 'next'; | |
| import './globals.css'; | |
| import './identity.css'; | |
| export const metadata: Metadata = { title: 'Kiku AI — sing it, score it, band it', description: 'Record or upload a take, turn it into editable notation, and build a full song around your own voice.' }; | |
| const themeScript=`try{const t=localStorage.getItem('kiku-theme');document.documentElement.dataset.theme=t==='dark'||t==='light'?t:matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}catch{document.documentElement.dataset.theme=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';}`; | |
| export default function Layout({children}:{children:React.ReactNode}) { return <html lang="en" suppressHydrationWarning><head><script dangerouslySetInnerHTML={{__html:themeScript}}/>; } | |