// v5 Maintenance page — Coming Soon component function MaintenancePage() { const handleBack = () => { if (window.navigateTo) window.navigateTo('home'); }; React.useEffect(() => { // Background floating nuts (light: 8 instances) — generated once const host = document.getElementById('bgNuts'); if (host && !window.matchMedia('(prefers-reduced-motion: reduce)').matches && !window.matchMedia('(max-width: 720px)').matches) { const ids = ['#nut-almond','#nut-cashew','#nut-pistachio','#nut-walnut','#nut-date']; const sizes = [22, 26, 30, 34, 28]; for (let i = 0; i < 10; i++){ const id = ids[i % ids.length]; const sz = sizes[i % sizes.length] + (i*3 % 12); const left = (i * 13 + 7) % 100; const top = (i * 21 + 11) % 100; const dur = 9 + (i*1.7) % 6; const delay = -((i*1.3) % dur); const rot = ((i*53) % 360); const anim = ['nut-float-a','nut-float-b','nut-float-c'][i%3]; const svg = document.createElementNS('http://www.w3.org/2000/svg', 'svg'); svg.setAttribute('viewBox','0 0 60 60'); svg.setAttribute('width', sz); svg.setAttribute('height', sz); const use = document.createElementNS('http://www.w3.org/2000/svg', 'use'); use.setAttributeNS('http://www.w3.org/1999/xlink','href',id); use.setAttribute('href', id); svg.appendChild(use); svg.classList.add('bg-nut'); svg.style.left = left + '%'; svg.style.top = top + '%'; svg.style.transform = 'rotate(' + rot + 'deg)'; svg.style.animation = anim + ' ' + dur + 's ease-in-out infinite'; svg.style.animationDelay = delay + 's'; host.appendChild(svg); } } // Reveal on load document.querySelectorAll('.reveal').forEach(el => { requestAnimationFrame(() => el.classList.add('is-in')); }); }, []); const cssVars = { '--paper':'#FAF5E8', '--cream':'#F2EAD3', '--cream-deep':'#E8DCBC', '--buff':'#E0D2A6', '--roast':'#0E1B44', '--roast-2':'#152456', '--roast-soft':'#1F3370', '--date':'#070F2A', '--date-2':'#0A1638', '--saffron':'#D4A24A', '--saffron-soft':'#E8C57C', '--gold':'#C8A24E', '--gold-2':'#D9B970', '--gold-3':'#ECD49A', '--gold-deep':'#8B6A28', '--navy':'#070F2A', '--navy-mid':'#0E1B44', '--ink':'#0B1638', '--ink-soft':'#3B4870', '--line':'rgba(200,162,78,0.32)', '--line-soft':'rgba(11,22,56,0.10)', }; return ( <>
This section of Nuts Hub is being carefully crafted. Soon, you'll be able to explore more of our premium nuts, dry fruits, dates, spices, snack packs, and gifting collections online.