okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
4fb068a8c
main
1<!doctype html > 2< html lang ="en "> 3< head > 4< meta charset ="utf-8 "/> 5< meta name ="viewport "content ="width=device-width, initial-scale=1, viewport-fit=cover "/> 6< title > Strata</ title > 7< meta name ="description "content ="Strata runs one local model, tuned to your hardware. "/> 8< meta name ="color-scheme "content ="light dark "/> 9< meta name ="theme-color "content ="#f9fafb "/> 10< script > 11// Set the saved appearance before CSS and logo images are painted. 12try { 13const saved = JSON . parse ( localStorage . getItem ( 'strata.prefs.v2' ) || localStorage . getItem ( 'strata.prefs.v1' ) || '{}' ); 14const choice = saved . theme ?? 'system' ; 15const theme = choice === 'dark' || ( choice === 'system' && matchMedia ( '(prefers-color-scheme: dark)' ). matches ) ?'dark' :'light' ; 16document . documentElement . dataset . theme = theme ; 17document . querySelector ( 'meta[name="theme-color"]' ). content = theme === 'dark' ?'#0e1113' :'#f9fafb' ; 18} catch { document . documentElement . dataset . theme = 'light' ; } 19</ script > 20< link rel ="icon "href ="/favicon.svg "type ="image/svg+xml "sizes ="any "/> 21< link rel ="icon "href ="/favicon-16.png "type ="image/png "sizes ="16x16 "media ="(prefers-color-scheme: light) "/> 22< link rel ="icon "href ="/favicon-32.png "type ="image/png "sizes ="32x32 "media ="(prefers-color-scheme: light) "/> 23< link rel ="icon "href ="/favicon-48.png "type ="image/png "sizes ="48x48 "media ="(prefers-color-scheme: light) "/> 24< link rel ="icon "href ="/favicon-dark-16.png "type ="image/png "sizes ="16x16 "media ="(prefers-color-scheme: dark) "/> 25< link rel ="icon "href ="/favicon-dark-32.png "type ="image/png "sizes ="32x32 "media ="(prefers-color-scheme: dark) "/> 26< link rel ="icon "href ="/favicon-dark-48.png "type ="image/png "sizes ="48x48 "media ="(prefers-color-scheme: dark) "/> 27< link rel ="apple-touch-icon "href ="/apple-touch-icon.png "/> 28< link rel ="manifest "href ="/site.webmanifest "/> 29</ head > 30< body > 31< div id ="root "></ div > 32< script type ="module "src ="/src/main.tsx "></ script > 33</ body > 34</ html >