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:
s.esmaeili
2026-10-16 10:24:59 +03:30
co-authored by Cursor
parent 5c7bb6672a
commit 284ced1c89
5 changed files with 553 additions and 8 deletions
+2 -1
View File
@@ -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'); }