Replace the home hero with a spring carousel and default theme to light.
Adds Carousel under keep-alive-safe autoplay, peeks side cards past the container, and stops following the OS dark preference on first run. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -19,7 +19,8 @@
|
||||
try {
|
||||
var s = JSON.parse(localStorage.getItem('hedena-gold:appearance') || '{}');
|
||||
var mq = function (q) { return window.matchMedia && matchMedia(q).matches; };
|
||||
var dark = s.theme === 'dark' || ((s.theme || 'system') === 'system' && mq('(prefers-color-scheme: dark)'));
|
||||
// Default is light when nothing is saved (matches appearanceStore).
|
||||
var dark = s.theme === 'dark' || (s.theme === 'system' && mq('(prefers-color-scheme: dark)'));
|
||||
var motion = typeof s.reduceMotion === 'boolean' ? s.reduceMotion : mq('(prefers-reduced-motion: reduce)');
|
||||
var c = document.documentElement.classList;
|
||||
if (dark) { c.add('theme-dark', 'van-theme-dark'); document.querySelector('meta[name=theme-color]').setAttribute('content', '#15171A'); }
|
||||
|
||||
Reference in New Issue
Block a user